Timezone conversion in a Google spreadsheet

后端 未结 5 1206
长发绾君心
长发绾君心 2021-01-01 10:09

I know this looks simple.

In a Google spreadsheet, I have a column where I enter time in one timezone (GMT) And another column should automatically get time in anoth

5条回答
  •  星月不相逢
    2021-01-01 10:34

    Create your own Timezone Converter in Google Sheets:

    Step 1: Create your table for the timezone converter.

    Step 2: Enter the times for your time zones in a column. Note: Ensure that you select date/time format(Select Cell(s) -> Format -> Number -> Time/Date)

    Step 3: Write a formula to convert timezone using the following functions Google Sheet Functions

    =HOUR(A8)+(B3*C3) converts the hours.
    =MINUTE(A8)+(B3*C3) converts the minutes.
    

    Step 4: Convert back to time format using TIME(h,m,s) function

    =TIME(HOUR(A8)+(B3*C3), MINUTE(A8)+(B3*C3), SECOND(A8))
    

    This is a simple way to convert timezones. However, if you want to implement an accurate timezone converter that takes care of the previous day, next day, and beyond 24 hours, beyond 60 minutes, please use MOD operations and handle all the cases. Visit(or Use) this google sheet for reference: https://docs.google.com/spreadsheets/d/1tfz5AtU3pddb46PG93HFlzpE8zqy421N0MKxHBCSqpo/edit?usp=sharing

提交回复
热议问题