+ Reply to Thread
Results 1 to 7 of 7

return value in adjacent cell or one above if that is blank.

  1. #1
    Registered User
    Join Date
    08-24-2012
    Location
    South Africa
    MS-Off Ver
    Mac Excel 2011
    Posts
    11

    return value in adjacent cell or one above if that is blank.

    Hi,

    I am looking for a formula to look in a cell say A1 and return that value to B1, moving down to say A2 if the that cell is blank then look in cell above A1) and return that value to B2. and so on. (See the sample attachment for the type of result I am looking for).

    Any help appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: return value in adjacent cell or one above if that is blank.

    B1: = a
    b2: =if(a2="",b1,a2)

  3. #3
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: return value in adjacent cell or one above if that is blank.

    Something like this in cell B1, copied down, perhaps:

    =INDEX(A:A,MAX(INDEX(ROW($A$1:$A$100)*($A$1:$A$100<>"")*(ROW($A$1:$A$100)<=ROW()),0)))

  4. #4
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: return value in adjacent cell or one above if that is blank.

    In cell B1 type =A1
    In cell B2 type =IF(A2="",B1,A2)
    Drag to end of data

  5. #5
    Registered User
    Join Date
    08-24-2012
    Location
    South Africa
    MS-Off Ver
    Mac Excel 2011
    Posts
    11

    Re: return value in adjacent cell or one above if that is blank.

    Thanks So Much! Works Great!

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: return value in adjacent cell or one above if that is blank.

    @ Mikeytres

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Registered User
    Join Date
    08-24-2012
    Location
    South Africa
    MS-Off Ver
    Mac Excel 2011
    Posts
    11

    Re: return value in adjacent cell or one above if that is blank.

    Thanks for the info Cutter, I will keep this all in mind for my next post


    Edit by Cutter: You're welcome.
    Last edited by Cutter; 08-29-2012 at 10:10 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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