Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Changing timezones for separated cells

$
0
0

So I currently have a work schedule on Google Sheets, and we all work remotely, all over the country, so I want to add a dropdown menu that one can select to change the time zones of the current times.

At the moment I have a giant cluster of merged cells that just says, "Times in Pacific Time Zone", as well as a drop-down menu below it that has "Pacific," "Central," "Mountain," and, "Eastern," and what I would like to have happen is when someone clicks on Mountain, for example, it changes all of the times in specific, separated cells, to mountain time (default is pacific,) and then if they click another time zone, it switches to that one, as well as changing the "Times in Pacific Time Zone" to "Times in Mountain/Central/Eastern Time Zone".

Currently, the drop down menu is a data validation with "List of items" which are "Change Time Zone" (this one will do nothing but let people know what to click on) "Pacific" "Mountain" "Central" and "Eastern" in it, written as such: Change time Zone,Pacific,Mountain,Central,Eastern

I tried writing a script in a vacant cell, just to test it out, but I'm getting errors out the wazoo. Plus I'm worried with the way I'm currently writing this script, it'll add hours to the time zones but won't revert them back if you click something else on the drop down menu.

My current script in the vacant cell is as follows:
=if (P19 = "Pacific" AND (C5:D9 AND F5:G9 AND I5:J9 AND L5:M9 AND O5:P9 AND R5:S9 AND U5:V9 > 0),1,2)

I'm a sheets noob, please help.

This is what it looks like


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>