Using SUMIF with Tables as an alternative to VLOOKUP

Using SUMIF with Tables as an alternative to VLOOKUP

March 26, 2018

You can use the SUMIF formula as an alternative to VLOOKUP when working with tables in Excel.Â  Â SUMIF makes it easy to set two different fields in the table as the search criteria.Â  Â

Â

In order to set up a table in Excel go to Insert . . .Table and select the required range of data.Â

Â

Â After you have a table created, you can always look up the names of any existing tables by pressing CTRL + G.Â

Â

The structure of a SUMIF formula is quite simple.Â  Â First enterÂ the field from the table that you want to extract data from, and then enter the references to the fields you are search for hits in.Â  Â Since the data has been entered in a table, we can enter the field names rather than column letters.Â

=SUMIFS(Table2[H],Table2[playerID],P2,Table2[yearID],Q2)

Â

In this example, we're searching for the names of baseball players and season years in order to determine how many hits Ed Delahanty and Dan Brouthers got between 1888 and 1896.

Â

Â SUMIF has a limitation - it cannot be used to return text without an adjustment . . .Â

Â

Contact Me With Your Litigation Support Questions:

Â© 2015 by Sean O'Shea . Proudly created with Wix.com