1 | initial version |
You can use the SUMIFS function in Excel 2007 to add the values of several columns from a named range. Here are the steps:
Create a named range that includes all the columns you want to add. You can do this by selecting the columns, clicking on the "Name Box" at the top of the worksheet, and typing a name for the range.
In an empty cell, enter the SUMIFS formula. The syntax is:
=SUMIFS(sumrange, criteriarange1, criteria1, [criteria_range2, criteria2], ...)
Replace "sum_range" with the named range you created in step 1.
=SUMIFS(my_range, A:A, "apples", B:B, "oranges", C:C, "bananas")
Note that the SUMIFS function can handle up to 127 criteria ranges and criteria pairs.