+ Reply to Thread
Results 1 to 4 of 4

Automatically Show a default value in a drop down list

  1. #1
    Registered User
    Join Date
    09-19-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    48

    Thumbs up Automatically Show a default value in a drop down list

    Hi

    I have few columns of dependent lists and I want to show a value in the corresponding columns automatically by selecting a value from a drop down list in the first column.

    for Example - in the attached Sheet 4, Cell F2, I have a list of places and from Column G to J are all dependent to the previous column. Now If I select a Place in the cell F2 the corresponding cells should automatically return the first data from the respective drop down list. However, I should also be able to change them if required. Is this possible?

    Thanks for helping

    Pal
    Attached Files Attached Files
    Last edited by pal_slg; 10-09-2011 at 12:08 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automatically Show a default value in a drop down list

    You can add a formula to G2 that will give a specific instance of the INDIRECT() function. Put this in G2 and copy down/Across.

    =IF(F2="", "", INDEX(INDIRECT(F2), 1))

    Now, in the second section off in P2 I think you need to change the 1 to 2, but you can play with it from here. Get your defaults in each section setup to your liking.

    Once you enter a value in F2, the G2:J2 defaults will appear. However, if you make a manual select in any of the drop downs after that, the formula will be gone forever. Remember that. These defaults are only active until you use the drop down once.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-19-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Automatically Show a default value in a drop down list

    Dear Jbeaucaire,

    Thank you so much!!

    This is a big help indeed. It is working fine. Thanks a lot!!
    Pal

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Automatically Show a default value in a drop down list

    Fadzi welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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