copy last column for each sheet and the ID for each adjacent cells

tubrak

Board Regular
Joined
May 30, 2021
Messages
218
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I want to populate report in OUT sheet by copy all of ID across sheets and copy the last column for each sheet , but don't repeat copying the last column has already copied .

every time I add new sheet before OUT sheet and should put the value into adjacent cell based on matching ID when copy the last column for each sheet .
.
TB.xlsm
ABCDEFG
1S.NITEMQTY01/12/202302/12/202303/12/202304/12/2023
21TR 200M45MM LK H K/L22.0011.0011.002,555.0030.00
32TR 200M451 NMM LK H K/L23.0012.0010.0022.0040.00
43TTR 12200S45 MN 123120.002.0033.0050.00
54CTR 12-200M45 MM 123H K/L100.003.0045.0010.00
65CCTR 12-200M45 MM 123H K/L120.0011.0033.0088.0020.00
76TR 1425/148V MN 123H K/L220.0015.0022.0060.00
87TR 200M45 MM 123H K/L SS230.0016.0044.0070.00
98VSRT 258000 MJ L/6620.00220.00120.0080.00
109TR 2.5M100**123H K/L20.0018.0020.0011.0090.00
1110TRMN 22.5M100* 123H K/L21.0019.0021.0022.00100.00
1211TTRM 12200S45 MN 123422.0020.0022.0011.00110.00
1312TTRR 1200S45 MN 12323.0021.0023.0055.00120.00
1413TR 1200M45MM LK H K/L24.0022.0024.0088.00130.00
1514BTR-100***8 RRT-DE3423025.0023.0025.00140.00
1615BTR-100***8 RRT-DE3423126.0024.0026.00150.00
1716BTR-100***8 RRT-DE3423227.0025.0027.00160.00
1817TR 2.5M100**123H K/LM30.0028.0030.00190.00
1918VMTR 1200S45 MN 12331.0029.0031.00200.00
2019JKLLL2333 JK/80032.0030.0032.00210.00
2120RTTTM899 HJ80 12/3033.0031.0033.00220.00
sheet1


TB.xlsm
ABCDEFGH
1S.NITEMQTY01/01/202402/01/202403/01/202404/01/202405/01/2024
21CTR 12-200M45 MM 123H K/L12.0010.0012.0010.0022.00
32TR 200M45 MM 123H K/L SS18.0016.0018.0070.0028.00
43TR 200M45MM LK H K/L14.0012.0014.0030.0024.00
54TR 200M451 NMM LK H K/L15.0013.0015.0040.0025.00
65TTR 12200S45 MN 12316.0014.0016.0050.0026.00
76TR 1425/148V MN 123H K/L17.0015.0017.0060.0027.00
87TR 2.5M100* 123H K/L19.0017.0019.0080.0029.00
98TR 2.5M100**123H K/L20.0018.0020.0090.0030.00
109TRMN 22.5M100* 123H K/L21.0019.0021.00100.0031.00
1110TTRM 12200S45 MN 123422.0020.0022.00110.0032.00
1211TTRR 1200S45 MN 12323.0021.0023.00120.0033.00
1312TR 1200M45MM LK H K/L24.0022.0024.00130.0034.00
1413BTR-100***8 RRT-DE3423328.0026.0028.00170.0038.00
1514BTR-100***8 RRT-DE3423126.0024.0026.00150.0036.00
1615BTR-100***8 RRT-DE3423025.0023.0025.00140.0035.00
1716BTR-100***8 RRT-DE3423227.0025.0027.00160.0037.00
1817TR 2.5M100**123H K/LM30.0028.0030.00190.0040.00
1918BTR-100***8 RRT-DE3423429.0027.0029.00180.0039.00
2019CCTR 12-200M45 MM 123H K/L13.0011.0013.0020.0023.00
2120VMTR 1200S45 MN 12331.0029.0031.00200.0041.00
2221CCMTR 12-200M45 MM 123H K/L32.0030.0032.00210.0042.00
2322CCMTR 12-200M45 MM-20033.0031.0033.00220.0043.00
sheet2



result in OUT sheet
TB.xlsm
ABCD
1S.NITEM04/12/202305/01/2024
21BTR-100***8 RRT-DE34230140.0035.00
32BTR-100***8 RRT-DE34231150.0036.00
43BTR-100***8 RRT-DE34232160.0037.00
54BTR-100***8 RRT-DE3423338.00
65BTR-100***8 RRT-DE3423439.00
76CCMTR 12-200M45 MM 123H K/L42.00
87CCMTR 12-200M45 MM-20043.00
98CCTR 12-200M45 MM 123H K/L20.0023.00
109CTR 12-200M45 MM 123H K/L10.0022.00
1110JKLLL2333 JK/800210.00
1211RTTTM899 HJ80 12/30220.00
1312VMTR 1200S45 MN 123200.0041.00
1413VSRT 258000 MJ L/6680.00
1514TR 200M45MM LK H K/L30.0024.00
1615TR 1425/148V MN 123H K/L60.0027.00
1716TR 200M45 MM 123H K/L SS40.0028.00
1817TR 2.5M100**123H K/L90.0030.00
1918TR 2.5M100**123H K/LM190.0040.00
2019TR 1200M45MM LK H K/L130.0034.00
2120TTRR 1200S45 MN 123120.0033.00
2221TTRR 1200S45 MN 123120.0033.00
2322TRMN 22.5M100* 123H K/L100.0031.00
2423TTRM 12200S45 MN 1234110.0032.00
OUT

thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,224,818
Messages
6,181,152
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