move the first part to last part for the same cell into column across sheets

KalilMe

Active Member
Joined
Mar 5, 2021
Messages
343
Office Version
  1. 2016
Platform
  1. Windows
hello
I need macro to move the first part to last part for each cell into column B across sheets
Microsoft Excel (1).xlsx
ABCD
1ITEMBRSALERET
21VEG TOMATO SS12-
32VEG TOMATO AA1212
43FR BANANA TT20010
54FR APPLE LL10020
65FR PEAR NN10-
76FR BANANA QQ20-
FRUI


Microsoft Excel (1).xlsx
ABCD
1ITEMBRSALERET
21VEG TOMATO SS20-
32VEG TOMATO AA2212
43FR BANANA TT1210
54FR APPLE LL122
65FR BANANA QQ12-
VEGI


Microsoft Excel (1).xlsx
ABCDEFG
1ITEMBRTYORSALERETBALANCE
21FR BANANAT001TT25225227
32FR APPLET002LL16242120
43FR PEART003NN15312
54FR BANANAT004QQ4242
65FR TOMATOT005SS2020
76FR TOMATOT006AA421230
87FR ONIONT007AA10
98FR ONIONT008AA20
109FR ONIONT009AA30
SFD
Cell Formulas
RangeFormula
G2:G10G2=E2-F2

the result should be

Microsoft Excel (1).xlsx
ABCD
1ITEMBRSALERET
21 TOMATO SS VEG12-
32 TOMATO AA VEG1212
43 BANANA TT FR20010
54 APPLE LL FR10020
65 PEAR NN FR10-
76 BANANA QQ FR20-
FRUI


Microsoft Excel (1).xlsx
ABCD
1ITEMBRSALERET
21 TOMATO SS VEG20-
32 TOMATO AA VEG2212
43 BANANA TT FR1210
54 APPLE LL FR122
65 BANANA QQ FR12-
VEGI



Microsoft Excel (1).xlsx
ABCDEFG
1ITEMBRTYORSALERETBALANCE
21 BANANA FRT001TT25225227
32 APPLE FRT002LL16242120
43 PEAR FRT003NN15312
54 BANANA FRT004QQ4242
65 TOMATO FRT005SS2020
76 TOMATO FRT006AA421230
87 ONION FRT007AA10
98 ONION FRT008AA20
109 ONION FRT009AA30
SFD
Cell Formulas
RangeFormula
G2:G10G2=E2-F2

when move to last part should create one space before it and every time i will create more sheets with the same structure and even change or add new data .
 
you must correct them yourself
forgive me ! I do my best . I don't want to disturb you .?
it takes from much time to test it despite of the macro is short , also I use another macro to remove the spaces instead of using manually
now your code works perfectly .(y)
much appreciated for your help :)
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,575
Messages
6,125,628
Members
449,240
Latest member
lynnfromHGT

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