+ Reply to Thread
Results 1 to 12 of 12

Convert GMT date and time to PST + misc question

  1. #1
    Registered User
    Join Date
    02-10-2016
    Location
    Los Angles, California
    MS-Off Ver
    Starter 2007
    Posts
    8

    Convert GMT date and time to PST + misc question

    Hi All -

    I have two headaches I cannot seem to resolve.

    Problem #1 -
    I have a list of data, and it was collected in GMT. Id like to convert the following into PST time... including date and time. Is there a way to create a formula to that:

    3/3/2017 4:56:00 (collected in GMT time) can be automatically converted into PST? The new calculation should be: 3/2/2017 21:56:00.

    It does not matter that daylight savings time in the US occurred since data was collected - as long as all data is consistent... that is great. Ideally I just want it to go back 8hours and convert the date accordingly.


    Problem #2 -
    I have data in cell F but not on all lines. If data is in cell F1, F4, and F6 - I would like G1, G4, an G6 to all say the same thing "x". But if no data in cell F, I would like G remain empty. Is there a simple way to configure this?

    Thanks everyone,

    Blasky

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

    Re: Convert GMT date and time to PST + misc question

    1) Assuming all dates/times are real date/time serial numbers and not text string, it should be as simple as =GMT time stamp - TIME(8,0,0) https://support.office.com/en-us/art...e-747d0b8d5457

    2) Seems like a simple IF() function https://support.office.com/en-us/art...c-aa8bbff73be2 =IF(appropriate test,"x",suitable "blank" value)
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Convert GMT date and time to PST + misc question

    One further thought - if the data is NOT in a date/time serial number, what is the date format? If GMT is being used, are the dates in the dd/mm/yyyy format? Not possible to tell from the example you posted.

    Regards,

    David

  4. #4
    Registered User
    Join Date
    02-10-2016
    Location
    Los Angles, California
    MS-Off Ver
    Starter 2007
    Posts
    8

    Re: Convert GMT date and time to PST + misc question

    Thanks for the follow up... the dates are being captured in the following format:

    3/3/2017 5:55:00

    The above is an example taken directly from my data source. It is in GMT. I would like to send it back 8 hours, so that the time is correct, and the date too! So basically just rewind the clock 8 hours and end up with the appropriate date and time.

    Blasky.

  5. #5
    Registered User
    Join Date
    02-10-2016
    Location
    Los Angles, California
    MS-Off Ver
    Starter 2007
    Posts
    8

    Re: Convert GMT date and time to PST + misc question

    For my 2nd issue at hand... Here is an example. For every line in Column A that has a value, I would like Column B to have a *. If Column A is blank, then I would like to leave Coulmn B blank. How is this achieved with formulas? (sorry, i think the formatting is ruining it - but basically Column B should have the * if there is a value in Column A.


    Column A Column B
    6 *
    4.07 *

    5.05 *
    3.05 *

    3.08 *


    Thanks!

  6. #6
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Convert GMT date and time to PST + misc question

    That's the same info as in your original post. I assume it is a text string! I want to know what today's date would look like. I gather there are no zeros which makes the formula more complicated.

    Is it 19/3/2017 or 3/19/2017. UK dates, for example, have the day first.

  7. #7
    Registered User
    Join Date
    02-10-2016
    Location
    Los Angles, California
    MS-Off Ver
    Starter 2007
    Posts
    8

    Re: Convert GMT date and time to PST + misc question

    Ahhh yes. Formatting would be the same. Todays date would be 3/19/2017. So in my example, going backwards 8 hours would be 3/2/2017 and 21:55. (or 9:55pm). Trying not to get too picky! :-)

  8. #8
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Convert GMT date and time to PST + misc question

    Quote Originally Posted by blasky View Post
    For my 2nd issue at hand... Here is an example. For every line in Column A that has a value, I would like Column B to have a *. If Column A is blank, then I would like to leave Coulmn B blank. How is this achieved with formulas? (sorry, i think the formatting is ruining it - but basically Column B should have the * if there is a value in Column A.


    Column A Column B
    6 *
    4.07 *

    5.05 *
    3.05 *

    3.08 *


    Thanks!
    =IF(A1<>"","*","") place in B1 (assuming you start your data in A1.

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Convert GMT date and time to PST + misc question

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Registered User
    Join Date
    02-10-2016
    Location
    Los Angles, California
    MS-Off Ver
    Starter 2007
    Posts
    8

    Re: Convert GMT date and time to PST + misc question

    Yes - the =IF(A1<>"","*","") formula worked great! Thank you!

  11. #11
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Convert GMT date and time to PST + misc question

    Quote Originally Posted by AliGW View Post
    Will you please attach a sample Excel workbook?
    I was about ask the same thing as Ali. I'm not convinced I know how your data looks yet.

    DAC

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Convert GMT date and time to PST + misc question

    Assuming your date and time string is in A1, and you want your altered date and time string in B1, try this in B1 (with B1 custom formatted to show date and time):

    =A1-(8/24)
    Last edited by AliGW; 03-19-2017 at 03:54 AM.

+ 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. [SOLVED] Convert Unix Date-time stamp to excel date and/or time columns
    By judikz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2015, 05:46 PM
  2. [SOLVED] Loop and find specific value or misc value, if misc then not equal to certain values
    By scott.s.fower in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2014, 09:28 PM
  3. Convert Julian date/ time to regular date/ time (MM/DD/YYYY HH:MM:SS)
    By dataguy30 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2013, 11:33 AM
  4. [SOLVED] How do I convert imported date/time data to date/time format?
    By andykent99 in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 07:47 AM
  5. Convert Julian Date/Time (ddd.tttttt) to Calendar Date/Time
    By LindseyW in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2009, 09:30 PM
  6. time question:convert into seconds
    By stevesunfold in forum Excel General
    Replies: 2
    Last Post: 07-26-2007, 12:29 PM
  7. Replies: 0
    Last Post: 08-23-2005, 12:22 PM

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