Data arrangement macro

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
I want to re arrange my data as follows , if i do manually it will take long
, cell reference A meaning on sheet 2

D3TOA1
E3TOA2
J3TOA3
O3TOA4
N3TOA5
F3TOA6
G3TOA7
I3TOA8
H3TOA9
B3TOA10
K3TOA11
M3TOA12
C3TOA13
W3TOA14
U3TOA15
V3TOA16
S3TOA17
T3TOA18
X3TOA19
AA3TOA20
Y3TOA21

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
The macro will go into a blank file it will be called file3 ( macro file ) then it will go read the path of these files

c:\rickmagic\file1
c:\rickmagic\file2

File 2 will thus change , picking the data from the cells i have quoted to where
I want them
 
Last edited:
Upvote 0
The macro will go into a blank file , then it will go read the path of these files

c:\rickmagic\file1
c:\rickmagic\file2

File 2 will thus change , picking the data from the cells i have quoted to where
I want them
Are these Excel workbook files or text files?
 
Last edited:
Upvote 0
I have purposely named the folder rickmagic as i know rick you can make this magic happen

Thank you in advance
 
Upvote 0
I need this kind of urgent otherwise the data is huge ,
it is not worth doing this is manually for 100 trucks plus
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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