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:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD]3000[/TD]
[TD]Total[/TD]
[TD]1000[/TD]
[TD]#[/TD]
[/TR]
[TR]
[TD]Emp#[/TD]
[TD]Salaries[/TD]
[TD]Bonuses[/TD]
[TD]Pension[/TD]
[TD]Total[/TD]
[TD]Salaries[/TD]
[TD]Ben A[/TD]
[/TR]
[TR]
[TD]121[/TD]
[TD]1568.98[/TD]
[TD]500.00[/TD]
[TD](29.65)[/TD]
[TD]2039.33[/TD]
[TD]150.00[/TD]
[TD]0.00[/TD]
[/TR]
</tbody>[/TABLE]

My summary sheet is set up:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]Emp#[/TD]
[TD]Salaries[/TD]
[TD]Bonuses[/TD]
[TD]Pension[/TD]
[/TR]
[TR]
[TD]121[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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