Learning how to build Funnel charts in Google Sheets lets you visualize sales pipelines, marketing conversions, and multi-stage customer drop-offs with clean, intuitive clarity. Although Google Sheets does not include a dedicated funnel chart inside its default chart menu, you can easily construct symmetrical, tapering funnels using three clever workarounds: a stacked bar chart with a transparent spacer column, paired SPARKLINE formulas, or the REPT text-repeating function—plus a custom Google Apps Script macro to automate all three in one click.
However, they throw up some interesting techniques in Google Sheets and for that reason, merit this long article.
We’ll build them using tricks with the chart builder tool, then with two different types of funky formula and finally, and best of all, we’ll build a tool using Apps Script, as shown in this image:

As with the waterfall charts in Google Sheets, they’re not one of the out-the-box charts available to us, so we have to manually create them with a crafty workaround. Thankfully, they’re relatively simple to create, certainly simpler than the waterfall chart.
For all of these examples, we’ll use this fictitious real-estate dataset:

Here, I’m imagining the real estate agency collects data relating to their sales funnel, and they want to display it in a funnel chart format.
Funnel charts in Google Sheet with the embedded chart builder
As with the waterfall charts in my earlier post, the trick here is to use a stacked bar chart with transparent base bars, to achieve the floating effects:

Step 1: Create a helper column
So the first thing to do is to create a helper column containing the values for the transparent bars.
Move the data from column B into column C, so B1:B7 are now sitting in cell range C1:C7. In the new blank column, add the heading “Helper column” and insert the following formula:
=(max($C$2:$C$7)-C2)/2
This formula determines the max value in our data (in this case 636), calculates the difference between the max and the current value and then divides the result by 2 to center the bar, like so:

Step 2: Insert a chart
Highlight the new data range, including the helper column, and click Insert > Chart....
Make sure you select Stacked Bar Chart from the Chart Types options.
You should end up with a chart like this (image shows how the data is plotted):

Step 3: Set the helper column bar color to none
Set the helper column bars to be transparent, thereby “hiding” them to give the appearance of floating bars in a funnel chart.

Step 4: Add data labels and remove x-axis
This is an important step. Take a look at the x-axis as it stands. It’s meaningless really, because our bars are floating in the middle of the chart area.
We can fix this by adding data labels, then removing the x-axis labels altogether:

That’s it!
Our final chart should look something like this:

Funnel charts in Google Sheets with sparklines
We can use the sparkline formula to create funnel charts in Google Sheets:

Assuming we have the same data above, in the range A2:B7, then use the following sparkline formulas:
In column D:
=sparkline(B2,{"charttype","bar";"max",max($B$2:$B$7); "rtl",true;"color1","#FFA500"})
Notice the option "rtl",true, which specifies the direction of the bar within the cell, allowing the symmetrical appearance.
In column E:
=sparkline(B2,{"charttype","bar";"max",max($B$2:$B$7); "color1","#FFA500"})
as follows:

Funnel charts in Google Sheets with the REPT function
Another method, similar to the sparkline approach. We use the REPT function and some funky font formatting to create the funnel chart.
Here’s what the final chart looks like:

Again, with the data in range A1:B7, add the following formulas into column D:
=rept("|",B2/10)
The “|” is the pipe symbol, usually found above the Enter key.
The value 10 is a scale factor to ensure the largest bar fits into the cell, so feel free to adjust this as needed until your largest bar fits. It’s imperative to use the same scale factor value in each formula though.
Next change the font to make the pipe symbols thicker – I’ve found font Modak works pretty well for this – and then ensure all the cells with the REPT formulas are center aligned. :

Using Apps Script to build an automatic funnel chart tool
Saving the best to last, let’s write some apps script code to create each of these charts automatically for us!
If you’re new to Apps Script, check out my introductory post on the subject first.
I’ll show you how to use the apps script template first, then run through the code.
Steps to use this template:
1. Click here to open up the Google Sheet Apps Script funnel chart.
2. Create your own copy (File > Make a copy...)
3. Open the Script Editor window (Tools > Script editor...)

4. Select and run the onOpen() function to add the custom menu

5. Click Review Permissions in the Authorization required popup:

6. Review the permissions, in this case accessing your spreadsheets in Google Drive, and click Allow:

7. Return to your spreadsheet, to the tab called With Apps Script, and you’ll now have a Custom Chart menu, with options for the three different funnel charts. Highlight your data (excluding the heading) and then insert the funnel chart you’re after:

Boom! You have your own working copy of the funnel chart tool.
For those wanting to see under the hood, let’s take a look at the code:
Code for the custom menu
First step is to add a custom menu so that we can simply click a button to insert the funnel chart of our choosing (embedded charts, sparklines or REPT formulas).
This is straightforward boilerplate code from the Apps Script documentation (read more here).
| 0102030405060708091011 | //add menu to google sheetfunctiononOpen() { //set up custom menu varui = SpreadsheetApp.getUi(); ui.createMenu('Custom Chart') .addItem('Funnel chart...','funnelChart') .addItem('Sparkline funnel chart...','sparklineFunnelChart') .addItem('REPT funnel chart...','reptFunnelChart') .addToUi();}; |
Funnel charts in Google Sheets using the chart builder
This is a two stage process: first, create the helper column so the data is ready, and second, insert a chart using Google Sheets’ chart tool.
In lines 5 – 26, we grab the data range, move the values column one to the right and insert a new value into the helper column, using the formula [(maxVal - d[1]) / 2]
Inserting the chart is relatively straightforward, and most of the code in lines 31 – 44 relates to setting options to make the chart look the way we want.
| 010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445 | // embedded chart builderfunctionfunnelChart() { // get the sheet varsheet = SpreadsheetApp.getActiveSheet(); // get the range highlighted by user varrange = sheet.getActiveRange(); vardata = range.getValues(); // move the values one column to the right, to make space for helper column range.offset(0,range.getNumColumns(),range.getNumRows(),1) .setValues(data.map(function(d){ return[d[1]]; })); // get the max of the data varmaxVal = Math.max.apply(Math, data.map(function(d){ return[d[1]]; })); // create the helper column range.offset(0,range.getNumColumns()-1,range.getNumRows(),1) .setValues(data.map(function(d){ return[(maxVal - d[1]) / 2]; })); // make the new funnel chart // To do: add the data labels to the bars with the annotations option // see: https://developers.google.com/chart/interactive/docs/gallery/barchart#labeling-bars sheet.insertChart( sheet.newChart() .addRange(sheet.getDataRange()) .setChartType(Charts.ChartType.BAR) .asBarChart() .setColors(["none", "#FFA500"]) .setStacked() .setOption("title","GAS Funnel chart") .setOption("hAxis.gridlines.color","none") .setOption("hAxis.textStyle.color","none") .setLegendPosition(Charts.Position.NONE) .setPosition(2, sheet.getLastColumn()+2,0,0) .build() );}; |
Here’s a challenge to you (and me): add the data labels to the bars.
Hint: start with this article in the Apps Script documentation.
Funnel chart code for sparkline version
In this example, there’s no need to change the data.
So I just need to create the left and right sparklines in adjacent columns. I do this by creating a left array, formulasLeft, and a right array, formulasRight, to hold all these text formulas. I loop over the original data values and for each one, create sparkline formulas that I add to formulasLeft and formulasRight respectively.
Finally, I identify the output range and paste in these left and right formulas. I use the R1C1 notation to allow me to position formulas relative to where the original data values are.
They show up as sparklines in our Google Sheet!
| 010203040506070809101112131415161718192021222324252627282930313233343536373839 | // sparkline chart builderfunctionsparklineFunnelChart() { // get the sheet varsheet = SpreadsheetApp.getActiveSheet(); // get the range and data highlighted by user varrange = sheet.getActiveRange(); vardata = range.getValues(); varlen = data.length; // sort the range by the second column of values, highest to lowest and find max value varsortedRange = range.sort({column: range.getColumn()+1, ascending: false}); varmaxVal = sortedRange.getValues()[0][1]; // create array to hold sparklines left varformulasLeft = []; for(j = 0; j < len; j++) { varoptionsLeft = '{"charttype","bar";"max",R[-'+ j + ']C[-2]; "rtl",true; "color1","#FFA500"}'; varsparklineFunnelLeft = "=SPARKLINE(R[0]C[-2],"+ optionsLeft + ")"; formulasLeft.push([sparklineFunnelLeft]); } // create array to hold sparklines right varformulasRight = []; for(i = 0; i < len; i++) { varoptionsRight = '{"charttype","bar";"max",R[-'+ i + ']C[-3]; "color1","#FFA500"}'; varsparklineFunnelRight = "=SPARKLINE(R[0]C[-3],"+ optionsRight + ")"; formulasRight.push([sparklineFunnelRight]); } // identify range for sparkline output varfunnelOutputLeft = sheet.getRange(range.getRowIndex(),range.getColumn()+3,len,1); varfunnelOutputRight = sheet.getRange(range.getRowIndex(),range.getColumn()+4,len,1); // put the sparkline formulas into the output ranges funnelOutputLeft.setFormulasR1C1(formulasLeft); funnelOutputRight.setFormulasR1C1(formulasRight);}; |
Funnel chart code for REPT version
For a lightweight, formula-only approach inside a single column, repeat vertical pipe characters (|) scaled proportionally to your stage values:
- Enter
=REPT("|",B2/10)in an adjacent column (adjusting the divisor10so your largest value fits comfortably inside the cell width). - Set the column’s horizontal alignment to Center and apply a thick, blocky font such as Modak so the repeated pipe symbols merge into solid, tapered bars.
Pro Tip: Always sort your funnel stages from largest to smallest before generating a SPARKLINE or REPT funnel so the visual tapers smoothly from top to bottom.
| 01020304050607080910111213141516171819202122232425262728293031323334353637 | // REPT chart builderfunctionreptFunnelChart() { // get the sheet varsheet = SpreadsheetApp.getActiveSheet(); // get the range and data highlighted by user varrange = sheet.getActiveRange(); vardata = range.getValues(); varlen = data.length; // sort the range by the second column of values, highest to lowest and find max value varsortedRange = range.sort({column: range.getColumn()+1, ascending: false}); varmaxVal = sortedRange.getValues()[0][1]; varscaleFactor = maxVal / 65; // trial and error to calculate that this gives a good scaling for a column width of 250 // create array to hold REPT formulas varformulas = []; for(j = 0; j < len; j++) { varrept = '=REPT("|",R[0]C[-2] /'+ scaleFactor +')'; formulas.push([rept]); } // identify range for REPT output varreptOutput = sheet.getRange(range.getRowIndex(),range.getColumn()+3,len,1); // format output range for REPT funnel chart reptOutput.setFontFamily("Modak"); reptOutput.setFontColor("#FFA500"); reptOutput.setHorizontalAlignment("center"); // set the column width to 250 for the REPT chart column sheet.setColumnWidth(range.getColumn()+3, 250) // put the sparkline formulas into the output ranges reptOutput.setFormulasR1C1(formulas);}; |

Also Read : The LARGE Function In Google Sheets