PC Review


Reply
Thread Tools Rate Thread

Auto-fill empty cells with specific text

 
 
Toby
Guest
Posts: n/a
 
      19th Dec 2011
Using Excel 2010.

I have text "A" in row 2, then blank spaces until row 13. Row 13 has text "B." Then I have 11 spaces until Row 24, which is text "C". I want the spaces to be filled by the preceding "label" (A, B, C).

I only wish to perform this operation on Column A while keeping all other columns locked. Thank you very much in advance!
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      19th Dec 2011

http://www.youtube.com/watch?v=ohKcBRF2YYM
or
Sub FillSelectionBlanksBelow()
Dim Cell As Range
For Each Cell In Selection
If Cell.Value = "" Then Cell.Value = Cell.Offset(-1, 0).Value
Next Cell
End Sub

On Dec 19, 2:14*pm, Toby <tobyta...@gmail.com> wrote:
> Using Excel 2010.
>
> I have text "A" in row 2, then blank spaces until row 13. Row 13 has text"B." Then I have 11 spaces until Row 24, which is text "C". I want the spaces to be filled by the preceding "label" (A, B, C).
>
> I only wish to perform this operation on Column A while keeping all othercolumns locked. Thank you very much in advance!


 
Reply With Quote
 
Toby
Guest
Posts: n/a
 
      19th Dec 2011
On Dec 19, 3:46*pm, Don Guillett <dguille...@gmail.com> wrote:
> http://www.youtube.com/watch?v=ohKcBRF2YYM
> or
> Sub FillSelectionBlanksBelow()
> * * Dim Cell As Range
> * * For Each Cell In Selection
> * * * * If Cell.Value = "" Then Cell.Value = Cell.Offset(-1, 0).Value
> * * Next Cell
> End Sub
>
> On Dec 19, 2:14*pm, Toby <tobyta...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Using Excel 2010.

>
> > I have text "A" in row 2, then blank spaces until row 13. Row 13 has text "B." Then I have 11 spaces until Row 24, which is text "C". I want the spaces to be filled by the preceding "label" (A, B, C).

>
> > I only wish to perform this operation on Column A while keeping all other columns locked. Thank you very much in advance!


Don - thanks so much for your help!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:02 PM.