# using sumproduct in place of sumif

#### lilolme

##### New Member
I'm using the following info as part of my spreadsheet.
A B C D E F
1 LA LS LU LT Sessions Month
2 LU 1.5 NOV
3 LA 3 DEC
4 LT 4 NOV
5 LA 2.1 NOV
LS JAN

I need a formula which will calculate the sum of sessions with the conditions that i need to select a month and a code. i'm using Excel 2007 and the following formula worked ok:

=SUMIFS(\$E\$1:\$E\$4,\$F\$1:\$F\$4,"Nov",\$A\$1:\$A\$4,"LA").

However, i need to send it to someone using the 2003 version of Excel, which does not have the function SUMIFS. i think the formula i need is the SUMPRODUCT one but i cant get it to work.

### Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

#### Jonmo1

##### MrExcel MVP
Yep, sumproduct would work...

=SUMPRODUCT(--(\$F\$1:\$F\$4="Nov"),--(\$A\$1:\$A\$4="LA"),\$E\$1:\$E\$4)

#### barry houdini

##### MrExcel MVP
You can use this syntax

=SUMPRODUCT(\$E\$1:\$E\$4,(\$F\$1:\$F\$4="Nov")*(\$A\$1:\$A\$4="LA"))

#### lilolme

##### New Member
thank you thank you both, it worked perfectly!!

Replies
1
Views
215
Replies
6
Views
187
Replies
9
Views
148
Replies
3
Views
68
Replies
19
Views
262

### Forum statistics

1,129,685
Messages
5,637,798
Members
416,983
Latest member
LessThanAverageUser

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