Record time in a specific time zone for attendance file

kryptonian

Board Regular
Joined
Oct 6, 2006
Messages
104
I am making an attendance template that will record the login/logout time of each employee. Each employee has their own file which is linked to a summary file that collates all the information for all employees.

My problem is that not all workstations are set in the same region. Meaning there are workstations set to PST, some to Mountain, some to Eastern, some Singapore, etc.

What I want to do is to record the login/logout time in a specific time zone (UTC+8:00) regardless of their regional setting.

I am currently using the GetTimeZone code to get the time zone and have this in a cell, say A1. What I would like to have the time in B1 in (UTC+8:00) region. I found out that if I use "=NOW()-(A1/24)+"8:00"" it will work for some regions but not for all possibly because of the NOW() function. How do I go about this?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,219
Messages
6,123,688
Members
449,117
Latest member
Aaagu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top