+ Reply to Thread
Results 1 to 3 of 3

Fill blank cell with established values

  1. #1
    Registered User
    Join Date
    08-29-2011
    Location
    Austin
    MS-Off Ver
    Excel 2003
    Posts
    2

    Fill blank cell with established values

    I'm sure the answer is somewhere on here, but I can't figure out what to call it :/

    I've attached a spreadsheet with my example. I'd like for Excel to supply the missing values in column B, having already established what the value should be in the previous rows.

    Thanks so much!
    Maggie
    Attached Files Attached Files
    Last edited by emmysou; 08-29-2011 at 12:00 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Easy one: Filling in blank cell with established values

    emmysou,

    Welcome to the forum!

    If you only have three values, as in your sample workbook, then you can do nested IF statements. In the sample workbook, Cell B2 would be:
    =IF(A2="","",IF(A2="Apple","Red",IF(A2="Banana","Yellow",IF(A2="Mango","Orange","Unknown Fruit"))))

    And then copy down.

    However, if you have a lot of items to match, then you can make a table and perform a vlookup. Using your sample workbook, you could make a table in columns D:E (fruits in column D, their color in column E). Then in cell B2, the formula would be:
    =IF(A2="","",IF(ISNUMBER(MATCH(A2,D:D,0)),VLOOKUP(A2,D:E,2,FALSE),"Unknown Fruit"))

    And then copy down.

    Attached is a modified version of your sample workbook. Sheet1 shows the first method and Sheet2 shows the second method.

    Hope that helps,
    ~tigeravatar
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-29-2011
    Location
    Austin
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Easy one: Filling in blank cell with established values

    Awesome. That totally works! Thanks for including both options

+ 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