The spreadsheet below contains totals in every fifth row starting from row 3. We want to only add these sales totals.

The formula below is entered in cell E1.

Letâ€™s break the formula down a little.

**ROW**: The ROW function is used to return the row number that the formula is checking. -2 has been entered on the end because the values begin from row 3. This -2 ensures that instead of using rows 7, 12, 17 and 22. Rows 5, 10, 15 and 20 are used.

**MOD**: The MOD function used to find the remainder after a number is divided by a divisor. It is used in this formula to check whether it is the fifth row or not. If it is the fifth row, after dividing the row number by five, the result will be 0.

Note: The MOD Function used in Excel VBA to check if a number is even.

**SUMPRODUCT**: The SUMPRODUCT function will perform the summing. The first array is the test for the row. This is what is returned;

{0;0;0;0;1;0;0;0;0;1;0;0;0;0;1;0;0;0;0;1}

The 1 is returned when the condition is true. This is multiplied by the range of values and then summed which gives us our total.

Note: See the SUMPRODUCT function used to count values based on multiple conditions.

I hope this explanation makes sense and you are able to adapt it for your own situation. If not, please check out this video.

Sum Every Nth Row in a List – Microsoft Excel Tips and Tricks

If you have formula errors on a spreadsheet it is normally best to stop it at its source. To either correct the error, or to hide it using formulas such as ISERROR and IFERROR.

However, if your spreadsheet is large, having these IFERROR functions in every cell to protect against error values will add more calculation time to your spreadsheet.

There is a function in Excel called AGGREGATE which allows us to perform various functions on a range whilst ignoring formula errors.

The worksheet below contains formula errors that we want to ignore when calculating the total investment.

The following formula can be written into cell E17.

There is a lot more to the AGGREGATE function. For example, it can also be used to ignore hidden rows and subtotals. And it can perform 19 different functions in all so is not limited to only summing values.

Watch the video below to see the AGGREGATE function being used to sum values whilst ignoring error messages.

]]>You can count, sum, average and find the maximum or minimum number in a range simply by selecting the numbers you want to calculate.

- Right click on the Status Bar at the bottom of the screen
- Select the type of calculations you want to perform.

In Excel 2007 and above you can display all five formula results if you wanted to. In Excel 2003 only one can be visible at any given time, but you just need to come to the Status Bar to switch formula when needed

- Select the cells that contain the numbers you want to calculate
- The formula results are displayed on the Status Bar

Use the MID and FIND functions to extract parts of text

]]>