Fill in blank cells with line above

G

gleakos

I need to fill in the blank cells with the information from the cell above
until the next cell is not null. For example:
Column A
Bill
blank
blank
Bob
I need the blanks to read as Bill. Is there a function or something I can
use.
 
G

Gord Dibben

Select the column then F5>Special>Blanks>OK

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

Hit CTRL + ENTER

Copy>Paste Special>Values>OK>Esc


Gord Dibben MS Excel MVP
 
F

Fat Jack Utah

I did this, but must be missing something.. It kept blanks highlighted blue
but only copied to the cell below.. it did not fill all blanks with the data
above as shown in video.
 
F

Fat Jack Utah

Thanks.. the CNTRL ENTER is what was missing from the prior reply.. Thanks
again
 
D

Don Guillett

try this idea from a posting of mine today.

Sub copydn()
mc = 2 'column B
For i = 1 To cells(rows.count,mc).end(xlup).row
If Cells(i + 1, mc) = "" Then
Cells(i + 1, mc) = Cells(i, mc)
End If
Next i
End Sub
 

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