+ Reply to Thread
Results 1 to 14 of 14

French to english problem

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2010
    Posts
    79

    French to english problem

    I have a formula as follow: =OFFSET(BA26,3,MATCH(TEXT(TODAY(),"dd-mmm-yy"),BA26:OG26,0)-1)

    It works on my computer because I have a full english version of excel. There's another person who have a french version of excel, but that person switched the formulas to english version (setting in Excel).

    The problem is, "TEXT(TODAY(),"dd-mmm-yy")", puts the date in a french format instead of english. Is there a setting somewhere to put everything in english?

    Cross-post: http://www.mrexcel.com/forum/excel-q...ml#post3496507

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: French to english problem

    'TEXT(today();"[$-809]dd-mmm-yy")


    Try this one

    In file code for many more countries
    Attached Files Attached Files
    Last edited by popipipo; 06-14-2013 at 01:04 PM.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: French to english problem

    Quote Originally Posted by popipipo View Post
    'TEXT(today();"[$-809]dd-mmm-yy")


    Try this one

    In file code for many more countries
    I tried 809, 1009 & 409 and they don't work. Is there a specific french code (french canadian)?

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: French to english problem

    Is there a specific french code
    See the file I attached

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: French to english problem

    Quote Originally Posted by popipipo View Post
    See the file I attached
    There is no french code.

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: French to english problem


  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: French to english problem

    [$-C0C]
    I found this one for french

  8. #8
    Registered User
    Join Date
    09-05-2012
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: French to english problem

    Quote Originally Posted by popipipo View Post
    [$-C0C]
    I found this one for french
    I tried the others (french code) and this one, but it only change from "Juin" to "Jun" (french month to enlgish month). The rest stays the same. So I have:

    "dd-Jun-yy"

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: French to english problem

    Kind of a kludge but you can avoid the TEXT function like this...

    Create these defined names...

    Goto the Formulas tab>Define name

    Name: Months
    Refers to: ="JanFebMarAprMayJunJulAugSepOctNovDec"

    Name: ToDay
    Refers to:

    =IF(DAY(NOW())<10,0&DAY(NOW()),DAY(NOW()))&"-"&MID(Months,MONTH(NOW())*3-2,3)&"-"&RIGHT(YEAR(NOW()),2)

    Then, your formula becomes:

    =OFFSET(BA26,3,MATCH(ToDay,BA26:OG26,0)-1)

    I'm assuming you are aware that in your original formula the TEXT function is returning a TEXT string that looks like a date.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  10. #10
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: French to english problem

    Look at these 2 examples
    Not sure if you need 'jjjj' or 'YYYY' for the year
    Or maybe for the french edition of excel you have to change it
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-05-2012
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: French to english problem

    Quote Originally Posted by Tony Valko View Post
    Kind of a kludge but you can avoid the TEXT function like this...

    Create these defined names...

    Goto the Formulas tab>Define name

    Name: Months
    Refers to: ="JanFebMarAprMayJunJulAugSepOctNovDec"

    Name: ToDay
    Refers to:

    =IF(DAY(NOW())<10,0&DAY(NOW()),DAY(NOW()))&"-"&MID(Months,MONTH(NOW())*3-2,3)&"-"&RIGHT(YEAR(NOW()),2)

    Then, your formula becomes:

    =OFFSET(BA26,3,MATCH(ToDay,BA26:OG26,0)-1)

    I'm assuming you are aware that in your original formula the TEXT function is returning a TEXT string that looks like a date.
    I didn't try it (I've been trying for too long now), I think I'll just give the person my comp & password...

    Thanks anyways!

    Quote Originally Posted by popipipo View Post
    Look at these 2 examples
    Not sure if you need 'jjjj' or 'YYYY' for the year
    Or maybe for the french edition of excel you have to change it
    jj = dd
    yy = aa

    The thing is I can't really change it, because BA26:OG26 are all english format text dates.

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: French to english problem

    Quote Originally Posted by YounesB3 View Post
    I didn't try it (I've been trying for too long now)... BA26:OG26 are all english format text dates.
    OH well! It should work.

  13. #13
    Registered User
    Join Date
    09-05-2012
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: French to english problem

    Quote Originally Posted by Tony Valko View Post
    OH well! It should work.
    I had the time to check it out and it does seem to work indeed

    I will be checking with a french computer soon..!

    Edit: It works on a french version! Thanks a lot!
    Last edited by YounesB3; 07-09-2013 at 01:49 PM.

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: French to english problem

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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