copy data from multiple sheets based on headers into another sheet

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,429
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
hi all
I have many sheets contains data . what I would copy data based on headers in sheet result from specific sheets(SS,SSA,SSR) with considering there items are repeated in some sheets . it supposses merge and summing the values based on COL B
NOTE: I have about 5000 rows and increasable .
sheet SS
HEADERS.xlsx
ABCDE
1DATEBATCH NOBRANDTYPEPURCHASE
201/01/2021BT-OL1-100CL-MENSHIRT100
302/01/2021BT-OL1-100CL-MENSHIRT120
403/01/2021BT-OL1-100CL-MENSHIRT20
504/01/2021BT-OL1-101CL-MENJEANS120
605/01/2021BT-OL1-101CL-MENJEANS10
706/01/2021BT-OL1-102CL-WOMENSKIRT15
807/01/2021BT-OL1-102CL-WOMENSKIRT20
908/01/2021BT-OL1-102CL-WOMENSKIRT25
1009/01/2021BT-OL1-102CL-WOMENSKIRT20
1110/01/2021BT-OL1-103CL-WOMENDRESS21
SS


sheet SSA
HEADERS.xlsx
ABCDE
1DATEBATCH NOBRANDTYPESALES
221/01/2021BT-OL1-100CL-MENSHIRT5
322/01/2021BT-OL1-100CL-MENSHIRT5
423/01/2021BT-OL1-102CL-WOMENSKIRT2
SSA


sheet SSR
HEADERS.xlsx
ABCDE
1DATEBATCH NOBRANDTYPERETURNS
225/01/2021BT-OL1-100CL-MENSHIRT3
326/01/2021BT-OL1-100CL-MENSHIRT1
SSR


before in sheet RESULT
HEADERS.xlsx
ABCDE
1ITEMBATCH NOPURCHASESALESRETURNS
2
3
4
5
RESULT


AFTER
HEADERS.xlsx
ABCDE
1ITEMBATCH NOPURCHASESALESRETURNS
21BT-OL1-100240104
32BT-OL1-101130--
43BT-OL1-102802-
54BT-OL1-10321--
RESULT
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
With Power Query, Load each sheet to the PQ editor. Group each sheet on the Batch Nr., Join the sheets on a Left inner join (merge) the files. If you wish to see the file, then click on this link.

 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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