SUM With a VLOOKUP Function – Excel & Google Sheets

Written by

Editorial Team

Reviewed by

Steve Rynearson

Last updated on February 22, 2023
Download Example Workbook

Download the example workbook

This tutorial will demonstrate how to sum the results of multiple VLOOKUP Functions in one formula in Excel and Google Sheets.

sum vlookup



The VLOOKUP Function lookups a single value, but by creating an array formula, you can lookup and sum multiple values at once.

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:


Sum Vlookup

This array formula 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 (surrounding by brackets):


This will produce the array result:

{98, 20, 76}

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:


Read our article on Locking Cell References to learn more.

SUM VLOOKUP Results in Google Sheets

These formulas work the same in Google Sheets as in Excel, except that the ARRAYFORMULA Function is required to be used in Google Sheets for it to evaluate the results correctly. This can be automatically added by pressing the keys CTRL + SHIFT + ENTER while editing the formula.


sum vlookup Google Function

AI Formula Generator

Try for Free

Excel Practice Worksheet

practice excel worksheet

Practice Excel functions and formulas with our 100% free practice worksheets!

  • Automatically Graded Exercises
  • Learn Excel, Inside Excel!

Free Download

Return to Excel Formulas List