Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default Replace Null Values in a Column

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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Replace Null Values in a Column

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

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Steve C" wrote in message
...
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


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Replace Null Values in a Column

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

"Steve C" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Replace Null Values in a Column

For A1, read B1?
--
David Biddulph

"FSt1" wrote in message
...
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

"Steve C" wrote:

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



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Replace Null Values in a Column

There are instructions here for filling the blank cells in a column:

http://www.contextures.com/xlDataEntry02.html

Or, if you need to do it in the adjacent column, you can use a formula.
For example, in cell B2: =IF(A2="",B1,A2)


Steve C wrote:
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



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace null values with zero? Eric Setting up and Configuration of Excel 2 April 28th 23 03:43 AM
replace null cells within a range to 0 Abbey Normal Excel Discussion (Misc queries) 5 August 29th 07 01:54 AM
How do I find and replace null values in Excel 2002 worksheets? Peter Excel Worksheet Functions 5 October 27th 06 04:53 AM
Replace Null value in Coloumn Plumdodge Excel Discussion (Misc queries) 2 November 8th 05 11:00 PM
Replace null string with blank cell gjcase Excel Discussion (Misc queries) 2 August 9th 05 02:13 PM


All times are GMT +1. The time now is 08:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"