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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

yee388

Well-known Member
Joined
Mar 7, 2004
Messages
1,374
If your data is in rows 1-100, use something like:

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

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
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.
 

yee388

Well-known Member
Joined
Mar 7, 2004
Messages
1,374
Substitute the hard-coded "2" and "New" for cell references if you want to change the lookup variables.
 

Forum statistics

Threads
1,137,366
Messages
5,681,072
Members
419,950
Latest member
BeckiJae

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
Top