+ Reply to Thread
Results 1 to 9 of 9

Convert DD/MM/YYYY HH:MM:SS from GMT to PST

Hybrid View

barry7377 Convert DD/MM/YYYY HH:MM:SS... 02-25-2013, 06:10 PM
Norie Re: Convert DD/MM/YYYY... 02-25-2013, 06:12 PM
barry7377 Re: Convert DD/MM/YYYY... 02-25-2013, 06:14 PM
Norie Re: Convert DD/MM/YYYY... 02-25-2013, 06:23 PM
barry7377 Re: Convert DD/MM/YYYY... 02-25-2013, 06:30 PM
daddylonglegs Re: Convert DD/MM/YYYY... 02-25-2013, 06:26 PM
barry7377 Re: Convert DD/MM/YYYY... 02-25-2013, 06:31 PM
Harribone Re: Convert DD/MM/YYYY... 02-25-2013, 06:40 PM
Norie Re: Convert DD/MM/YYYY... 02-25-2013, 06:41 PM
  1. #1
    Registered User
    Join Date
    02-25-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    4

    Exclamation Convert DD/MM/YYYY HH:MM:SS from GMT to PST

    Hi,

    I have a report where I need to convert the date from GMT to PST. The data in the cell is DD/MM/YYYY HH:MM:SS (example: 25/02/2013 14:00:00) and I need to convert the data into PST.

    I have attempted the following formula without success:

    =A1-TIME(8,0,0)

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Convert DD/MM/YYYY HH:MM:SS from GMT to PST

    That should work.

    Is it not returning the correct result?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    02-25-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    4

    Re: Convert DD/MM/YYYY HH:MM:SS from GMT to PST

    Hi Norie,

    Unfortunately that does not work...I get #VALUE!

    I think it's because the original data is both date and time and the formula only works with time?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Convert DD/MM/YYYY HH:MM:SS from GMT to PST

    It sounds more like the date isn't a date.

    You can check for that with this.
    Formula: copy to clipboard

    =ISNUMBER(A1)

    If that returns TRUE then A1 is a real date, if it returns FALSE it's not.

  5. #5
    Registered User
    Join Date
    02-25-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    4

    Re: Convert DD/MM/YYYY HH:MM:SS from GMT to PST

    It is returning FALSE and it's probably because of the way time is written in Europe (that's where my Excel data originate from). They write the date as DD/MM/YYYY instead of MM/DD/YYYY

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Convert DD/MM/YYYY HH:MM:SS from GMT to PST

    You can subtract hours like that even with a date - if you get #VALUE! that probably means your date isn't recognised as a date (and is treated as text) that might happen if your default format is m/d/yy - can you convert the dates?
    Audere est facere

  7. #7
    Registered User
    Join Date
    02-25-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    4

    Re: Convert DD/MM/YYYY HH:MM:SS from GMT to PST

    I tested this by manually changing the date from DD/MM/YYYY and the formula worked. However I have over 950 entries...I can't possibly manually change the date format for all 950....

  8. #8
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Convert DD/MM/YYYY HH:MM:SS from GMT to PST

    You can use the format painter to save you the time.
    Say thanks, click *

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Convert DD/MM/YYYY HH:MM:SS from GMT to PST

    Are they all in the one column?

    If they are try going to Data>Text to columns... and either just click on Finish or on the 3rd step choose DMY for column date format.

    If that doesn't work then you could try a formula to convert to real dates.

    For example this.
    [formula]
    =DATE(MID(A1, 7,4), MID(A1, 4,2), LEFT(A1,2))+TIMEVALUE(RIGHT(A1, 8))
    [/formual]
    You can insert a column, enter this formula, copy it down, then copy and paste values over the original values and delete the column with the formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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