Sorting Indirect Cells?
Posted by Charles Davis on May 18, 2001 7:45 AM
I have several large lists of data that I need to extract some data from and then sort it.
Each record in these lists is similar to:
LastName FirstName Value
I need the name combined, so I have added...
=CONCATENATE(A1," ",B1)
to give...
LastName FirstName Value Name
I don't want to change the raw data (the sequence of records has meaning).
I just want to sort the "Value" and "Name" columns.
My approach has been to make copies to the right...
LastName FirstName Value Name [=D1] [=C1]
I'd like to sort columns E and F by the values in column F.
I can get it to work if I add 2 columns (G & H)...
=INDIRECT("E1") and =INDIRECT("F1")
My problem is that I can't figure out how to write a macro that creates these 2 new columns.
I'm stumped!