Copy info into empty cells below info, until finds cell with new d

F

Fat Jack Utah

In Excel 2000 - I need a formula that will start at the top of a colum. WHen
it finds data in that column - copy that data to the cells below it which are
Empty or null cells, until it finds a cell with new data.. then begin to copy
that data in the empty or null cells below it until it finds a cell with
different data and so on

Sample (I Have thousands of this spaces of activity , so just copy would
take days)

08-01-08 Fred Jones Station 1
Station 2
Stations 3
John Smith Station 1
08-02-08 Sally Smith Station 4
Station 216
Station 1

Thanks for any help.. AS I said SOme times there is 50-200 spaces before the
new data and sometimes 1-2
 
V

vezerid

Say dates start from A2 and names from B2. Use two new columns (say
F:F and G:G). In F2, G2:

=A2
=B2

In F3, G3:

=IF(A3="",F2,A3)
=IF(B3="",G2,B3)

Copy the formulas of row 3 down as far as necessary. You can then copy
these columns to the original with Edit>Paste Special... choose
Values.

HTH
Kostis Vezerides
 
D

Don Guillett

Sub copydn()
mc = 2 'column B
For i = 1 To 7
If Cells(i + 1, mc) = "" Then
Cells(i + 1, mc) = Cells(i, mc)
Cells(i + 1, mc - 1) = Cells(i, mc - 1)
End If
Next i
End Sub
 
G

Gord Dibben

Select A and B then F5>Special>Blanks>OK

Type an = sign in active blank cell then point or arrow up to cell above.

CTRL + ENTER to fill all blanks with the value from each cell above.

In place.............Copy>Paste Special>Values>OK>Esc.


Gord Dibben MS Excel MVP

On Sun, 16 Nov 2008 05:34:05 -0800, Fat Jack Utah <Fat Jack
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top