ndendrinos
Well-known Member
- Joined
- Jan 17, 2003
- Messages
- 1,694
Hello,
I've posted earlier re:aligning rows by name and got a solution based on VLOOKUP that works but I think a macro is a better answer for me.
e.g.
........A...............B................C.................D................
....Honda........10.00..................................................
....Buick..........50.00..................................................
....Audi.............3.00
...............................................................................
.......................................Chrysler............11.00.........
.......................................Buick................50.00.........
Data in C:D will always be lower than the ending row in A:B
In theory at least in my mind what the code needs to do is:
Match names in C to A and if match found CUT the matched range C:D and paste moving up to the same row with the matched name in A
At the end in C and D I will have left only the companies that do not exist in A
Hope I explained it well and thank you.
I've posted earlier re:aligning rows by name and got a solution based on VLOOKUP that works but I think a macro is a better answer for me.
e.g.
........A...............B................C.................D................
....Honda........10.00..................................................
....Buick..........50.00..................................................
....Audi.............3.00
...............................................................................
.......................................Chrysler............11.00.........
.......................................Buick................50.00.........
Data in C:D will always be lower than the ending row in A:B
In theory at least in my mind what the code needs to do is:
Match names in C to A and if match found CUT the matched range C:D and paste moving up to the same row with the matched name in A
At the end in C and D I will have left only the companies that do not exist in A
Hope I explained it well and thank you.