+ Reply to Thread
Results 1 to 4 of 4

Locale Based Date Formula

  1. #1
    Registered User
    Join Date
    06-25-2010
    Location
    Atlanta
    MS-Off Ver
    Excel 2003
    Posts
    3

    Locale Based Date Formula

    Hi all,

    I am trying to build a spreadsheet which needs to be used by global users. I am in US locale and I am converting a value in a cell B11=40999 to
    a date format by using =MONTH(B11)&"/"&DAY(B11)&"/"&YEAR(B11) and I get a value '3/31/2012'. This format gives an error in the UK locale and they need to get the value as '31/3/2012'.

    Is there a way I can create a formula based on the locale so that if the locale is Non-US I can use =DAY(B11)&"/"&MONTH(B11)&"/"&YEAR(B11).

    Thanks in Advance

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Locale Based Date Formula

    You could format the date unambiguously:

    =TEXT(B11, "d mmm yyyy")
    =TEXT(B11, "yyyy-mm-dd")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-25-2010
    Location
    Atlanta
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Locale Based Date Formula

    I presented this work around too, but this format is not an approved format for our company.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Locale Based Date Formula

    I don't know of another way unless your workbook already contains macros (I wouldn't add a macro just to meet this requirement).

    You could have your users change a named constant that contains a date format string used throughout the workbook, but that would require conscious effort on their part.

    I have no other suggestions.
    Last edited by shg; 08-10-2012 at 04:23 PM.

+ 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