How To Apply Formulas to Entire Columns in Google Sheets

When using spreadsheet software such as Google Sheets, power users often need to apply a formula (or function) to an entire table column. For example, you might want to add up the values across two columns and 10 rows in a third table column.

How To Apply Formulas to Entire Columns in Google Sheets

The most straightforward way to do this is to add the SUM function to 10 cells in the destination column. However, inserting all those formulas by hand would be error-prone, to say nothing of tedious.

Fortunately, there are various ways you can quickly apply formulas to entire columns in Sheets without manually entering them to each cell, making you more efficient and accurate in your work.

You can work faster, more efficiently, and more accurately using this method to apply formulas to entire columns in Google Sheets. Let’s get started!

Add Formulas to Table Columns with the Fill Handle

Most spreadsheet applications, including Google Sheets, have a fill handle for you to copy cell formula across columns or rows with. You can utilize Sheets’ fill handle by dragging the formula’s cell over a range of cells to copy it to each cell within the range.

The other column cells will then include the same function and relative cell references for their table rows Follow these steps to add formulas to entire table columns with the fill handle:

  1. Open a blank Google Sheet in your browser, opening a blank spreadsheet.
  2. For an example of the fill handle in action, enter 500 in A1, 250 in A2, 500 in A3 and ‘1,500’ in A4.
  3. Then input ‘500’ in cell B1, ‘1,250’ in B2, ‘250’ in B3 and ‘500’ again in B4 so that your Google Sheet spreadsheet matches the one in the snapshot directly below.

Now you can add a formula to column C with the fill handle:

  1. First, select cell C1 in your Google Sheet; and click in the fx bar
  2. Then Enter =SUM(A1:B1) in the fx bar.
  3.  Press Enter and cell C1 will return the value of 1,000.
  4. To copy C1’s function to the other table rows in column C with the fill handle, follow these steps:
  5. Select the cell C1 and move the cursor to its bottom right corner of the cell.
  6. When the cursor transforms into a cross, press and hold the left mouse button down.
  7. Drag the cursor down to cell C4.
  8. Then release the left mouse button.

This process will apply the function to the other three rows of column C. The cells will add the values entered in columns A and B.

The ArrayFormula Function

Using Sheets’ fill handle tool is great for adding formulas to smaller table columns. However, if you have a huge table it might be better to apply the formula to the entire spreadsheet column with the ARRAYFORMULA function.

To use ARRAYFORMULA you need to know how many rows the formula needs to address. Luckily, this is easy to figure out. You can scroll down 1,000 rows in the spreadsheets with the scroll bar. Even though you can add more, 1,000 is the default number of rows in Sheets. As such, 1,000 cells amount to an entire column if you don’t modify the default value. This trick will save you a lot of time.

You can quickly apply a formula to all those column rows with the ARRAYFORMULA function.

  1. Replace the SUM function in column C of your table with an array formula.
  2. Select the cell range C1:C4.
  3. Press the Del key to erase SUM. Select cell C1 to include the function.
  4. Input =A1:A+B1:B in the fx bar, and press Ctrl + Shift + Enter to add ARRAYFORMULA to the formula.
  5. The fx bar will then include the array formula shown in the snapshot directly below.

Then hit Enter to copy the formula to all 1,000 rows. This process will cause the 1,000 rows in column C of your spreadsheet to now add up the values entered in columns A and B!

The key thing to note here is that you should always press Ctrl + Shift + Enter after entering the basic function in the fx bar as Ctrl + Shift + Enter automatically converts the basic function into an array formula, which is what you need for this exercise.

You also need to modify the function’s cell reference for an array formula to work. The first column cell is always included in the reference.

However, the second half of the reference is actually the column header. The cell references should always be something like A1:A, B4:B, C3:C, etc, depending on where the first table column cell is in the Google Sheet you are working on.

Add Formulas to tables with AutoSum

Power Tools is a great add-on for Sheets that extends the web app with tools for text, data, formulas, deleting cell content and more besides. AutoSum is an option in Power Tools that you can add functions to entire columns with.

With AutoSum you can add SUM, COUNT, AVERAGE, MAX, PRODUCT, MODE, MIN, and other functions to full columns.

To add Power Tools, follow these steps:

  1. Navigate to the Power Tools website
  2. Press the Free button on this e to add Power Tools to Sheets
  3. Click Continue on the dialogue box that will appear within a few seconds
  4. Next, choose a Google Docs (same account as your Gmail) account  in which to install Power Tools
  5. Go to the Add-ons menu
  6. Select Power Tools then Start to open the add-on sidebar or choose one of the nine 9 tool groups from the Power Tools menu
  7. Click the D header in your spreadsheet to select the entire column
  8. Select Formulas from the Power Tools menu
  9. Then click the AutoSum radio button in the sidebar
  10. Select SUM from the drop-down menu
  11. Press the Run button to add SUM to column D as shown in the screenshot below
  12. That adds SUM functions to all 1,000 cells in column D as shown in the second screenshot below

So now you can quickly add functions to all your table column cells in Sheets with the fill handle, ARRAYFORMULA and the AutoSum option in Power Tools. The Google Sheets fill handle usually does the trick for smaller tables, but ARRAYFORMULA and AutoSum are a much better choice for applying functions across entire Google Sheet columns.

If you want to learn to use an advanced and powerful Google Sheets feature, check out How To Create, Edit and Refresh Pivot Tables in Google Sheets.

Do you have any other suggestions of how to add functions to an entire column in Google Sheets or other tips and tricks? Share them with us below!

3 thoughts on “How To Apply Formulas to Entire Columns in Google Sheets”

LDM says:
Wow! That’s amazing! Used it to calculate duration of work hours. It’s a beautiful thing.
ashley creighton says:
Extremely helpful and I’ve used this now in many google sheets.

Is this at all possible in Excel? I haven’t found a way (and would prefer to work exclusively in Google Sheets but have some clients who prefer Microsoft…)

Chuck S says:
Ashley, Did you ever figure out how to do this in Excel? If not, it’s actually built in to Excel if you use Tables. Once you start using Tables in Excel, I think you will start to like much more. I’ll respond with a detailed explanation if you haven’t already learned about it.
Jeremiah says:
This was a great article and helped me a lot. Thanks!

Comments are closed.

Disclaimer: Some pages on this site may include an affiliate link. This does not effect our editorial in any way.

Todays Highlights
How to See Google Search History
how to download photos from google photos