+ Reply to Thread
Results 1 to 18 of 18

standard to number

  1. #1
    Registered User
    Join Date
    10-10-2016
    Location
    Belgium
    MS-Off Ver
    2019
    Posts
    45

    standard to number

    Hello

    A customer sent me an Excel file which was generated by a very old system (BASIC), making it impossible to calculate in the file.
    Numbers without decimals are considered as number, but once you have decimals, calculations give the value error.
    I've tried every possible method I know to convert the 'decimal' cell to number, but no success.
    Does anyone of you know how I can fix this?
    Small demo file attached (column C needs to be converted).

    Thanks
    Chris
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: standard to number

    You can use this:

    =VALUE(C2)

    or this:

    =--C2

    or this:

    =C2+0

    to turn these text values into number values in a formula.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-10-2016
    Location
    Belgium
    MS-Off Ver
    2019
    Posts
    45

    Re: standard to number

    Hi Ali

    I'd already tried this, no success. Any other suggestions?

    Chris

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: standard to number

    Maybe you need to TRIM first = VALUE(TRIM(C2))

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: standard to number

    Thy ALL work in your sample sheet! The first two are better, as the last one (below) leaves you with text (although it will compute).

    YOU must have done something wrong! Or you have not provided representative data ...

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Artnr VM
    Gr
    Preis
    2
    0506/CA36
    77
    2.06
    2.06
    =C2+0
    6.18
    =(C2+0)*3
    3
    0506/CA99
    77
    2.06
    2.06
    =--C3
    6.18
    =--C3*3
    4
    0514/CA00
    77
    2.06
    2.06
    =VALUE(C4)
    6.18
    =VALUE(C4)*3
    5
    0514/CA02
    77
    2.06
    6
    0514/CA12
    77
    2.06
    7
    0514/CA13
    77
    2.06
    8
    0514/CA15
    77
    2.06
    9
    0514/CA21
    77
    2.06
    Sheet: Blad1

  6. #6
    Registered User
    Join Date
    10-10-2016
    Location
    Belgium
    MS-Off Ver
    2019
    Posts
    45

    Re: standard to number

    No luck with trimming. When I check the cell properties, it is Standard, not Text.
    Does this make any difference? I changed Standard to Text, but no success.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: standard to number

    Please see post #5.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-10-2016
    Location
    Belgium
    MS-Off Ver
    2019
    Posts
    45

    Re: standard to number

    I'm completely losing my mind.
    When I copy the formula in the file you sent me, I get the value error (value = waarde).
    Attachment 742564
    Is this a setting thing?

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: standard to number

    You need to attach as per the instructions in the yellow banner. the formula work for me in the sample fiie. It is hard to work out your problem unless we can see a representative file showing the problem

  10. #10
    Registered User
    Join Date
    10-10-2016
    Location
    Belgium
    MS-Off Ver
    2019
    Posts
    45

    Re: standard to number

    I attached a file with my first post, in which I have the problem and where Ali and you don't.
    I opened the file Ali sent (post #7) and copied the formula in D2 to D5: #VALUE error.
    Even when I retype the formula in D2 (=C2+0), I get the error.
    I send the opened and saved as Ali file attached.

    Chris
    Attached Files Attached Files

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: standard to number

    I don't think you are entering them properly.

    This is YOUR latest workbook:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    1
    Artnr VM
    Gr
    Preis
    2
    0506/CA36
    77
    2.06
    2.06
    =C2+0
    6.18
    =(C2+0)*3
    3
    0506/CA99
    77
    2.06
    2.06
    =--C3
    6.18
    =--C3*3
    4
    0514/CA00
    77
    2.06
    2.06
    =VALUE(C4)
    6.18
    =VALUE(C4)*3
    5
    0514/CA02
    77
    2.06
    2.06
    =C5+0
    6
    0514/CA12
    77
    2.06
    2.06
    =C6+0
    7
    0514/CA13
    77
    2.06
    8
    0514/CA15
    77
    2.06
    9
    0514/CA21
    77
    2.06
    Sheet: Blad1

  12. #12
    Registered User
    Join Date
    10-10-2016
    Location
    Belgium
    MS-Off Ver
    2019
    Posts
    45

    Re: standard to number

    Attached a screen movie of what I did and what happens.
    Attached Files Attached Files

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: standard to number

    Sorry - I cannot reproduce your issue. It has nothing to do with the formula, and if you put your cursor into those cells and click ENTER they should work.

  14. #14
    Registered User
    Join Date
    10-10-2016
    Location
    Belgium
    MS-Off Ver
    2019
    Posts
    45

    Re: standard to number

    Thanks for looking into it. I'll have to live with it then.
    I've tried it in the meantime in Excel 365 and 2019, and they both give the error.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: standard to number

    I'm sorry - I don't know what more we can do or suggest. Maybe you could ask a friend with a Belgian locale to try it and see if they get the same error: it has to be something system-based.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  16. #16
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: standard to number

    Since they are stored as text with a decimal point as the separator, rather than the comma you would use, you could try:

    =SUBSTITUTE(C2,".", ",")+0
    Rory

  17. #17
    Registered User
    Join Date
    10-10-2016
    Location
    Belgium
    MS-Off Ver
    2019
    Posts
    45

    Re: standard to number

    Hi Rory
    Thanks. This works!
    Chris

  18. #18
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: standard to number

    Glad we could help, and thanks for the rep.

+ 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] Converting multiple non-standard time formats to one standard?
    By RandyStone in forum Excel General
    Replies: 6
    Last Post: 06-14-2018, 07:40 AM
  2. [SOLVED] Number of Number -- Number 3 as Default Standard
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-18-2017, 01:57 PM
  3. Date extraction from string (not standard is+number answer)
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-12-2017, 10:13 AM
  4. Mobile Number Formatting: E.164 standard
    By kingofcamden in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2016, 05:33 AM
  5. [SOLVED] Converting Standard Time format (hh:mm:ss) to number of minutes
    By xygrax in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2014, 10:54 AM
  6. [SOLVED] how to keep in standard sequential number?
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2013, 08:26 AM
  7. Commas, Decimals and Standard Number with nothing -- Output separated data
    By dmcbrier in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 02:21 PM

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