Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Replace empty or " with content of cell above, using R1C1

Good afterning,
I have:
A B ............
1 Me You
2 " You
3 " "
4 Her "
.. " "
..
..
..
Like to get
A B ............
1 Me You
2 Me You
3 Me You
4 Her You
.. Her You
..
..
..

I have seen it done by changing to R1C1 and =R[-1]C but it does not work on
mine desktop? Thx.
cg
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Replace empty or " with content of cell above, using R1C1

What part of the answers given in the Worksheet Functions forum where you
also posted this is not working. Are you looking for a VBA solution??? Why
the new thread in this forum...
--
HTH...

Jim Thomlinson


"hccatmo" wrote:

Good afterning,
I have:
A B ............
1 Me You
2 " You
3 " "
4 Her "
. " "
.
.
.
Like to get
A B ............
1 Me You
2 Me You
3 Me You
4 Her You
. Her You
.
.
.

I have seen it done by changing to R1C1 and =R[-1]C but it does not work on
mine desktop? Thx.
cg

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Replace empty or " with content of cell above, using R1C1

One way:

Sub BlankRepeats()
For Each cell In Range("A1:B7")
If cell.Value = "" Then cell.Value = cell.Offset(-1, 0).Value
Next cell
End Sub

Regards,
Paul

"hccatmo" wrote in message
...
Good afterning,
I have:
A B ............
1 Me You
2 " You
3 " "
4 Her "
. " "
.
.
.
Like to get
A B ............
1 Me You
2 Me You
3 Me You
4 Her You
. Her You
.
.
.

I have seen it done by changing to R1C1 and =R[-1]C but it does not work
on
mine desktop? Thx.
cg



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Replace empty or " with content of cell above, using R1C1

If you change your desktop cell reference style to R1C1 then =R[-1]C will
work when placed in the empty cells. The Excel defaut cell referemce style
is A1.

"hccatmo" wrote:

Good afterning,
I have:
A B ............
1 Me You
2 " You
3 " "
4 Her "
. " "
.
.
.
Like to get
A B ............
1 Me You
2 Me You
3 Me You
4 Her You
. Her You
.
.
.

I have seen it done by changing to R1C1 and =R[-1]C but it does not work on
mine desktop? Thx.
cg

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Replace empty or " with content of cell above, using R1C1

Hi,
If the cells are empty you can use the following method also in Excel.

Select the range.
Select Edit/GoTo/Special...
Select Blanks.
Click Ok
Type = and press UpArrow key
Press Ctrl+Enter

You can then value paste the cells.
--
Anant


"hccatmo" wrote:

Good afterning,
I have:
A B ............
1 Me You
2 " You
3 " "
4 Her "
. " "
.
.
.
Like to get
A B ............
1 Me You
2 Me You
3 Me You
4 Her You
. Her You
.
.
.

I have seen it done by changing to R1C1 and =R[-1]C but it does not work on
mine desktop? Thx.
cg

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
Replace entire cell content Steve C Excel Discussion (Misc queries) 1 November 22nd 09 11:26 PM
replace the content of cell Wu Excel Discussion (Misc queries) 3 December 11th 07 12:13 PM
Copying formulas using "+" cell reference causes r1c1 in linked sh Andy D Excel Discussion (Misc queries) 4 October 25th 07 05:11 PM
Replace all empty or " by the content of the cell above it hccatmo Excel Worksheet Functions 3 November 9th 06 08:52 PM
copy content to first empty cell in column elrussell[_2_] Excel Programming 4 March 12th 06 04:16 PM


All times are GMT +1. The time now is 06:50 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"