Double Product IF Formula...I Think........

davidhall80

Well-known Member
Joined
Jul 8, 2006
Messages
663
Column A Has Zone 1 through Zone 9. Column B has "New", "Change", or "Old". Column C has Pay Rate. Column D has hours worked. I would like to get total Gross Pay for "Zone 2" "New" assignments. If column A = Zone two, and Column B = New, than multiply C with D and add all those products together. Make sense??....Thanks in advance
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
If your data is in rows 1-100, use something like:

=SUMPRODUCT(--(A1:A100=2),--(B1:B100="New"),C1:C100,D1:D100)
 
Upvote 0
Hello

in F1 enter 2

in G1 enter New

then in H1 enter

=SUMPRODUCT(--($A$1:$A$6=F2),--($B$1:$B$6=G2),($C$1:$C$6)*($D$1:$D$6))

change ranges to suit, you can then add variants in F and G and copy H1 down.
 
Upvote 0
Substitute the hard-coded "2" and "New" for cell references if you want to change the lookup variables.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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