+ Reply to Thread
Results 1 to 2 of 2

Numbers/Letters converted to a number

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Numbers/Letters converted to a number

    I have a drop down box, with 3 options, 3 years, 5 years or 7 years.
    I want to use the 3, 5, 7 value elsewhere, so how do i convert the drop down cell to a number ?

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Numbers/Letters converted to a number

    Depending on your dropdown

    Data validation in cell A1

    =CHOOSE(MATCH(A1,{"3 years";"5 years";"7 years"},0),3,5,7)

    Form control, linked to cell A2
    =CHOOSE(A2,3,5,7)

    ActiveX control linked to A3
    =CHOOSE(MATCH(A3,{"3 years";"5 years";"7 years"},0),3,5,7)

    Validation
    Cheers
    Andy
    www.andypope.info

+ 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. [SOLVED] locate in the 25 letters the corresponding number in the draw line of the 20 numbers.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-08-2019, 01:17 PM
  2. Turning a 6 or 7 digit number into a code containing numbers and letters.
    By MCucuzza in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-16-2016, 04:21 PM
  3. [SOLVED] UDF to number a sequence of numbers of letters
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2014, 12:53 AM
  4. [SOLVED] Generating: letters from cell contents, & numbers based on number of cells containing data
    By excellenct in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2014, 06:14 AM
  5. Replies: 9
    Last Post: 11-13-2012, 02:37 PM
  6. Replies: 4
    Last Post: 03-25-2012, 03:09 AM
  7. Replies: 2
    Last Post: 10-13-2011, 02:35 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