Help with Xlookup with a SUMIFS XLOOKUP, INDEX, and MATCH

Jonny424

New Member
Joined
Sep 3, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi there! I am reaching out to you to see if someone can help me with this excel problem.

Essentially I want it to look up two criteria, say, Depart # and Type of Pay (like Gross Pay); I want it to match each one and sum up all the amounts that match in that column to the department giving me a grand total for all Gross Pays for Department #.

There are two sets of data tables.

The formula will live here in Column F starting on F7 onward:
JE Totals.xlsx

And all the data live in this spreadsheet with the same names in Column C from JE Totals.
Master Data Table.xlsx

I've tried a couple of things like a pivot table, but there is 20 items total per department, and then the end user wants the grand totals at the bottom. That's why I thought a SUMIFS XLOOKUP, INDEX, And MATCH would be the best way but am not an expert at Excel to make it work perfectly. That is why I am asking for help.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
In F7:

Excel Formula:
=SUMIFS(INDEX('Master Data Table.xlsx'!Table13[#Data],0,MATCH(C7,'Master Data Table.xlsx'!Table13[#Headers],0)),'Master Data Table.xlsx'!Table13[Worked In Department],A7)

W- Capital Campaign
EE Cont to Med/Dental

Will return
Excel Formula:
#N/A
, as they don't exist in the table's headers. Maybe you can replace
W- Capital Campaign with W_Capital Campaig_total_deductions in column AY of the Master Table.
 
Upvote 0
In F7:

Excel Formula:
=SUMIFS(INDEX('Master Data Table.xlsx'!Table13[#Data],0,MATCH(C7,'Master Data Table.xlsx'!Table13[#Headers],0)),'Master Data Table.xlsx'!Table13[Worked In Department],A7)

W- Capital Campaign
EE Cont to Med/Dental

Will return
Excel Formula:
#N/A
, as they don't exist in the table's headers. Maybe you can replace
W- Capital Campaign with W_Capital Campaig_total_deductions in column AY of the Master Table.
You are a God Send! THANK YOU!!!!
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top