Best way to sum by lookup to 2 sheets

SpudNix

New Member
Joined
Mar 26, 2017
Messages
11
Hi
I have 3 sheets and need to sum Sheet1 based on amount from Sheet2 and the sum Criteria on Sheet3
Sheet1 is what I'm trying to sum in "SumAmount"
Sheet1
EmployeeCategorySumAmount
Payroll3
Savings7
Contractors15
Sheet2: (contains what needs to be summed)
LedgerAccountAmount
600- Fulltime1
601 - PartTime2
603 - Staff Savings7
604 - Casual Staff4
605 - Contractors5
606 - Consultants6

Sheet 3 (contains the lookups)
EmployeeCategoryLedgerAccount
Payroll600- Fulltime
Payroll601 - PartTime
Savings603 - Staff Savings
Contractors604 - Casual Staff
Contractors605 - Contractors
Contractors606 - Consultants

Thanks in Advance!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
idk whats ur excel version but, try this :

On Sheet 1 :
=SUM(XLOOKUP(FILTER(Sheet3!$B$1:$B$7,Sheet3!$A$1:$A$7=$A2),Sheet2!$A$1:$A$7,Sheet2!$B$1:$B$7))

*Sheet1
1700210228595.png


*Sheet 2
1700210295026.png



*Sheet 3
1700210319761.png
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,024
Members
449,092
Latest member
ikke

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