# Help with a SUMPRODUCT formula

#### storm925

##### Board Regular
Hello Forum, just looking for a little help with a SUMPRODUCT formula. I've included a very simple example of my data. In cell C13 is where I need to place my formula. I need the formula to reference A13 and B13, and give me the total in C13. I may be putting in different dates in B13 and even different departments in A13. I hope this makes sense. I guess I could use a HLOOKUP formula, but I really wanted to see if I could accomplish it with a SUMPRODUCT. Thank you for taking a look at my post and any comments would be greatly appreciated. --Ben
 A B C D E 1 Dept: Jan-13 Feb-13 Mar-13 Apr-13 2 Mgt 1 1 1 1 3 Mgt 1 1 4 Com 1 1 1 1 5 Mgt 1 1 6 Mgt 1 1 7 Com 1 1 1 1 8 Mgt 1 1 9 Com 1 10 Com 1 1 1 11 12 Dept: Date: Count: 13 Mgt Mar-13 4

<TBODY>
</TBODY>

### Excel Facts

Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
maybe..

=SUMPRODUCT((A2:A10=A13)*(B1:E1=B13),B2:E10)

Excel Workbook
ABCDE
1Dept:Jan-13Feb-13Mar-13Apr-13
2Mgt1111
3Mgt11
4Com1111
5Mgt11
6Mgt11
7Com1111
8Mgt11
9Com1
10Com111
11
12Dept:Date:Count:
13MgtMar-134
Sheet

I just wanted to say thank you to both for your suggestions--they worked beautifully. --Ben

Replies
1
Views
188
Replies
7
Views
309
Replies
0
Views
168
Replies
8
Views
190
Replies
3
Views
446

1,211,848
Messages
6,104,357
Members
447,902
Latest member
chriswebs23

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