Excel SUMIF or SUMIFS Formula Help

wezar

New Member
Joined
Nov 6, 2018
Messages
2
Hello, I have a huge spreadsheet that I am trying to do a summary on. I thought using a SUMIFS formula would work but I just can't seem to get the correct formula, I keep getting ERROR messages. Any help would be greatly appreciated. Please see structure below.

[TABLE="width: 461"]
<tbody>[TR]
[TD="width: 140, bgcolor: transparent"]Current Spreadsheet
[/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[TD="width: 74, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Company Name
[/TD]
[TD="bgcolor: transparent"]Product 1
[/TD]
[TD="bgcolor: transparent"]Product 2
[/TD]
[TD="bgcolor: transparent"]Product 3
[/TD]
[TD="bgcolor: transparent"]Product 4
[/TD]
[TD="bgcolor: transparent"]Product 5
[/TD]
[TD="bgcolor: transparent"]Total
[/TD]
[TD="bgcolor: transparent"]Rev Month
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A Company
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]5,000
[/TD]
[TD="bgcolor: transparent"]Jul-18
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]B Company
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]2,000
[/TD]
[TD="bgcolor: transparent"]Jul-18
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]C Company
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]2,000
[/TD]
[TD="bgcolor: transparent"]Aug-18
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]D Company
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]-
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]Sep-18
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A Company
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]5,000
[/TD]
[TD="bgcolor: transparent"]Sep-18
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A Company
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]1,000
[/TD]
[TD="bgcolor: transparent"]5,000
[/TD]
[TD="bgcolor: transparent"]Sep-18
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]4,000
[/TD]
[TD="bgcolor: transparent"]3,000
[/TD]
[TD="bgcolor: transparent"]4,000
[/TD]
[TD="bgcolor: transparent"]6,000
[/TD]
[TD="bgcolor: transparent"]3,000
[/TD]
[TD="bgcolor: transparent"]20,000
[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Spreadsheet Needed
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Jul-18
[/TD]
[TD="bgcolor: transparent"]Aug-18
[/TD]
[TD="bgcolor: transparent"]Sep-18
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Product 1
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Product 2
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Product 3
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Product 4
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Product 5
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"]0
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How about


Excel 2013/2016
ABCDEFGH
1Company NameProduct 1Product 2Product 3Product 4Product 5TotalRev Month
2
3A Company1,0001,0001,0001,0001,0005,000Jul-18
4B Company--1,0001,000-2,000Jul-18
5C Company1,000--1,000-2,000Aug-18
6D Company---1,000-1,000Sep-18
7A Company1,0001,0001,0001,0001,0005,000Sep-18
8A Company1,0001,0001,0001,0001,0005,000Sep-18
94,0003,0004,0006,0003,00020,000
10
11
12Jul-18Aug-18Sep-18
13Product 1100010002000
14Product 2100002000
15Product 3200002000
16Product 4200010003000
17Product 5100002000
Sheet1
Cell Formulas
RangeFormula
B13=SUMIFS(INDEX($B$3:$G$8,0,MATCH($A13,$B$1:$G$1,0)),$H$3:$H$8,B$12)
C13=SUMIFS(INDEX($B$3:$G$8,0,MATCH($A13,$B$1:$G$1,0)),$H$3:$H$8,C$12)
D13=SUMIFS(INDEX($B$3:$G$8,0,MATCH($A13,$B$1:$G$1,0)),$H$3:$H$8,D$12)
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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