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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,224,538
Messages
6,179,412
Members
452,912
Latest member
alicemil

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