Calculate current day and time, insert data according to a variable

mvrht

New Member
Joined
Dec 9, 2017
Messages
18
I have a surgery opening times spreadsheet that currently displays waiting times in the "LIVE" worksheet based on the current time, pulling details from the DEFAULT worksheet. I have two additions I would like to make but am struggling with:

1) I want to add in weekends and have the LIVE tab not just get the current time with now() but also the day so it can pull in the relevant results. I have put a beta example in FULLWEEK

=ArrayFormula(vlookup(timevalue(A2),{iferror(value(regexextract(Default!A2:A,"(.+)\s-"))),Default!B2:E},{2,3,4,5},1))

2) Have a variable set in STATUS that changes the LIVE worksheet to pull in data from whatever worksheet name is entered in =STATUS!A1

ATTEMPT =ArrayFormula(vlookup(timevalue(A19),{iferror(value(regexextract(STATUS!A20:A,"(.+)\s-"))),STATUS!B20:E},{2,3,4,5},1))





I have put an example in a couple of online spreadsheets:

https://docs.google.com/spreadsheets/d/1YRQ9uduGhliY9FJ96ANCN1cf3D5rKTR08426S6EUyVs/edit?usp=sharing

If you want to have a play, you can even make a copy with this link

https://docs.google.com/spreadsheets/d/1YRQ9uduGhliY9FJ96ANCN1cf3D5rKTR08426S6EUyVs/copy
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Is this a googleSheets question or an Excel question?
 
Upvote 0
Those formulae you showed are GoggleSheets formulae & not Xl formulae.
You might do better by showing your Xl formulae
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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