Macro to align names in columns

ndendrinos

Well-known Member
Joined
Jan 17, 2003
Messages
1,694
Hello to all,

Here is what I've inherited (example):
.........A...............B....................C...........D..............
....Co.2003....Total.2003.......Co.2004....Total.2004...
.....Dodge...........10.00...........Audi...............5.00...
.....Ford...............20.00..........Dodge............10.00...

I need a macro to align Dodge 2003 and total for that year with Dodge 2004 and the total for that year.

The position of the Co names and their totals could be anywhere in their respective columns (always two columns)
Thank you
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Thank you Steve but this will not work
in A there might be dozens on company names preceding Dodge while
in column C their might be few.
 
Upvote 0

Forum statistics

Threads
1,196,327
Messages
6,014,665
Members
441,834
Latest member
GHOSTOF309

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