You can sum a range of values within a table using the INDEX function in Excel.  This is valuable when you want to extract key metrics from a table and put them in an Excel Dashboard.

To make this work you firstly need to start your Excel formula with the SUM function followed by the INDEX function.

So it will look something like this:  =SUM(INDEX(Array, Row_Num, Column_Num))

The Array will be your table of data, the Row_Num will be blank and the Column_Num will be the column number where you want to SUM the values.

When we dissect the formula (by highlighting the INDEX function and pressing F9) we can see that the following is happening: =SUM({8959;7840;7507;6690;5802;5487;3949;3836;3587;3210})

So in effect we are summing the array of values within the table.  See the example below that shows you how this is done.

DOWNLOAD EXCEL WORKBOOK

 

STEP 1: We need to place first the INDEX function inside the SUM function.

=SUM(INDEX

 

index-sum-01

The Index arguments:

array

What is the range / table?

Reference the range of cells here that we want to get the values from:

=SUM(INDEX($C$12:$E$21,

 

index-sum-02

row_num

What is the row number we want to return?

We do not need to return the row, as we want to just sum all of the sales. Leave the row number blank:

=SUM(INDEX($C$12:$E$21,,

index-sum-03

column_num

What is the column number we want to return?

Since we want the sales column, this is column number 2. So place in 2:

=SUM(INDEX($C$12:$E$21,,2))

index-sum-04

Now you are able to get the Total Sales:

index-sum-05

 

STEP 2: Now let us try how we can use this with the AVERAGE function. We need to place first the INDEX function inside the AVERAGE function.

=AVERAGE(INDEX

index-sum-06

The Index arguments:

array

What is the range / table?

Reference the range of cells here that we want to get the values from:

=AVERAGE(INDEX($C$12:$E$21,

index-sum-07

row_num

What is the row number we want to return?

We do not need to return the row, as we want to just average all of the units. Leave the row number blank:

=AVERAGE(INDEX($C$12:$E$21,,

index-sum-08

column_num

What is the column number we want to return?

Since we want the units column, this is column number 3. So place in 3:

=AVERAGE(INDEX($C$12:$E$21,,3))

index-sum-09

Now you are able to get the Average Units Sold:

index-sum-10

 

Index - Sum

HELPFUL RESOURCE:

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel

If you like this Excel tip, please share itEmail this to someone

email

Pin on Pinterest

Pinterest

Share on Facebook

Facebook

Tweet about this on Twitter

Twitter

Share on LinkedIn

Linkedin

Share on Google+

Google+

Related Posts

Excel Subtotal Function – Filtered or Visible Valu... What does it do? It returns a Subtotal in a list or database Formula breakdown: =SUBTOTAL(function_num, ref1) What it means: =SUBTOTAL(function number 1-11 includes manually-hidden rows & 101-111 excludes them, your list or range of data) ***Go to the bottom...
Advanced SUMPRODUCT Function: Conditional Date If you want to find out the total sales for a particular month, then the SUMPRODUCT function is your answer.  You can create a criteria for a specific date range, a particular month or a year. In the example below I show you how to use the SUMPRODUCT function to sum up the tot...
Excel´s EndOfMonth function The EOMONTH (EndOfMonth) function in Excel is one that most people do not use because they just don't know that it exists. It is a great Excel function to use if you want to see when the month end date is from a current date's value. So if you have sales reps who make a sal...
Advanced SUMPRODUCT Function: Conditional Sum Another great way that you can use the SUMPRODUCT function is to create a conditional sum criteria. For example, you may want to find out how much sales were made above the $3,000 transactional level.  See how easy it is with this quick SUMPRODUCT example. DOWNLOAD WORKBOOK...