The result is the sum of all numbers in row 5. As new data is added to the table, the formula will continue to return a correct total.

Full row references

Excel supports full row references like this: You can see how this works yourself by typing 1:1 or 3:3 into the name box (left of the formula bar) and hitting return. You will see Excel select the entire row.

Example

To solve the problem in the example worksheet, we can use a full row reference to row 5 with the SUM function like this: The result is the sum of all numeric values in row 5. As the formula is copied down, we get a sum for row 6 and row 7 as well: As new entries for “Red” are added to the table in rows 5, 6, and 7, the formula will automatically include these new amounts.

Advantages and risks

The main advantage to full row references is simplicity. Simple and very compact, a full row reference will automatically include all data in a row, even when data is added or removed. However, full row references come with certain risks. One risk is that you may accidentally include extra data in a calculation. For example, if you use =SUM(5:5) to sum numbers in row 5, you are targeting over 16,000 cells to the right. If row 5 includes extra dates somewhere far to the right, the numeric values of these dates will be included, and SUM will return an incorrect result. 

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.