Problem with sales, multiple values, postcodes, etc.

Tashbbb

New Member
Joined
Aug 8, 2020
Messages
5
Office Version
  1. 2019
Platform
  1. MacOS
Hi guys,


I came across this problem today and I'm not sure how to solve it..I'm sure this is easy for you but I'm a beginner so this is really stressing me out :(((

I have two tabs which include:

1: Sales dates, postcodes and number of sales

2: postcodes, store number, store names

Each postcodes is associated with a certain store number and store numbers is associated with a store name.
Now....

1)How do I get total number of sales per store (name)?

2)How do I calculate which two months had the highest volume of sales taking only into consideration stores that had sales from September onwards? (and excluding stores which are not associate with a postcode)?

3) How do I figure out which store had the fastest growth?

Number 1 and 2 are giving me more headaches...I tried to look online but I cannot find a solution

I really appreciate your help !!!!
 

Attachments

  • Screenshot 2020-08-08 at 13.24.48.png
    Screenshot 2020-08-08 at 13.24.48.png
    95.8 KB · Views: 10
  • Screenshot 2020-08-08 at 13.24.54.png
    Screenshot 2020-08-08 at 13.24.54.png
    155.5 KB · Views: 10
1st Question: 1 Create a store Id Helper Column in (Marked in Yellow) and use Sumif function as stated in column F and it will give you total Number of Sales (Assuming Column P is Count of Sales and Not the sales volume)

2nd Question use the Formula used in R2 and i have considered sales volume beginning from 01/09/2019 and the dates correspondence to only one Financial or calender year.
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
In case of Formula in R2 please use Ctrl+Shift+Enter and not just Enter and drag it down.
 
Upvote 0
In case of Formula in R2 please use Ctrl+Shift+Enter and not just Enter and drag it down.
I tried to copy and paste and type cmd+shift+ enter, cmd + return, cmd + shift + return but none of these work...:(
Any suggestion? I have a mac and Excel 16.39

2.) Note Excluding new stores launched 2019, i.e., taking only stores that were active since September 2018, I need to know which two months had the highest volume of sales
 
Upvote 0
You dont have to type.
As you press enter once you are complete with the formula, here you have to press not just enter but Ctrl+Shift+Enter
 
Upvote 0
2.) Note Excluding new stores launched 2019, i.e., taking only stores that were active since September 2018, I need to know which two months had the highest volume of sales

You can just type the formula in Column S as =MONTH(N2)&" "&YEAR(N2) it will give 9 2019 and now you are ready for Pivot
just as shown in screenshot
1596907499226.png
 
Upvote 0
One way
add two helpers on the Data sheet

problem_forum.xlsx
ABCDE
1Data Month SalePost code PrefixConfirmed Salesdatestore
22019-05N7101/05/2019255
32019-05SE12101/05/2019TBC
42019-05BR6101/05/2019TBC
52019-05SW16101/05/2019144
62019-05BA1101/05/2019264
72019-05SN1101/05/2019264
82019-05M16101/05/2019186
92019-05E1101/05/2019TBC
102019-05NW6101/05/2019141
112019-05W9101/05/2019141
122019-05SW6101/05/2019144
132019-05W12101/05/2019141
142019-05KT14201/05/2019144
Data set
Cell Formulas
RangeFormula
D2:D14D2=DATE(LEFT(A2,4),RIGHT(A2,2),1)
E2:E14E2=VLOOKUP(B2,Lookup!$A$2:$B$1696,2,0)


And then on the Location sheet
problem_forum.xlsx
DEFGHIJKLMNOPQRST
1Store numberStore nameSeptOctNovDecJanFebMarAprMayJunJulAug
2113Store Belfast               
3125Store Southampton               
4140Store Warringtonok236203022213332000AprMay
5141Store London - Wembleyok706763719604721619738699671000OctMar
6142Store Birmingham - Wednesbury               
7143Store Newcastle - Gateshead               
8144Store London - Croydonok527584538530525490570562551000OctMar
9150Store Coventry               
10185Store Milton Keynesok528654354000NovDec
11186Store Manchesterok808285677175160164145000AprMar
12255Store London - Tottenhamok316412426381388327442440397000MarApr
13261Store Leeds               
14262Store Lakesideok107150167160165164175190173000AprMar
15263Store Nottingham               
16264Store Bristolok136142123105127108156129148000MarMay
17265Store Edinburgh - Straiton               
18266Store Glasgow - Braehead               
19267Store Cardiff               
20461Store Readingok633122182169199187184000MarApr
21472Store eCommerce Great Britain               
22519Store Sheffield               
23548Store Exeter               
24567Store Greenwich               
Lookup
Cell Formulas
RangeFormula
F2:F24F2=IF(COUNTIFS('Data set'!$E$2:$E$22500,D2,'Data set'!$D$2:$D$22500,"<=01/09/2018"),"ok","")
G2:R24G2=IF($F2="ok",SUMIFS('Data set'!$C$2:$C$22500,'Data set'!$E$2:$E$22500,$D2,'Data set'!$D$2:$D$22500,">="&DATE(2018,COLUMN(I1),1),'Data set'!$D$2:$D$22500,"<"&DATE(2018,COLUMN(J1),1)),"")
S2:T24S2=IF($F2="ok",INDEX($G$1:$R$1,MATCH(LARGE($G2:$R2,COLUMN(A1)),$G2:$R2,0)),"")


Using the helper columns, avoids the use of array formula which won't take kindly to working with over 22,000 rows.
 
Upvote 0
Thank you guys, I think I'm getting there....see below

How can I get the sales per month per each store (including all dates/months) ? I need to calculate the growth of each store so I guess it would make things easier.

So it's like
Sales Septmber 2018. Sales October 2018 Sales November. ..... 2019.... Growth
store xxx 10 20 30 ....... ........... 34. %


Look up:

problem_forum in progress.xlsx
ABCDEFGHIJKLMNOPQRSTUVW
1PostcodesStore numberStore numberStore nameTotal volume sales Sep18-May 2019Growth Sep 18-May 2019 Two month with highest volume of sales(stores launched from 2018 only)Data Month SalePost code PrefixConfirmed SalesStore IDRequired sales/Sales per storeDateEqual or less 2018?MonthYear
2BT1113113Store Belfast02019-05N7125505/1/19 52019
3BT10113125Store Southampton32019-05SE121TBC05/1/19 
4BT11113140Store Warrington1692019-05BR61TBC05/1/19ok
5BT12113141Store London - Wembley62402019-05SW16114405/1/19ok
6BT13113142Store Birmingham - Wednesbury4642019-05BA1126405/1/19 
7BT14113143Store Newcastle - Gateshead02019-05SN1126405/1/19 
8BT15113144Store London - Croydon48772019-05M16118605/1/19ok
9BT16113150Store Coventry2702019-05E11TBC05/1/19 
10BT17113185Store Milton Keynes422019-05NW6114105/1/19ok
11BT18113186Store Manchester9292019-05W9114105/1/19ok
12BT19113255Store London - Tottenham35292019-05SW6114405/1/19ok
13BT2113261Store Leeds02019-05W12114105/1/19 
14BT20113262Store Lakeside14512019-05KT14214405/1/19ok
15BT21113263Store Nottingham42019-05KT12314405/1/19 
16BT22113264Store Bristol11742019-05N9125505/1/19ok
17BT23113265Store Edinburgh - Straiton1082019-05E142TBC05/1/19 
18BT24113266Store Glasgow - Braehead792019-05CR3114405/1/19 
19BT25113267Store Cardiff5302019-05SG12125505/1/19 
20BT26113461Store Reading10552019-05B36114205/1/19ok
21BT27113472Store eCommerce Great Britain02019-05N13125505/1/19 
22BT28113519Store Sheffield02019-05N19125505/1/19 
23BT29113548Store Exeter02019-05OX2146105/1/19 
24BT3113567Store Greenwich02019-05SE1114405/1/19 
25BT301132019-05W8214105/1/19 
26BT361132019-05RM4126205/1/19 
27BT371132019-05WD25114105/1/19 
28BT381132019-05SE31TBC05/1/19 
29BT391132019-05TN151TBC05/1/19 
Lookup
Cell Formulas
RangeFormula
Q2:Q29Q2=VLOOKUP(O2,A:B,2,FALSE)
R2R2=IFERROR((N2:N32>DATE(2019,8,31))*IF(MATCH(O2:O32,A2:A24,0),P2:P32),0)
S2:S29S2=DATE(LEFT(N2,4),RIGHT(N2,2),1)
T2:T29T2=IF(COUNTIFS($Q$2:$Q$22500,D2,$S$2:$S$22500,"<=01/09/2018"),"ok","")
U2U2=MONTH(S2)
V2V2=YEAR(S2)
R3:R29R3=IFERROR((N3:N33>DATE(2019,8,31))*IF(MATCH(O3:O33,A3:A25,0),P3:P33),0)
F2:F24F2=SUMIF($Q$2:$Q$22588,D2,$P$2:$P$22588)
Press CTRL+SHIFT+ENTER to enter array formulas.


Data set

problem_forum in progress.xlsx
ABCD
1Data Month SalePost code PrefixConfirmed Sales
22019-05N71
32019-05SE121
42019-05BR61
52019-05SW161
62019-05BA11
72019-05SN11
82019-05M161
92019-05E11
102019-05NW61
112019-05W91
122019-05SW61
132019-05W121
142019-05KT142
152019-05KT123
162019-05N91
172019-05E142
182019-05CR31
192019-05SG121
202019-05B361
212019-05N131
222019-05N191
232019-05OX21
242019-05SE11
252019-05W82
262019-05RM41
272019-05WD251
282019-05SE31
292019-05TN151
Data set
 
Upvote 0
You first Link the Store Id with the help of Post card prefix

Now your Data Set will look like this


Book1
ABCDE
1Data Month SalePost code PrefixConfirmed SalesStore Id-------> this is just an example. Store id may be different
22019-05N71112
32019-05SE121113
42019-05BR61114
52019-05SW161115
62019-05BA11116
72019-05SN11117
82019-05M161118
92019-05E11119
102019-05NW61120
112019-05W91121
122019-05SW61122
132019-05W121123
142019-05KT142124
152019-05KT123125
162019-05N91126
172019-05E142127
182019-05CR31128
192019-05SG121129
202019-05B361130
212019-05N131131
222019-05N191132
232019-05OX21133
242019-05SE11134
252019-05W82135
262019-05RM41136
272019-05WD251137
282019-05SE31138
292019-05TN151139
Sheet2
Cell Formulas
RangeFormula
D4:D29D4=D3+1



Now Insert a Pivot Table like This
1597076334109.png
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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