# SUM With a VLOOKUP Function – Excel & Google Sheets

This tutorial will demonstrate how to sum the results of multiple VLOOKUP Functions in one step in Excel and Google Sheets. ## Using SUM With a VLOOKUP Function

The VLOOKUP Function can be used to lookup a single value, but you can also lookup and sum multiple values by nesting the VLOOKUP Function inside the SUM Function.

This example will show how to calculate the Total Sales Revenue of a specific Store over 3 months by using an array function with SUM and VLOOKUP: This is equivalent to using the following 3 regular VLOOKUP Functions to sum revenues for the months January, February, and March. We can combine these functions together by doing the following:

First, we set the VLOOKUP Function to return columns 2, 3, and 4 as an array output:

This will produce the array result:

Next, to sum the array result together, we use the SUM Function.

Important! If you are using Excel versions 2019 or earlier, you must enter the formula by pressing CTRL + SHIFT + ENTER to create the Array Formula. You’ll know you’ve done this correctly, when the curly brackets appear around the formula. This is not necessary in Excel 365 (or newer versions of Excel).

## Using Larger Array Sizes in a VLOOKUP Function

We can extend the size of the array input to represent more data. This next example will calculate the Total Sales Revenue of a specific Store for 12 months using an array function containing the SUM Function to combine 12 uses of the VLOOKUP Function into one cell. ## Other Summary Functions and VLOOKUP

Other summary functions can be used in the same way as the SUM Function to produce alternative summary statistics. For example, we can use the MAX, MIN, AVERAGE, MEDIAN, SUM, and COUNT Functions to summarize the Sales Revenue from January to March: ## Locking Cell References

To make our formulas easier to read, we’ve shown the formulas without locked cell references:

But these formulas will not work properly when copy and pasted elsewhere in your file. Instead, you should use locked cell references like this: 