+ Reply to Thread
Results 1 to 6 of 6

Drop down list that only puts a number in the cell

  1. #1
    Registered User
    Join Date
    11-06-2012
    Location
    Cincinnati, Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    21

    Question Drop down list that only puts a number in the cell

    I know how to create a drop down list, but I want to do something a little different and am not sure if it is possible. I would like to have each item of the drop down list numbered and when chosen, only the number is entered in the cell.
    So the drop down list would be something like:

    1. absolutely not
    2. maybe
    3. definitely

    Picking one of these from a drop down list would only put a 1, 2, or 3 in the the cell.

    Is this possible and how?
    Last edited by cinci-hal; 07-20-2017 at 09:43 PM.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Drop down list that only puts a number in the cell

    How about putting the value you want in adjacent cell, see attached workbook
    Select a value from dropdown in cell B1 and get the value you want in adjacent cell A1

    formula in A1 is
    =VLOOKUP(B1,MyTable,2,0)

    source for data validation is
    =myList

    (myList and MyTable are named ranges)
    Attached Files Attached Files
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Drop down list that only puts a number in the cell

    a VBA solution - see attached workbook
    - select a value from dropdown in cell A1
    - whenever A1 value changes then change event macro overwrites value in cell with looked up value

    this is in the sheet module
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-06-2012
    Location
    Cincinnati, Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Drop down list that only puts a number in the cell

    Not exactly what I was looking for, but it might work. Thank You!

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Drop down list that only puts a number in the cell

    Do you want to change the actual value of the cell or just how it is displayed?
    If the former, then try one of the solutions above.
    If the latter, you can do it with Conditional Formatting.
    1. Select the cell, click 'Conditional Formatting' → 'New Rule' → 'Use a formula to determine which cells to format'
    2. Enter this in the formula box:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. Click 'Format', select the 'Number' tab, then 'Custom' in the list on the left-hand side. On the right-hand side, enter this in the 'Type' box:
    ;;;"1"
    4. Click OK twice to get out.
    5. Repeat using "2" and "3" for your other options.

    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Drop down list that only puts a number in the cell

    Not exactly what I was looking for, but it might work. Thank You!


    the VBA solution is EXACTLY what you asked for

+ 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. Macro that Puts every Email Address within a Cell into its own separate cell...
    By rjw524 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2016, 10:58 PM
  2. When I CopyFromRecordset a MYSQL CONCAT statement, it puts 256 blank rows into Excel table
    By Coastal_view in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2015, 09:28 AM
  3. Replies: 1
    Last Post: 07-02-2014, 07:10 PM
  4. Lookup Column number in a table based on a cell value
    By electricmice in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-22-2012, 01:08 AM
  5. Pivot table, Automatically puts data in alphabetical
    By Cicada in forum Excel General
    Replies: 6
    Last Post: 09-01-2011, 10:30 AM
  6. Replies: 3
    Last Post: 01-27-2011, 10:02 AM
  7. Excel puts a 0 at the end of my number
    By Dan Connors in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-04-2005, 04:30 PM

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