Replace Null Values in a Column

S

Steve C

I need to replace null values in all the cells of a column with the value in
the cell directly above it. Can I run something in the next column to
accomplish this?

Example:
A B
1 $5
2
3 $3
4 $7
5

Desired Result:
Example:
A B
1 $5 $5
2 $5
3 $3 $3
4 $7 $7
5 $7
 
R

Ragdyer

You can do it right in the same column.

Select your range
Hit F5
Click "Special"
Click "Blanks"
Then <OK>
Type the Equal (=) sign
Hit the UpArrow
Hit <Ctrl> <Enter>
 
F

FSt1

hi
you could use a helper column next to the column with the null values.
assuming the values are in column A, in the helper column put this...
=if(A2="",A1,A2)

Regards
FSt1
 
D

David Biddulph

For A1, read B1?
--
David Biddulph

FSt1 said:
hi
you could use a helper column next to the column with the null values.
assuming the values are in column A, in the helper column put this...
=if(A2="",A1,A2)

Regards
FSt1
 

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