+ Reply to Thread
Results 1 to 12 of 12

Populate Adjacent Cells from Validation List Entry

Hybrid View

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    Santa Clara, CA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Populate Adjacent Cells from Validation List Entry

    I am using several validation list and would like to auto-populate adjacent cells with the validation list selection. I found that VLOOKUP is the best option for this but can't get the formula to work. I have a validation list with two values (YES, NO) and a list with ten values (A, B, C, D, E, etc.). Any suggestions?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,059

    Re: Populate Adjacent Cells from Validation List Entry

    Please post a sample workbook as, from your description, it is not immediately obvious what you are trying to do ... or what your VLOOKUP formula looks like.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-03-2010
    Location
    Santa Clara, CA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Populate Adjacent Cells from Validation List Entry

    Here's the attachment and here's the formula:

    =IF(C1="","",VLOOKUP(C1,{"YES";"NO"},2,0))

    I'm trying to fill in cells C2-C37 with the value entered in C1.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-03-2010
    Location
    Santa Clara, CA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Populate Adjacent Cells from Validation List Entry

    That did the trick but leaves a 0 if C1 is empty. Can the formula make the adjacent cells empty if C1 is empty as well?
    Thanks

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,059

    Re: Populate Adjacent Cells from Validation List Entry

    Maybe, in D1 and copy down:

    =IF(C1="",$C$1,C1)


    Regards

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Populate Adjacent Cells from Validation List Entry

    What are the 10 values you are refering to?

  7. #7
    Registered User
    Join Date
    11-03-2010
    Location
    Santa Clara, CA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Populate Adjacent Cells from Validation List Entry

    Quote Originally Posted by davesexcel View Post
    What are the 10 values you are refering to?
    Can't really say what they really are...sensitive work stuffs. They're basically short text strings 5-8 characters in length.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Populate Adjacent Cells from Validation List Entry

    It doesn't matter if they are a,b,c,d,....
    Doesn't this have to do with part of your question? If so, where are they in your example?

  9. #9
    Registered User
    Join Date
    11-03-2010
    Location
    Santa Clara, CA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Populate Adjacent Cells from Validation List Entry

    Oh, that...figured I'd just include the first example and mimic that in the second instead of uploading both. I'd have to do a bit of scrubbing to remove the sensitive stuff. Quicker just uploading the first.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,059

    Re: Populate Adjacent Cells from Validation List Entry

    Cell D1:    =IF(C1="",IF($C$1="","",$C$1),C1)


    Regards

  11. #11
    Registered User
    Join Date
    11-03-2010
    Location
    Santa Clara, CA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Populate Adjacent Cells from Validation List Entry

    Thanks so much.

  12. #12
    Registered User
    Join Date
    04-24-2012
    Location
    NIGERIA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Populate Adjacent Cells from Validation List Entry

    Hello everybody,
    can somebody help me out on this:
    I need to design an Excel Template such that when a selection is made from a list under a column "Account type" with values 1,2,3,4, this should automatically update the content of the list in the adjacent cell under column "Account No" with list values Orange, Mangoes,Guava for Value 1 under Accout Type; list values Tiger, Goat, Cat for Value 2 under Accout type. Please, Treat as Urgent. Thanks in advance

+ 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