M
Marty L
Is there an excel feature that would let you combine rows based on the
unique value of a column? The DATA, SUBTOTAL almost does what I want,
except it doesn't work with text. For example:
A X
B Y
C Z
A X
C Z
C J
B M
Combine to:
A X X
B M Y
C Z J Z
I can write a routine that will do this - but it is a little tedious: sort,
then row by row & column by column moving the last non-empty value down to
the next row until col 1 changes, then deleting all rows prior to my 'total'
row with the same value in col 1.
On a related topic - it would be nice to have an easy way to take a list
such as col 1 above and convert it to a unique list, as in col 1 in the
'combine to' example above.
unique value of a column? The DATA, SUBTOTAL almost does what I want,
except it doesn't work with text. For example:
A X
B Y
C Z
A X
C Z
C J
B M
Combine to:
A X X
B M Y
C Z J Z
I can write a routine that will do this - but it is a little tedious: sort,
then row by row & column by column moving the last non-empty value down to
the next row until col 1 changes, then deleting all rows prior to my 'total'
row with the same value in col 1.
On a related topic - it would be nice to have an easy way to take a list
such as col 1 above and convert it to a unique list, as in col 1 in the
'combine to' example above.