+ Reply to Thread
Results 1 to 9 of 9

Date Reversal

  1. #1
    Registered User
    Join Date
    05-26-2008
    Posts
    10

    Date Reversal

    Hello,

    I am using a formula to find the oldest date of a list of dates depending on what country an item is from. In my place of work we use profiles so anyone can log on to any computer and access all of their own details etc.

    When I use the formula the date is returned correctly in the UK format (DD/MM/YY), and another of my colleagues also. However on some other profiles, the numbers (not the actual dates) are reversed to the American style (MM/DD/YY). The file that the formula is part of is remotely stored, so the formatting does not change.

    I am sure there is some local excel setting that is reversing the dates, does anyone have any idea where I might find it? Or any idea how to stop the change.

    Unfortunately it is not a simple case of 3-august-08 appearing as August-3-08, instead it appears as 8-march-08. (month titles only used for ease, I the formula uses numbers).

    Thanks
    Last edited by oldchippy; 11-09-2008 at 11:55 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Did you have a look at the regional settings in the PC's Control Panel?

  3. #3
    Registered User
    Join Date
    05-26-2008
    Posts
    10
    Yes, unfortunately it's a standard setting that no one can change, so no joy there. Thanks for trying though

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    If your original date is say "31/12/08" the date looks correct but in fact it is text?

  5. #5
    Registered User
    Join Date
    05-26-2008
    Posts
    10
    No, the original date (taken from an external source) is in the format: 08/19/2008 08:30 AM. When added to the sheet it stays the same, but when found using the formula, the month and date are reversed, so the example above would be 19/08/2008 08:30 AM.

    This wouldn't be a problem, but it's not a case of just changing the format, the date is being recognised as 19(month)/08(day)/2008(year). Obviously there is no 19th month of the year, so the result is a fail.

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Does this work for you, it will change the format to a TEXT format

    =TEXT(DATE(YEAR(A1),MONTH(A1),DAY(A1)),"dd/mm/yyyy")&" "&TEXT(MOD(A1,1),"hh"":""mm"":""ss")

    Result = 19/08/2008 08:30:00
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    the original date (taken from an external source) is in the format: 08/19/2008 08:30 AM. When added to the sheet it stays the same
    1. It appears in the cell exactly like that?

    2. If you change the format to General, does it appear as a number? If not, it is stored as text. If you cannot change the regional settings on the computer, then you'd need a formula and a helper column to get the correct date.

  8. #8
    Registered User
    Join Date
    05-26-2008
    Posts
    10
    Hi, thanks for all of the help. The problem was, as very quickly identified by arthurbr, the regional setting on the PC's. Although we cannot change them, apparently they are set depending on where you are from. The company making things easier or something. I tried the other suggestions before convincing an IT guy to change things. I really thought it was an Excel setting that was hindering progress.

    Sorry for any trouble, but you guys have saved me loads of work, so I am grateful.

    Thanks

  9. #9
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Thx 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)

Similar Threads

  1. Advanced Timesheet
    By DaKohlmeyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-28-2008, 04:49 PM
  2. Replies: 1
    Last Post: 12-15-2007, 09:15 AM
  3. Comparing one date to another
    By Rams in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2007, 10:02 AM
  4. looping issues
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 11:42 PM
  5. Next Date
    By kwiklearner in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2007, 11:37 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