Value error using sumifs/sumproduct

drluke

Active Member
Joined
Apr 17, 2014
Messages
314
Office Version
  1. 365
Platform
  1. Windows
I'm trying to sum columns/rows with multiple criteria using sumifs and sumproduct, but get value errors. My data table looks like this:

100020003000Total1000#
Emp#SalariesBonusesPensionTotalSalariesBen A
1211568.98500.00(29.65)2039.33150.000.00

<tbody>
</tbody>

My summary sheet is set up:

100020003000
Emp#SalariesBonusesPension
121

<tbody>
</tbody>

I am adding totals for salaries, bonuses, pension etc per employee number but get value errors. How can I correct this?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
What formula are you using?
 
Upvote 0
=SUMPRODUCT((Sheet1!A3:A50=A3)*(Sheet1!B1:G1=B1),B3:G50) the result here = 0 instead of 1,718.98

=SUMIFS(Sheet1!B3:G50,A3:A50,A3,Sheet1!B1:G1=B1) = #VALUE !
 
Upvote 0
The first one should work as long as the final argument is Sheet1!B3:G50 rather than just B3:G50.

If it doesn't work, then you've got a mismatch in your criteria - for example, numbers stored as text on one sheet and not the other, or leading/trailing spaces in the ID number.
 
Upvote 0
Thank you. I'm at a loss - the format for all the row/column references on both sheets are General .....
 
Upvote 0
If you clear any manual alignment of the cells, are they both either left or right aligned?
 
Upvote 0
Both are left aligned. I did =ISTEXT on both and the result was TRUE for both
 
Upvote 0
On both sets of criteria?
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,442
Members
448,898
Latest member
drewmorgan128

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
Back
Top