+ Reply to Thread
Results 1 to 6 of 6

Translate from Euro # formatting ( I think ) to US formatting

  1. #1
    Registered User
    Join Date
    06-06-2005
    Location
    Minnesota, USA
    MS-Off Ver
    2016
    Posts
    18

    Translate from Euro # formatting ( I think ) to US formatting

    I have a spreadsheet with a column of numbers in a foreign formatting style that I need to translate to US English formatting style. I am guessing on the origin format, I really do not recognize it. Especially line 14. I am presuming it is a different formatting style, but I guess I do not know for sure.

    Do you recognize the format and is there a way to translate it within Excel?

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Translate from Euro # formatting ( I think ) to US formatting

    You can use find and replace. Replace"." with",".
    There is european format(uses , for decimals and . for grouping digits
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    06-06-2005
    Location
    Minnesota, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Translate from Euro # formatting ( I think ) to US formatting

    The crazy part is there is no "." in the cell per Excel to replace.

    Other things I have tried

    =if(len(d2)<4,(d2*1000),d2 - works great except in the case of 20.000 it recognizes the "len" of that to be 2.
    =search(".",d2) yields 2, but in the case of d12 (20.000) it provides a value error.
    =right(d12,4) to see if it will provide the ".000" after 20.000 and work from there, but it provides 20.

    It just seems to follow no rules and I almost think the data is corrupted except it does make sense when you see what the actual value is, but there seems to be no rule I can apply that is accurate. I cannot multiply them all by 1000 as d10 is actually supposed to be 300, but d11 is supposed to be 1722 and d12 is supposed to be 20000.

    If it helps it came out of an SAP system.
    Attached Files Attached Files
    Last edited by Chrisnelsonusa; 02-02-2023 at 09:59 PM. Reason: added file to show results of attempts

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Translate from Euro # formatting ( I think ) to US formatting

    Perhaps I am picking at nits, but you talk about changing formats, but what I see you describing in your sample file is changing actual numbers/values. Examples ("." as decimal separator):

    A3=1.25 B3=1250
    A4=470 B3=470 (so no change here)
    A7=5 B7=5000
    A15="15.272.714" (a text string) B3=15272.71(4)

    Number formats in column A are mixed. Sometimes you have #,##0.000 and sometimes it's #,##0. The only pattern I see in your desired is you want all of those where the number format code is #,##0.000 to be multiplied by 1000. Number format, unfortunately, is not an easy property to access with spreadsheet functions.

    Because all of the values (except A15) are numbers, I don't know that text manipulation functions (like REPLACE()) are going to work here. The only pattern I can see in your example is that all of the values you want to change (to multiply by 1000) are the "small" numbers. I don't know what would be a rigorous value, but something like =A3*IF(A3<100,1000,1) would work for all except A15.

    For A15 where it appears that you want to simply eliminate the first ".", Something like =VALUE(SUBSTITUTE(A15,".","",1) will work, but that is based on only one example of a text string in your sample file.

    If you must do both inside of one single formula, you could nest the two formulas inside of an IF() function that tests for text/number and chooses accordingly. =IF(ISTEXT(A3),VALUE(...),A3*IF(...)).

    Of course, from there you will need to apply the desired number formatting to get the values to display as you want them.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Translate from Euro # formatting ( I think ) to US formatting

    Where are these data coming from? How are you importing them into Excel? Any chance the data start out as text in a text file (or similar) and you are importing that text into Excel? If so, this might be easier to fix while the data are still text, before they are brought into Excel and converted to numbers. That depends entirely on what your import/entry process is, which you have not shared.

  6. #6
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Translate from Euro # formatting ( I think ) to US formatting

    Quote Originally Posted by Chrisnelsonusa View Post

    If it helps it came out of an SAP system.
    In this case you have two options:
    1. Change regional settings on your computer to match the settings of SAP system or
    2. try to export from SAP in .csv or .txt not ,XLSX and use Excel import feature (Get& Transform i.e. Power query) to import data in the correct format

+ 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: translate text from cell using google translate
    By Marc_excel_tips in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-05-2021, 06:18 AM
  2. Replies: 3
    Last Post: 04-29-2016, 04:10 AM
  3. Sample Translate English to Arabic Text Using MS Translate
    By pidyok in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2013, 08:18 AM
  4. Replies: 2
    Last Post: 02-25-2013, 01:55 AM
  5. Conditional Formatting where text in another cell translate to a number
    By tstaller in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2012, 12:52 PM
  6. Translate 2007 Conditional Formatting in 97-2003
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2009, 02:53 PM
  7. [SOLVED] euro symbol loses formatting if bold
    By cadiehl in forum Excel General
    Replies: 2
    Last Post: 07-31-2006, 09:53 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