+ Reply to Thread
Results 1 to 10 of 10

Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells belof

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2013
    Posts
    41

    Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells belof

    Hi All,

    I'm stuck. Read several posts on filling all blanks in between non-blanks, but I just want to fill the first blank cell below the non-blank before
    searching out the next nonblank. I can't do a simple Link formula because I sort and filter a lot, which mixes up the cell above reference.


    Please Login or Register  to view this content.



    Appreciate the help. Looking forward to see how simple it might actually be.

  2. #2
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells bel

    Try this code:

    Please Login or Register  to view this content.
    HTH,
    Maud

  3. #3
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells bel

    Hi safari,

    Try this.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-10-2013
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2013
    Posts
    41

    Re: Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells bel

    Thanks, Maud. I think I follow this. But instead of installing the blank with text "Filled", I wanted to have the blank cell populated with the contents of the cell above.

    Thanks also to quekbc, but that code fills in all blanks between - want just the one cell down filled with the contents of cell above.

  5. #5
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells bel

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells bel

    Okay, I get it. So... if you have 3 blank cells from say C1300:C1310, you only want C1300 to be filled and leave C1301:C1310 to be blank? Is that right?

    If that's the case then - small tweak here
    Please Login or Register  to view this content.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells bel

    @ quekbc

    After 1148 posts you should know to post your code with Code Tags around.
    Please amend your last post. TY
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  8. #8
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells bel

    Quote Originally Posted by bakerman2 View Post
    @ quekbc

    After 1148 posts you should know to surround code with Code Tags.
    Please amend your last post. TY
    Ouch... that hurts bakerman2. After 5 years in the forum I'm sure you have at least once posted a message without the code tags and rectify it immediately after. In any case, I'm done. Cheers.

  9. #9
    Registered User
    Join Date
    01-10-2013
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2013
    Posts
    41

    Re: Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells bel

    Now we're talking. Thanks, Maude.

    Okay, I get it. So... if you have 3 blank cells from say C1300:C1310, you only want C1300 to be filled and leave C1301:C1310 to be blank? Is that right?
    Not quite, but close. If there were 3 blank cells from C1300:C1310, they system would have copied C1299 and pasted to C1300, than advanced down skipping past C1301:C1310 because they're blank.

    Still appreciate both your help. Love it when I see a new and different way of writing. Thank you.

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells bel

    How about this ?

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How Do I Count Nonblank Cells if Blank Cells Have Formulas?
    By Ocean Zhang in forum Excel General
    Replies: 5
    Last Post: 03-28-2017, 10:09 PM
  2. [SOLVED] How to populate blank cells with sequence until nonblank cell is encountered?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-23-2014, 08:47 AM
  3. [SOLVED] vba to fill header value to apply to below cells of nonblank
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2013, 12:23 PM
  4. Replies: 2
    Last Post: 04-29-2013, 04:20 AM
  5. [SOLVED] Search and fill blank cells based on various conditions
    By johnny_tc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2012, 09:40 AM
  6. Replies: 2
    Last Post: 12-22-2011, 07:05 PM
  7. Replies: 0
    Last Post: 04-07-2009, 04:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1