+ Reply to Thread
Results 1 to 8 of 8

Problems creating a dropdown box (data validation)...

  1. #1
    Registered User
    Join Date
    04-09-2009
    Location
    London
    MS-Off Ver
    Excel 2002
    Posts
    9

    Problems creating a dropdown box (data validation)...

    We've got a dropdown box (data validation - list) which is picking up data from a specific column. The data in the column is in the following format:

    1 Sales
    2 Contracts
    18 Opening Stock
    27 Purchase
    etc

    When we select an entry from the dropdown box the cell obviously displays both the number and the text description to the right.

    What we need it to do is just display the number after selecting an item from the list. The text is descriptive and to make it easier for users.

    Is there a way of configuring the dropdown box (or another way) so that say if a user selects "1 Sales" from the dropdown it just displays "1" in the cell.

    thanks in advance.
    Last edited by BadBoy House; 04-09-2009 at 08:47 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Problems creating a dropdown box (data validation)...

    youd need to use another cell next to the validation to extract /give the number
    say validation drop down is in a1 one way is to put
    =--LEFT(A1,FIND(" ",A1)-1) which will extract the number as a number not text
    if its not always in that format you could refer to a vlookup table somwhere instead
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Problems creating a dropdown box (data validation)...

    Hi,

    The text is descriptive and to make it easier for users
    Why not do a validation list with the descriptions only, then have a VLOOKUP in another cell to get the number from a table?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Registered User
    Join Date
    04-09-2009
    Location
    London
    MS-Off Ver
    Excel 2002
    Posts
    9

    Re: Problems creating a dropdown box (data validation)...

    cheers fellas - the vlookup combo worked a treat.

    thanks very much for your help!!!

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Problems creating a dropdown box (data validation)...

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  6. #6
    Registered User
    Join Date
    07-05-2012
    Location
    nepal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Problems creating a dropdown box (data validation)...

    I am at a very basic level, would be grateful if you could explain what you mean in the answer above. I have the same question and cant figure out. Pretty new with using the function and codes.

    thank you in anticipation

  7. #7
    Registered User
    Join Date
    07-05-2012
    Location
    nepal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Problems creating a dropdown box (data validation)...

    Quote Originally Posted by oldchippy View Post
    Hi,



    Why not do a validation list with the descriptions only, then have a VLOOKUP in another cell to get the number from a table?
    I am at a very basic level, would be grateful if you could explain what you mean in the answer above. I have the same question and cant figure out. Pretty new with using the function and codes.

    thank you in anticipation

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Problems creating a dropdown box (data validation)...

    Welcome to the Forum, themaniraj. Unfortunately you've inadvertently broken one of our rules. Please read the following:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

+ 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