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

#### davidhall80

##### Well-known Member
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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

#### yee388

##### Well-known Member
If your data is in rows 1-100, use something like:

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

##### Well-known Member
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
Substitute the hard-coded "2" and "New" for cell references if you want to change the lookup variables.

#### davidhall80

##### Well-known Member
Got it guys....thanks alot

Replies
2
Views
374
Replies
3
Views
1K
Replies
4
Views
119
Replies
1
Views
471
Replies
0
Views
304

1,171,579
Messages
5,876,284
Members
433,192
Latest member
butterexcel

### 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.

### Which adblocker are you using?

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

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