Sumif columns within a column?

tahir9

New Member
Joined
Aug 31, 2014
Messages
45
I have 12 columns that are months and for each month column there are about 7 other columns. I want to sum the column sales within august using a sumifs. But this formula doesn't really work I was wondering if there was another way or if I am using the wrong formula? SUMIFS(INDEX('Burg History_Sale NM'!A9:KX550,,MATCH($E$2,'Burg History_Sale NM'!8:8,0)),'Burg History_Sale NM'!$8:$8,$D$4), where E2 Is my month cell, and D4 is the cell that contains my column header with my month?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I have 12 columns that are months and for each month column there are about 7 other columns.

I'm a little unclear what you're saying.

You have 12 columns: January, February, Match.. etc. And for each of these columns you have 7 other columns? So 84 columns all together?

Could you supply a piece of sample data?
 
Upvote 0
AugustSeptember
SaleInventorySaleInventory
10111015
81059
2356

<tbody>
</tbody>

Sorry I tried to copy and paste date but it looked weird so I just made a sample table on a much smaller scale but it should demonstrate what I am asking.

I want to sum with sale column but only for August or September or any other month depending on the values I want.
 
Upvote 0
Seed if this will help. Based on your table (I changed some numbers to differences are more easily seen)...
A​
B​
C​
D​
E​
F​
G​
1​
AugustSeptemberAugust
2​
SaleInventorySaleInventorySalesInv
3​
aa10111112
33​
36​
4​
bb11121213
22​
24​
5​
aa12131314

F1=your month
F2=SUM(OFFSET($A$1,2,MATCH($F$1,$B$1:$D$1,0),COUNTA(A:A),1))
This will sum all values in the selected column for Sales
=SUM(OFFSET($A$1,2,MATCH($F$1,$B$1:$D$1,0)+1,COUNTA(A:A),1))
This will sum all values for the selected month for its 2nd column

F4=SUMIF($A$3:$A$5,"aa",OFFSET($A$1,2,MATCH($F$1,$B$1:$D$1,0),COUNTA(A:A),1))
This will do the same sum, but ONLY for the "aa" items

Again for "aa" for treh 2nd column...
=SUMIF($A$3:$A$5,"aa",OFFSET($A$1,2,MATCH($F$1,$B$1:$D$1,0)+1,COUNTA(A:A),1))
 
Upvote 0

Forum statistics

Threads
1,222,038
Messages
6,163,542
Members
451,843
Latest member
vitto

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