May 03 2024 06:22 PM
Good morning,
I am trying to take the data that I can copy and paste into excel in this format from a HR system.
And place the name and the start and end times into a sheet that appears like the below.
I want the name to auto populate and likewise if a start time from the top table is 0700 and end time is 1900 I want the formulas to identify that and fill it in with the letter A. Then remain blank if they are not working at that time.
May 04 2024 08:04 AM
=LET(
clockin, IFERROR(MOD(TEXTBEFORE(clockData, "-"), 1), "Off"),
clockout, MOD(TEXTAFTER(clockData, "-"), 1),
adjusted, N(clockout < clockin),
IFERROR(
HSTACK(
name,
clockin,
(timeline >= clockin) * (timeline <= clockout + adjusted)
),
""
)
)
giving
May 04 2024 09:59 AM
May 04 2024 01:07 PM
Thank you for looking at this for me, I'll put your code into my spreadsheet and see if I can get it working