Question using sumif

ajc623

Board Regular
Joined
Nov 8, 2013
Messages
57
I am trying to have a summary page which will give me sales numbers for each year for 30 specific customers. I have a data sheet with all sales going back to 2010 that is arrange this way

Column A - item
Column B - Date
Column E - Customer Name
Column I - Amount

the other columns are date I need but are not relevant to this.
On the summary page I want to have

Column A - Customer name
Column B - 2010
Column C - 2011 and so on

My goal is to be able to enter the year in row 1 and have the data automatically update for each customer listed in Column A. One other minor issue is most of the names will match up exactly but there are several customers who order from different locations and I would like to group those together under one "parent company" name. Any help would be greatly appreciated.

Andrew
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Assuming Data as first sheet name, maybe something like this

Formula in B2 of Summary sheet
=SUMIFS(Data!$I:$I,Data!$E:$E,$A2,Data!$B:$B,">="&DATE(B$1,1,1),Data!$B:$B,"<="&DATE(B$1,12,31))
copy across and down

Hope this helps

M.
 
Upvote 0
01/01/201501/01/201601/01/2017
fred162511750
itemdatecustnameamountbill125017250
item103/01/2015fred175sid135018000
item202/02/2015bill2008925
item304/03/2015sid225
item403/04/2015fred250
item503/05/2015bill275
item602/06/2015sid300
item202/07/2015fred325
item301/08/2015bill350I do not understand your minor issue….
item431/08/2015sid375
item530/09/2015fred400unless you mean in this example you want to treat sid and bill as one person…
item630/10/2015bill425
item129/11/2015sid450
item229/12/2015fred475
item328/01/2016bill500
item427/02/2016sid525
item528/03/2016fred550
item627/04/2016bill575
item227/05/2016sid600
item326/06/2016fred625
item426/07/2016bill650
item525/08/2016sid675
8925

<colgroup><col><col><col span="7"><col span="3"><col span="4"></colgroup><tbody>
</tbody>
 
Upvote 0
Assuming Data as first sheet name, maybe something like this

Formula in B2 of Summary sheet
=SUMIFS(Data!$I:$I,Data!$E:$E,$A2,Data!$B:$B,">="&DATE(B$1,1,1),Data!$B:$B,"<="&DATE(B$1,12,31))
copy across and down

Hope this helps

M.

Thanks for the quick reply. That works great when the customer name in the summary sheet matches exactly with what is in the data sheet but is there a way to get it to work when they dont match exactly. For example say I have Acme California and Acme Wisconsin as customers on the data sheet and I want to have just Acme on the summary sheet. I have several of these customers with 2-6 locations for each

Andrew
 
Upvote 0
Not sure what you mean by minor issue, but this is not something that I have been able to figure out on my own and thought I would seek others help. If you read my original post as well as my follow up one of my main issues is wanting to combine a customer who orders from multiple locations and that is how it is entered on the raw data sheet but I would like to combine those to see how that customer as a whole is ordering. For example say I have Acme California and Acme Wisconsin as customers on the data sheet and I want to have just Acme on the summary sheet. I have several of these customers with 2-6 locations for each
 
Upvote 0
For this particular case, names beginning with ACME, you can use a wildcard. Something like this

=SUMIFS(Data!$I:$I,Data!$E:$E,$A2&"*",Data!$B:$B,">="&DATE(B$1,1,1),Data!$B:$B,"<="&DATE(B$1,12,31))

where A2 = ACME

M.
 
Upvote 0

Forum statistics

Threads
1,215,964
Messages
6,127,966
Members
449,414
Latest member
sameri

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