Compacting rows
Posted by Cliff on September 13, 2001 8:29 AM
I have a lot of data like this, where "" means the cell is blank. I want to eliminate all the blank cells in each row from ColD to the first cell that contains data. The data are always in contiguous blocks.
ColA ColB ColC ColD ColE ColF ColG ColH ColI
----------------------------------------------------------------------------
Charles H NL "" "" 1997 1998 1999 2000
James N AL "" 1999 MLB 2000 "" ""
Richard G NL "" "" "" 1997 1998 ""
In other words, the data should be in this form:
ColA ColB ColC ColD ColE ColF ColG
----------------------------------------------------
Charles H NL 1997 1998 1999 2000
James N AL 1999 MLB 2000 ""
Richard G NL 1997 1998 "" ""
I tried a macro by recording key strokes, but it wouldn't work properly.
Thanks,
Cliff