# =sumproduct question

#### chuckles1066

##### Banned
You guys have been enormously helpful in the past so I'm hoping you can assist me here.

How do I get sumproduct to work if, say:

if column a to row 99 = 1, column b to row 99 = 2, column c to row 99 =3, column d to row 99 = 4 then total column e to row 99?

Using the standard notation, I keep hitting a reply of 0?

TIA.

### Excel Facts

Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Well that would be

=SUMPRODUCT(--(A1:A99=1),--(B1:B99=2),--(C1:C99=3),--(D1:D99=4),E1:E99)

I think I understood question right...

Code:
``=SUMPRODUCT((A1:A99=1)*(B1:B99=2)*(C1:C99=3)*(D1:D99=4),E1:E99)``

Replies
3
Views
422
Replies
5
Views
450
Replies
6
Views
287
Replies
10
Views
327
Replies
5
Views
468

1,220,965
Messages
6,157,123
Members
451,399
Latest member
alchavar

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