Does anyone now of a macro for comparing rows.........if the first column from the first row matches the first column in the second row then return the entire first row and the value from the end of the second row (placing it on the end of the returned first row). If the first column in the first row does not match the first column from the second row just return the first row. I need this to go through about 2500 rows and move them to a new sheet.
Example:
Account # LName FName O/Amount
11111 Dylan Bob 100.00
11111 Dylan Bob 100.00
22222 Dean James 200.00
22222 Dean James 50.00
33333 Presley Elvis 300.00
44444 Tyler Steven 400.00
Return:
Account# LName FName O/Amount U/Amount
11111 Dylan Bob 100.00 100.00
22222 Dean James 200.00 50.00
33333 Presley Elvis 300.00
44444 Tyler Steven 400.00
Example:
Account # LName FName O/Amount
11111 Dylan Bob 100.00
11111 Dylan Bob 100.00
22222 Dean James 200.00
22222 Dean James 50.00
33333 Presley Elvis 300.00
44444 Tyler Steven 400.00
Return:
Account# LName FName O/Amount U/Amount
11111 Dylan Bob 100.00 100.00
22222 Dean James 200.00 50.00
33333 Presley Elvis 300.00
44444 Tyler Steven 400.00
Last edited: