adrienne0914
Board Regular
- Joined
- Mar 22, 2018
- Messages
- 73
- Office Version
- 365
- Platform
- 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)
[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)