+ Reply to Thread
Results 1 to 11 of 11

Excel think a number is million and not just 1.

  1. #1
    Registered User
    Join Date
    04-15-2016
    Location
    Oslo
    MS-Off Ver
    Excel 2013
    Posts
    70

    Excel think a number is million and not just 1.

    I have imported a large dataset into Excel using "from text" CSV file

    So I am calculating the change in percentage between 2 numbers. Everthing went fine until it came to these kind of difference between 2 numbers:

    Example:

    Number:
    CELL:A1: 1.002.105
    Cell: A2: 0.952894

    So I think excel believes that CELL A1 is 1 million!

    But I want Excel to understand that this is just 1.002105

    How can I fix this?

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Excel think a number is million and not just 1.

    You need to get rid of the rogue decimal point.

    Can you provide a workbook containing some sample data that we can test for you?
    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
    04-15-2016
    Location
    Oslo
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Excel think a number is million and not just 1.

    Sure.

    For example the problem occur in Cell: C1673
    Attached Files Attached Files

  4. #4
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Excel think a number is million and not just 1.

    OK - you will know why it's happening, I presume? It's because of the way your locale is reading the separators, I think.

    Here's a workaround:

    =(IF(B1673>1,B1673/1000000,B1673)-IF(B1672>1,B1672/1000000,B1672))/IF(B1672>1,B1672/1000000,B1672)

    You will need to replace commas with sem-colons for your locale.
    Attached Files Attached Files
    Last edited by AliGW; 05-18-2022 at 07:00 AM. Reason: Workbook attached.

  5. #5
    Registered User
    Join Date
    04-15-2016
    Location
    Oslo
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Excel think a number is million and not just 1.

    Wow. Thanks!

    So if I understand correctly: I am located in Europe so you are saying that I should go into option-advanced of Excel and change to semi colons? Its now NOT checked on "use system seperators"

    Your workourand seems to work nicely. When I opened your Excel file commas had automatically been replaced with ;

    And is it possible to format the "close" data so that it's correct? I want to make a graph of that data and now the highest number is understood by excel as 9.6 million. instead of 9.6
    Last edited by stockman; 05-18-2022 at 07:31 AM.

  6. #6
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Excel think a number is million and not just 1.

    No, you should not change your settings. If you are given a formula here with commas (which are used as separators in English-speaking locales), you should change them to commas. I added a workbook because I knew that it would render correctly for your locale.

    You might find this handy: https://en.excel-translator.de/translator/

    Glad to have helped.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) 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 all those who offered help.

  7. #7
    Registered User
    Join Date
    04-15-2016
    Location
    Oslo
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Excel think a number is million and not just 1.

    I understand. Thanks.
    And I have this question also: Is it possible to format the "close" data so that it's correct? I want to make a graph of that data and now the highest number is understood by excel as 9.6 million. instead of 9.6

  8. #8
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Excel think a number is million and not just 1.

    If you convert it in the same way that I have done to a new column, then use that as the chart source, then yes.

  9. #9
    Registered User
    Join Date
    04-15-2016
    Location
    Oslo
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Excel think a number is million and not just 1.

    Thanks, but the code is complicated for me. I don't know how to do what you suggest.

    So it's not about calculating the percentage, but maybe make a new column with correct formatting for the "close" data

  10. #10
    Registered User
    Join Date
    04-15-2016
    Location
    Oslo
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Excel think a number is million and not just 1.

    I think I managed myself. At least the graph looks good now:

    solution: =(IF(E2>1;E2/1000000;E2))

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Excel think a number is million and not just 1.

    That's it - well done!

    Glad to have helped.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) 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 all those who offered help.

+ 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] Million rows in an excel sheet
    By scottiex in forum Excel General
    Replies: 13
    Last Post: 04-01-2022, 02:05 PM
  2. Number Format For thousand,million and billions conditionally in excel.
    By Anshul_Jain in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2016, 08:43 AM
  3. [SOLVED] Trying to get last visible row, Excel keeps going to row 1 Million
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-28-2015, 03:25 PM
  4. Spend per million in Excel
    By baker3720 in forum Excel General
    Replies: 1
    Last Post: 10-05-2015, 11:30 AM
  5. [SOLVED] UDF required to convert number with k to Thousand and with m to Million
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2015, 03:12 PM
  6. Number Format: One Thousand = 1K, One Million = 1M
    By emptycucumber in forum Excel General
    Replies: 5
    Last Post: 05-29-2009, 10:47 PM
  7. million rows in Excel 2007
    By wmorrison49 in forum Excel General
    Replies: 2
    Last Post: 11-01-2007, 11:01 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