July 16, 2010
Hi Elinor,
Thanks for sharing your file. If you were to put your data into a single table and add a column for the Week number, you could then use PivotTables to extract both the current reports you have on the Nov 11-2018 sheet, and the new report you want that summarises the shop sales.
In the attached file I've used Power Query to consolidate the data in each table into a single table, which you'll see on the sheet 'Query'. This is the format you should be gathering your data in. I've then inserted a PivotTable to get your sales by shop. However, because the week number information is not part of the table, you don't have this breakdown. You didn't say you needed it, but I suspect you will at some stage.
I hope that points you in the right direction.
Mynda
March 16, 2015
Good day Mynda and to all,
thank you very much for immediate reply, but what i am trying get a solution is to find the weekly sales (from november 1 to 7, for week 1) of every shop from sheet2.
i try the following formula for shop #0009
=SUMIFS(sheet2!$F20:$Z20,sheet2!F$11:Z$11,">="&sheet1!$D$1-6,sheet2!$F$11:$Z$11,"<="&D1) which is ok,
but i don't know the proper formula for the sum range so that if i choose a certain shop for example shop #0026, the row of sum range will be row 29 of sheet2.
i hope you can help me for this one.
thank you and God bless to all.
VIP
Trusted Members
June 25, 2016
Hi Elinor
You already have a Grand Total in column V so why are you summing the row again?
If you need to find any shop total , you can use the INDEX and MATCH function.
MATCH will give you the row number and INDEX will get the value from the cell.
For example shop 0010: In cell C4 of Sheet 1 enter
=INDEX(sheet2!V:V,MATCH([@[shop no]],sheet2!C:C,0))
it will give you 2480 and so on.
Hope this helps.
Sunny
March 16, 2015
Hello Sunny,
thanks for your reply,
yes there is already the grand total, because in sheet2 that is the system generated daily sales from november 1 to november 30, i will extract the daily sales from the system, and copy to sheet2. Now, i want the sales from november 1 to november 7, that is sales for week 1, for every shop. for example shop #0009, sales from november 1 to 5 is 2331, but if there will be sales on november 6 to 7, it will come on sales on week 1, if there are sales on november 8 to 14, then it will come to sales on week 2, same on week 3 and week 4.
Hope you help me for this.
Thanks a lot for the help.
1 Guest(s)