Excel Functions Tutorials
- Lookup Reference in Excel
- Address Function in Excel
- Choose Function in Excel
- Column Function in Excel
- Columns Function in Excel
- REPLACE Function in Excel
- GetPivotData in Excel
- HLOOKUP in Excel
- HLOOKUP Formula in Excel
- HLOOKUP Examples
- Hyperlink Excel Function
- Hyperlink Formula in Excel
- INDIRECT Function in Excel
- LOOKUP Excel Function
- LOOKUP Formula in Excel
- Match Excel Function
- MATCH Formula in Excel
- How to Match Data in Excel?
- VLOOKUP Excel Function
- VLOOKUP Formula
- VLOOKUP Tutorial in Excel
- VLookup in VBA Excel
- VLOOKUP in Pivot Table
- VLOOKUP with SUM
- VLOOKUP with Match
- SUMIF With VLOOKUP
- VLookup with IF Statement
- Vlookup to the Left
- VLOOKUP from Another Sheet / Workbook
- VLOOKUP Examples in Excel
- VLOOKUP Table Array
- VLOOKUP vs HLOOKUP
- INDEX Excel Function
- INDEX Formula in Excel
- Indirect Formula in Excel
- TRANSPOSE Excel Function
- Row Function in Excel
- Rows Function in Excel
- OFFSET Excel Function
- OFFSET Formula in Excel
- VLOOKUP with Multiple Criteria
- IFERROR with VLOOKUP in Excel
- Fixing VLOOKUP Errors
- Alternatives to Vlookup
- Financial Functions in Excel (17+)
- Logical Functions in Excel (15+)
- TEXT Functions in Excel (29+)
- Maths Functions in Excel (52+)
- Date and Time Function in Excel (22+)
- Statistical Function in Excel (50+)
- Information Functions in Excel (5+)
- Excel Charts (48+)
- Excel Tools (98+)
- Excel Tips (178+)
- VBA (162+)
Vlookup with SUM Function
VLOOKUP is one of the advanced features of Excel. It is used as the database function to perform calculations on the tables imported from the database. In the present article, the combined use of VLOOKUP and SUM function to determine the specific criteria and find the sum of the values presented in all the VLOOKUPs.
Explanation of VLOOKUP with Sum in Excel
We need to understand the various terms associated with the use of VLOOKUP and SUM in excel to find the total of values that meet the criteria. Mainly four elements should be considered inside lookup function including lookup value, lookup range, indexes of columns, and logical value.
The formula should be entered as = SUM(VLOOKUP(lookup value, lookup range, column index, and logical value))
- Lookup Value – This is the value we search for determining the sum that matches exactly. It definitely changes the lookup value to determine the sum of different columns using different criteria.
- Lookup Range – It is the range of cells helpful to search for data using the specified criteria. Generally, it will be a table of data generated from different sources.
- Indexes of Columns – To find the sum of the array of indexes should be entered. One can enter all column indexes and few columns indexes based on the requirement. These are helpful in identification of the columns including in sum.
- Logical Value – Appropriate logic value either 0 and 1 or true or false to select the values that match or approximately
Top Examples of VLOOKUP with SUM Function
Below are some examples of VLOOKUP with SUM Function.
Use of simple sum and vlookup function
The sales of the laptop are determined using the sum and vlookup. But, this can be simply using the sum formula also. The reason for using vlookup with sum is that feasibility in changing the lookup values of cell G3 to determine sales other items like DVD and phone. By changing lookup value to the phone, sales of the phone are generated like shown in the below screenshot.
In the present scenario, the VLOOKUP function eliminated individual calculation of the sum of sales produced.
Determining the sum of sales generated in two different worksheets using Excel VLOOKUP and SUM. The following data is considered to explain this example.
Three worksheets are creating including Jan, Feb, and summary to determine the total sales generated by a customer. In this, two vlookup functions are added for two worksheets January and February to determine the total sales as shown in the below-mentioned figure.
To determine the sales generated by other customers, the formula is dragged to other rows by adding absolute cell reference to the range of data. It will produce accurate results in the use of sum and vlookup.
Summing of values presented in alternative columns
It is possible to sum the values presented in alternative and specified columns. The following table is considered to illustrate the present example.
If we want to determine the sum of values in alternative columns including January, March, May, July, September, and November. To do this, indexes of only these columns should be considered instead of all column indexes as shown in the below screenshot.
To get sales of other products, simply changing the value in the cell B14 helps in getting the desired result. This is the best feature provided by the excel VLOOKUP.
How to Use VLOOKUP with SUM Function?
VLOOKUP and SUM can also be used to do the following –
- Determining the sum of matching values in columns
- Determining the sum of matching values in rows
For understanding, the table is created as shown in the below figure.
#1 – Determining the sum of matching values in columns
If we want to determine total sales of the cooler from January to December, the specific criteria should be entered into the empty cell
In this, the lookup value is presented in the cell called A15 and A2:M11 is the range of data, the numbers 2 to 13 are the indexes for the columns. By applying these into the excel vlookup and sum formula, the total value of sales cooler will be obtained. After entering a formula, CTRL, SHIFT, and ENTER at a time to yield the result otherwise only value of the first cell is displayed without all the values. This process is applicable for remaining products to find the sum of values in different columns.
#2 – Determining the sum of matching values in rows
The below-mentioned sheet shows the sales of cooler in the different rows. These are summed using the SUMPRODUCT function.
In this, lookup value is presented in the cell A15 that is considered as criteria to determine the sum of sales. We can change this value to other products to find out the sales. But, in this process simply pressing of entering after writing the formula yields better results.
Things to Remember about Excel Vlookup with Sum
It needs to remember the following things while using the VLOOKUP function by developing appropriate syntax:
- The value we wish to lookup is termed as the lookup value
- The name should be created for a range of cells or array to use with VLOOKUP. It needs to ensure that lookup value is placed in the first column to the proper working of VLookup. For example, the range of cells should be beginning with B when lookup value is presented in the cell with address C2.
- One thing to remember that index numbers have to be given to the columns to easily use. Lookup value column is indicated with 1, next column with 2, and so on.
- The appropriate logical value should be entered either true or false to approximate or exact match of lookup value, index number, and range of cells. Otherwise, errors will occur.
This has been a guide to VLOOKUP with SUM in Excel. Here we discuss how to use VLOOKUP with SUM Function along with practical examples and downloadable excel template. You may learn more about excel from the following articles –