Counting Multiple answers with multiple criterias

Joefried

New Member
Joined
Aug 5, 2011
Messages
37
I need a formula of:
If the following options are met:
1) 'sheet2'A:A matches 'sheet1'A21
2) 'sheet2'D:D matches 'sheet1 F20

Now when he finds them I will need the answer for the sum of the amounts found in 'sheet2'E:E and if there are two matches give me a sum of both together

('Sheet2'E:E) are charges meaning they are $0.00
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
In Excel 2003 you'll have to decide how many rows you want to check, lets do 500 rows....

=SUMPRODUCT(--(Sheet2!$A$1:$A$500=Sheet1!A21),--(Sheet2!$D$1:$D$500=Sheet1!F20), Sheet2!$E$1:$E$500)


In Excel 2007+ you can use SUMIFS().

=SUMIFS(Sheet2!$E:$E, Sheet2!$A:$A, Sheet1!A21, Sheet2!$D:$D, Sheet1!F20)
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,348
Members
452,907
Latest member
Roland Deschain

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