+ Reply to Thread
Results 1 to 4 of 4

drop list abbreviated from full description

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    ga
    MS-Off Ver
    excel 2010
    Posts
    2

    drop list abbreviated from full description

    I need to create a pick list in a very small cell that is large enough for 3 characters, which represent departments. but the list i need to show the full department name when they scroll to select.

    example.

    123 - shipping
    abc - sales


    when they click the cell the drop list would show shipping and sales. If they selected sales the cell would then populate with abc, if shipping it would show 123.

    total newb and sure i'll have more tonight :-)

  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: drop list abbreviated from full description

    This is a actually a bit of a hack... you can use Custom Number Formats to secretly display specific text in a cell regardless of that cell's true numeric value. This only works because your need is exactly right... to see text, but have a number be in the cell in reality.


    This trick is accomplished in the cells that make up the drop down list. Let's assume the two cells that make up your drop down are M1 and M2.

    1) In M1 enter the numeric value 123
    2) Now click on M1 and press CTRL-1 to open the cell format wizard
    3) Now apply a Custom Number Format of "123 Shipping"

    Notice the string is all in quotes? This means no matter what number you type into M1, it will then display the text 123 Shipping.

    4) In M2 put in a different number, then repeat steps 2) and 3) above to apply a number format of "abc sales"

    5) Now use M1 and M2 as the source of a Data Validation Drop Down list, it will show the TEXT to you, but when you make a selection it will actually show the numbers.

    NOTE: This will not work if you want to see one text string and have another text string appear, only if you want a numeric code to appear.
    _________________
    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
    07-26-2013
    Location
    ga
    MS-Off Ver
    excel 2010
    Posts
    2

    Re: drop list abbreviated from full description

    let me try another example. using the below list

    E - Enhancement
    D - Defect
    L - Legal / Compliance
    N - New


    I should see the selections above or even just the names, but when i select 'New' for example. The cell would populate with an 'N', likewise if i selected Legal/Compliance it would populate with an "L".

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

    Re: drop list abbreviated from full description

    No, the hack I suggested only works for seeing text and showing numbers. To do what you're asking would require VBA programming.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VB Script to Get full Meta Description including after Quote Mark Texts.
    By ashokpatidar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2013, 06:05 AM
  2. [SOLVED] Need macro that searches for a description based on a number from a drop down list
    By Peebly in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 02-28-2013, 07:02 PM
  3. Trying to turn abbreviated words into their full words
    By daengel in forum Excel General
    Replies: 2
    Last Post: 02-05-2013, 05:25 AM
  4. when No is selected from the drop down list, that full row then moves
    By Wildie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2009, 08:15 AM
  5. short description:Drop Down List
    By dle in forum Excel General
    Replies: 1
    Last Post: 05-23-2006, 05:50 AM

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