How to copy the data from multiple excel worksheets to a master sheet on same workbook

cooldude

New Member
Joined
Oct 27, 2017
Messages
1
Hello all,

I am struggling to find a solution to my problem which is as below:

I have a excel workbook with name - sales.xlsx which has 3 worksheets - online, shop and master.

Currently we enter the data manually to worksheets online and shop. We want a macro which can automatically copy over the data to the master sheet from both - shop and sales sheet whenever any data is entered to either of the two sheets.

It will a really great help if someone can let us know the solution for this please.

Thanks a lot.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
below is my understanding
1. entering Shop details in sheet Shop
2. entering Online details in sheet Online
3. u want to add sheet Shop and Online data one below another
4. refresh automatically whenever new data added


if above understanding is right then follow below steps
1. add one more column at last as Shopping Method and below that update sheet name either Online or Shop
2. convert your data to Table of both sheet (Online and Shop) and give proper table name
3. select sheet Shop
4. click on menu Power Query > From Table/Range > select column Date > click menu Transform > click on Data Type > select Date
5. click on menu Home > click on Close & Load drop down arrow > select Click & Load To > select Only Create Connection and click on button OK
6. select sheet Online
7. repeat the steps 4 & 5
8. click on menu Power Query > click on Append > select option Two Tables > select Shop table name & then Online table name
9. click OK
10. give meaningful name for this table below the Name box of Query Settings on right side of Query Editor window
11. click on menu Home > click on Close & Load drop down arrow > select Click & Load. this will create new sheet with appended data
12. select any cell in append table > click menu Design > click Properties in External Table Data tab > click on properties icon in popup window which is next to Name box (below the connection label)
13. in tab Usage > enable the check box Refresh every xx > click OK > click OK


NOTE if you dont know how to install Power Query add-ins, search for in youtube and install it. its free and good package ;)
Power Query is available for Excel 2010 or above
 
Upvote 0
If it were me I would only have one single worksheet

col A would be shop or online

I will make an example sheet and post in a couple of minutes
 
Upvote 0
wheredateamount
shop01/10/201725col G
online01/10/201733
online01/10/201739
shop01/10/201755shoponlinetotalrow 5
online01/10/20176601/10/201792238330
online01/10/20177702/10/20173826571039
shop01/10/20171203/10/2017105420525
online01/10/20172304/10/2017000
online02/10/20173405/10/2017000
shop02/10/20174506/10/2017000
online02/10/20175607/10/2017000
online02/10/20176708/10/2017000
shop02/10/20177809/10/2017000
online02/10/20178910/10/2017000
online02/10/201798
shop02/10/201787
online02/10/201776
online02/10/201765
shop02/10/201764formula giving 92
online02/10/201763
online02/10/2017109=SUMPRODUCT(($A$2:$A$28=G$5)*($B$2:$B$28=$F6)*($C$2:$C$28))
shop02/10/2017108
online03/10/2017107
online03/10/2017106
shop03/10/2017105
online03/10/2017104
online03/10/2017103

<colgroup><col><col><col span="3"><col><col span="9"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,140
Messages
6,123,269
Members
449,093
Latest member
Vincent Khandagale

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