+ Reply to Thread
Results 1 to 2 of 2

Need a formula to return the value of the next occupied cell in a row.

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2013
    Posts
    1

    Need a formula to return the value of the next occupied cell in a row.

    Hi guys.

    New to this forum so I'm hoping I'm following the rules.

    Anyway, the excel issue I'm trying to solve.

    Column B contains data in some cells but not all. Cells are either blank or occupied with account numbers.

    So:

    B1 is blank. The next occupied row in B is B3 for example.

    I need excel to basically occupy B1 and B2 with B3.

    The problem is that the distance between the occupied is not set.

    For example, I may need B4,B5,B6,B7,B8 and B9 to all be occupied with the next occupied cell in B (for example, B10) and return that value.

    In summary, I need all blank cells in B to find the next occupied cell below itself and return that value. (To a neighboring cell if this will make in any easier) so if B1 is blank, find the below occupied and return it to C1 for example.

    Any ideas?

    Thanks in advance!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Need a formula to return the value of the next occupied cell in a row.

    hi XL_apprentice, welcome to the forum. highlight the range you need (eg B1:B10). press CTRL + G -> Special -> Blanks -> OK. press:
    =
    press the DOWN arrow key & then, CTRL + ENTER

    is that what you need?

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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