montypython1
Technical User
Greetings,
Using Excel, what is the best way to pull the last record in a series from one row into another row?
We recently went through a big account number conversion and our CPAs have asked for a cross-reference of old account numbers with new account numbers. When I run the Chart of Accounts, I receive a history of every old account number, but I only want to see the oldest account number.
In the example below, the new account "D2210" was most recently changed to "D2211". Before that it was "D2212". And before that it was "116N". I only want to display "116N" next to the new account (see the column below titled "Desired Result"). How can I get only the value in the "Desired Result" column?
[tt]------------------------------
New~~~~~Old~~~~~Desired Result
-------.-------.--------------
D2210~~~D2211~~~116N
~~~~~~~~D2212
~~~~~~~~116N
D2211~~~D2210~~~116C
~~~~~~~~D2209
~~~~~~~~116C
D2212~~~116D~~~~116D
D2213~~~116P~~~~116P
D2214~~~116G~~~~116G
D2216~~~116B~~~~116B
D2217~~~D2221~~~116T
~~~~~~~~116T
D2220~~~D2215~~~116R
~~~~~~~~116R
D2225~~~113~~~~~113
------------------------------
[/tt]
Note: I have manually inserted the tilde ~ character in the above example in order to space the columns correctly so they line up and appear like the actual Excel file. If I simply copy and paste from Excel into the Tek-Tips text editor, then the columns don't line up.
Thanks,
Dave
Using Excel, what is the best way to pull the last record in a series from one row into another row?
We recently went through a big account number conversion and our CPAs have asked for a cross-reference of old account numbers with new account numbers. When I run the Chart of Accounts, I receive a history of every old account number, but I only want to see the oldest account number.
In the example below, the new account "D2210" was most recently changed to "D2211". Before that it was "D2212". And before that it was "116N". I only want to display "116N" next to the new account (see the column below titled "Desired Result"). How can I get only the value in the "Desired Result" column?
[tt]------------------------------
New~~~~~Old~~~~~Desired Result
-------.-------.--------------
D2210~~~D2211~~~116N
~~~~~~~~D2212
~~~~~~~~116N
D2211~~~D2210~~~116C
~~~~~~~~D2209
~~~~~~~~116C
D2212~~~116D~~~~116D
D2213~~~116P~~~~116P
D2214~~~116G~~~~116G
D2216~~~116B~~~~116B
D2217~~~D2221~~~116T
~~~~~~~~116T
D2220~~~D2215~~~116R
~~~~~~~~116R
D2225~~~113~~~~~113
------------------------------
[/tt]
Note: I have manually inserted the tilde ~ character in the above example in order to space the columns correctly so they line up and appear like the actual Excel file. If I simply copy and paste from Excel into the Tek-Tips text editor, then the columns don't line up.
Thanks,
Dave