+ Reply to Thread
Results 1 to 7 of 7

drop down list

  1. #1
    Registered User
    Join Date
    08-23-2017
    Location
    windsor, Canada
    MS-Off Ver
    2016
    Posts
    4

    drop down list

    Hello,
    I have made a drop down list of numbers ranging from 1 to 7 with 0.1 increments. My list starts from A2 as 1 and A3=A2+0.1 and so on. When I choose 6.2 from the list, it is shown as 6.199999999. For all the numbers higher than 6.2, I have this problem.
    Could you please advise me on this problem?

    Thank you very much,
    Payman

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: drop down list

    Try using the text function

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Your dropdown list must be impractical

    Why not use three dropdowns 0=9,0-9, 0-9

    Or three spin buttons
    Last edited by mehmetcik; 08-26-2017 at 02:13 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    08-23-2017
    Location
    windsor, Canada
    MS-Off Ver
    2016
    Posts
    4

    Re: drop down list

    Thank you very much for the prompt reply.
    Now the cells are texts, not numbers to be used later in my formulas. Could you please make a comment on this as well.

    I am also wondering why this problem occurred. I have done this kind of job several times before and only this time I have such problem.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: drop down list

    you can use concat function or & to join the four elements together

    A1 =6
    A2 = .
    A3=1
    A4 = 6

    B2 = Concat("A1:A4")*1

    or

    B2 =(A1 & A2 & A3 & A4)*1
    Attached Files Attached Files
    Last edited by mehmetcik; 08-26-2017 at 02:48 PM.

  5. #5
    Registered User
    Join Date
    08-23-2017
    Location
    windsor, Canada
    MS-Off Ver
    2016
    Posts
    4

    Re: drop down list

    I really appreciate your proposed method. I would rather try to understand why the excel reads 6.19999999 instead of 6.2. This way I could have a more general insight.
    Do you think it is a normal behavior? or perhaps something has been changed in the setting?

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: drop down list

    Excel does not store numbers as decimals, they are stored as binary numbers so errors will creep in.

  7. #7
    Registered User
    Join Date
    08-23-2017
    Location
    windsor, Canada
    MS-Off Ver
    2016
    Posts
    4

    Re: drop down list

    Thank you very much.

+ 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. Secondary drop down list generated via Primary drop down list
    By danieljgor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-13-2016, 12:38 AM
  2. [SOLVED] Suppress drop-down list dependent on value chosen in another drop-down list
    By ptmald in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2013, 07:17 PM
  3. How to create a drop down list based on the choices of another drop down list?
    By Happy jain in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2013, 01:54 AM
  4. Populate Drop-down list based on selection from previous drop-down list
    By Diventus in forum Excel - New Users/Basics
    Replies: 14
    Last Post: 01-11-2013, 10:55 AM
  5. Populate Drop-down list based on selection from previous drop-down list
    By poison_stone in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-11-2012, 06:10 PM
  6. Replies: 3
    Last Post: 04-16-2012, 10:14 PM
  7. Replies: 5
    Last Post: 10-27-2005, 01:55 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