split column into multiple files into multiple columns based on another file

Hasson

Active Member
Joined
Apr 8, 2021
Messages
406
Office Version
  1. 2016
Platform
  1. Windows
hi
I srearched too much in this forum and the others , but I don't find like my question . so I would split column B into files PUR1,PUR2 into multiple columns into column B,CD,E based on splited data file SEARCH into columns B,C,D . the rsult should be in first sheet into files PUR1,2 and should replace the data every time run the macro . I put the expected result in both the files in sheet result . I have about five files in the same folder whit the same structure as in PUR1,2
also I issued in this forum split column into multiple files into multiple columns based on another file

file 1(pur1)
PUR1.xlsx
ABCDE
1ITEMIDBARCODEWHARE HOUSE QTY
21QQW-1 MM CLA1 23M-1 IT200.000
32QQW-2 TH NM-1 CLA2 VBG L CHI300.000
43QQW-3 CV CLA3 TA400.000
54QQW-4 M*12.5 CLA4 TR500.000
65QQW-5 CLA5 EG600.000
76QQW-6 M230 TU700.000
87QQW-7 S** CLA7 US800.000
98QQW-8 CLA8 UK900.000
109QQW-9 CLA9 N BR1,000.000
1110QQW-10 BN CLA10 IT1,100.000
1211QQW-11 LVD CH1,200.000
1312QQW-12 CLA12 JA1,300.000
1413QQW-13 CLA13 TR1,400.000
1514QQW-14 L/R CLA14 SS230 EG1,500.000
1615QQW-15 CLA15 TU1,600.000
1716QQW-16 CLA16 US1,700.000
1817QQW-17 CLA17 UK1,800.000
1918QQW-18 RRSDF BR1,900.000
2019QQW-19 CLA19 IT2,000.000
2120QQW-20 KV/1**2 CLA20 CHI2,100.000
sheet1


file2 (pur2)
PUR2.xlsx
ABCDE
1ITEMIDBARCODEWHARE HOUSE QTY
21QQW-14 L/R CLA14 SS230 EG350.000
32QQW-15 CLA15 TU600.000
43QQW-16 CLA16 US150.000
54QQW-17 CLA17 UK200.000
65QQW-18 RRSDF BR300.000
76QQW-19 CLA19 IT400.000
87QQW-20 KV/1**2 CLA20 CHI500.000
REPORT


file3 search
SEARCH.xlsm
ABCD
1ITEMIDDESCIBEPRODUCTION BY
21QQW-1 MMCLA1 23M-1IT
32QQW-2 TH NM-1CLA2 VBG LCHI
43QQW-3 CVCLA3TAI
54QQW-4 M*12.5CLA4TR
65QQW-5CLA5EG
76QQW-6M230TU
87QQW-7 S**CLA7US
98QQW-8CLA8UK
109QQW-9CLA9 NBR
1110QQW-10 BNCLA10IT
1211QQW-11LVDCH
1312QQW-12CLA12JA
1413QQW-13CLA13TR
1514QQW-14 L/RCLA14 SS230EG
1615QQW-15CLA15TU
1716QQW-16CLA16US
1817QQW-17CLA17UK
1918QQW-18RRSDFBR
2019QQW-19CLA19IT
2120QQW-20 KV/1**2CLA20CHI
RP


expected result based on file search
PUR1
PUR1.xlsx
ABCDE
1ITEMIDDESCIBEPRODUCTION BYQTY
21QQW-1 MMCLA1 23M-1IT200.000
32QQW-2 TH NM-1CLA2 VBG LCHI300.000
43QQW-3 CVCLA3TAI400.000
54QQW-4 M*12.5CLA4TR500.000
65QQW-5CLA5EG600.000
76QQW-6M230TU700.000
87QQW-7 S**CLA7US800.000
98QQW-8CLA8UK900.000
109QQW-9CLA9 NBR1,000.000
1110QQW-10 BNCLA10IT1,100.000
1211QQW-11LVDCH1,200.000
1312QQW-12CLA12JA1,300.000
1413QQW-13CLA13TR1,400.000
1514QQW-14 L/RCLA14 SS230EG1,500.000
1615QQW-15CLA15TU1,600.000
1716QQW-16CLA16US1,700.000
1817QQW-17CLA17UK1,800.000
1918QQW-18RRSDFBR1,900.000
2019QQW-19CLA19IT2,000.000
2120QQW-20 KV/1**2CLA20CHI2,100.000
result


PUR2
PUR2.xlsx
ABCDE
1ITEMIDDESCIBEPRODUCTION BYQTY
21QQW-14 L/RCLA14 SS230EG350.000
32QQW-15CLA15TU600.000
43QQW-16CLA16US150.000
54QQW-17CLA17UK200.000
65QQW-18RRSDFBR300.000
76QQW-19CLA19IT400.000
87QQW-20 KV/1**2CLA20CHI500.000
result

thanks in advance
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
for more detailes when split column B into files PUR1,PUR2 into multiple columns into column B,C,D,E based on file search should match the whole item into column B in two files PUR1,2 with the whole splited item into column B,C,D into file search .
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,124
Members
453,021
Latest member
Justyna P

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