Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Create Pareto Chart in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • Excel Bar Chart
  • Understanding Pivot Tables in Excel
  • How to create running total in an Excel Table

References

  • Count unique text values with criteria
  • Last row number in range
  • How to use Excel MMULT Function
  • How to get relative column numbers in a range in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions

Data Validations

  • Excel Data validation exists in list
  • Data validation must not exist in list
  • Excel Data validation allow weekday only
  • Excel Data validation must not contain
  • Excel Data validation with conditional list

Lookup and sum column in Excel

by

This tutorial shows how to Lookup and sum column in Excel  using the example below;

Formula

=SUM(INDEX(data,0,MATCH(val,header,0)))

Explanation

To lookup and return the sum of a column, you can use the a formula based on the INDEX, MATCH and SUM functions. In the example shown, the formula in I7 is:

=SUM(INDEX(C5:F11,0,MATCH(I6,C4:F4,0)))

How this formula works

The core of this formula uses the INDEX and MATCH function in a special way to return a full column instead of a single value. Working from the inside out, the MATCH function is used to find the correct column number for the fruit in I6:

MATCH(I6,C4:F4,0)

MATCH return 2 inside the INDEX function as the column_num argument, where the array is set to the range C5:F11, which includes data for all fruits.

The tricky part of the formula is the row_num argument, which is set to zero. Setting row to zero causes INDEX to return all values in the matching column in an array like this:

=SUM({6;12;4;10;0;9;6})

The SUM function then returns the sum of all items in the array, 47.

Post navigation

Previous Post:

COSH function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Excel Data validation require unique number

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel NOT Function
  • IF with wildcards in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to calculate next anniversary date or birthday in Excel
  • Get work hours between dates and times in Excel
  • How to calculate most recent day of week in Excel
  • How to calculate nth day of year in Excel
  • WORKDAY.INTL function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Map text to numbers in Excel
  • How to randomly assign people to groups in Excel
  • Group numbers at uneven intervals in Excel
  • Calculate conditional mode with criteria in Excel
  • Running count group by n size in Excel

General

  • Count cells that do not contain errors in Excel
  • Count cells that contain errors in Excel
  • How to calculate total from percentage in Excel
  • Sum by group in Excel
  • Check if multiple cells have same value with case sensitive in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning