Returning a value in a sheet based on current date and time

Linda G

New Member
Joined
Nov 24, 2022
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
I have a sheet that tracks deployment of vehicles during each day on an hourly basis. (please see image below)

I really want to automate the status in cell D1 based on the current date and time (held in G1) from the data below so that the status is always current without having to be updated each time.

Could someone please suggest a formula to solve this problem as I am really not sure how to do that....

Many thanks in advance

Screenshot 2022-11-24 140002.png
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Can you please post your data using below link so that helpers do not need to type everything manually
 
Upvote 0
Can you please post your data using below link so that helpers do not need to type everything manually
I'm sorry I don't think that i have access to that... i tried following the instructions and cannot find that add-in?
 
Upvote 0
How about
Excel Formula:
=INDEX(D8:AA26,MATCH(INT(G1),B8:B226,0),MATCH(MOD(G1,1),D7:AA7,1))
 
Upvote 0
Solution
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Returning a value in a sheet based on current date and time
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Returning a value in a sheet based on current date and time
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
apologies again!
 
Upvote 0
Did the formula I posted work?
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,283
Members
452,902
Latest member
Knuddeluff

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