+ Reply to Thread
Results 1 to 3 of 3

Labels for items in drop down list

  1. #1
    Registered User
    Join Date
    10-10-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    21

    Labels for items in drop down list

    Hi there,

    I want a drop down list using the data validation tool tied to a name range in another sheet.

    I can do this simple task with no problems.

    However i want the user to click the list and see the value (which is an three letter abbreviation), plus the full title. However, on selecting the appropriate value from the list, i want only the abbreviated value to appear in the cell.

    eg.
    1. user clicks arrow for list;
    2. options displayed are: "PRO - Project", "SOR - Schedule of rates", "VAL - Validation"....etc.;
    3. user selects PRO - Project (for example)
    4. cell displays "PRO"

    I understand that this may not be possible using the data validation method, since the list only displays the data defined in the name range, but if there is an alternate method which can be used to achieve the above, I would love to know what it is.

    I'm using Excel 2007, by the way

    Any help gratefully accepted
    Last edited by Sph01; 07-09-2012 at 11:20 AM. Reason: solved

  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: Labels for items in drop down list

    This does require VBA to accomplish, and it's not an uncommon request.

    Data Validation - Make Selection From Detailed Items but see Abbreviated Entry Afterwards
    This is a VBA solution that watches for you to make a selection from a drop down data validation list, then replaces that choice with an abbreviated text string found adjacent to your original DV selection's source list. You would set up a table with your source list in the first column and your replacement strings in the second column, then a Worksheet_Change event macro is installed into the sheet where you are using the DV list. It makes the replacements for you in realtime.

    Replace Current DV Choice


    There is a sample sheet where you can test this technique out and see it in action.
    _________________
    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
    10-10-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Labels for items in drop down list

    Excellent! thanks for the speedy reply.

    Also very useful was the bit about self-expanding dynamic ranges which I wasn't aware of either

    Thanks very much

+ 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