SUMIFS #VALUE! error

adrienne0914

Board Regular
Joined
Mar 22, 2018
Messages
73
Office Version
  1. 365
Platform
  1. Windows
Trying to do a relatively simple SUMIFS formula, but getting a #VALUE ! error. I want to sum the weeks where YTD is on row 1:

[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]YTD[/TD]
[TD="align: center"]YTD[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]Week 1[/TD]
[TD="align: center"]Week 2[/TD]
[TD="align: center"]Week 3[/TD]
[TD="align: center"]Total[/TD]
[/TR]
[TR]
[TD]All COLORS[/TD]
[TD]3827[/TD]
[TD]3666[/TD]
[TD]3997[/TD]
[TD]11490[/TD]
[/TR]
[TR]
[TD]Total BLUE[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]6[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Total GREEN[/TD]
[TD]50[/TD]
[TD]65[/TD]
[TD]22[/TD]
[TD]138[/TD]
[/TR]
[TR]
[TD]Total YELLOW[/TD]
[TD]71[/TD]
[TD]48[/TD]
[TD]48[/TD]
[TD]167[/TD]
[/TR]
[TR]
[TD]Total RED[/TD]
[TD]52[/TD]
[TD]39[/TD]
[TD]71[/TD]
[TD]162[/TD]
[/TR]
</tbody>[/TABLE]

Expected results:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]YTD[/TD]
[/TR]
[TR]
[TD]ALL COLORS[/TD]
[TD="align: center"]7493[/TD]
[/TR]
[TR]
[TD]Total BLUE[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD]Total GREEN[/TD]
[TD="align: center"]115[/TD]
[/TR]
[TR]
[TD]Total YELLOW[/TD]
[TD="align: center"]119[/TD]
[/TR]
[TR]
[TD]Total RED[/TD]
[TD="align: center"]91[/TD]
[/TR]
</tbody>[/TABLE]


=SUMIFS($B$3:$D$7,$A$3:$A$7,A19,$B$1:$D$1,B17)
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
HI,
Try this approach

Code:
'=SUMPRODUCT(($B$1:$D$1=$B$10)*($A$3:$A$7=$A11),$B$3:$D$7)

Paul.
 
Last edited:
Upvote 0
Hi,

Same as above, was working on it during the above post:


Book1
ABCDE
1YTDYTD
2Week 1Week 2Week 3Total
3All COLORS38273666399711490
4Total BLUE0066
5Total GREEN506522138
6Total YELLOW714848167
7Total RED523971162
8
17YTD
18
19ALL COLORS7493
20Total BLUE0
21Total GREEN115
22Total YELLOW119
23Total RED91
Sheet150
Cell Formulas
RangeFormula
B19=SUMPRODUCT((B$1:D$1=B$17)*(A$3:A$7=A19)*B$3:D$7)


B19 formula copied down.
 
Upvote 0
SUMPRODUCT works great in my example file where all info is on one tab. But in my actual file, which references another tab with tons of data, I get an #N/A message. What are some things that could be wrong? Here is my formula:

Code:
=SUMPRODUCT(('Booking Report'!$DG$27:$HG$27=B$7)*(Bookings!$A$33:$A$67=$A9)*Bookings!$DG$35:$HG$67)
 
Last edited:
Upvote 0
You can't "split up" the criterion into different sheets with SUMPRODUCT, you either have to find another way to include some kind of condition in Bookings! sheet, or copy 'Booking Report'!DG27:HG27 to Bookings!
 
Upvote 0
I didn't even notice. That was a typo. I changed Booking Report! to Bookings! and it worked. THANK YOU!
 
Upvote 0
Great, that was a simple fix.

You're welcome.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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