+ Reply to Thread
Results 1 to 5 of 5

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

  1. #1
    Registered User
    Join Date
    11-22-2022
    Location
    Hampshire UK
    MS-Off Ver
    2016
    Posts
    17

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

    I have a sheet that tracks deployment of vehicles during each day on an hourly basis. (please see example file 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
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-22-2022
    Location
    Hampshire UK
    MS-Off Ver
    2016
    Posts
    17

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

    thank you, this issue has been solved on the mr excel website (i would post a link but im not allowed!)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

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

    Quote Originally Posted by Linda G View Post
    thank you, this issue has been solved on the mr excel website (i would post a link but im not allowed!)
    Thanks for the update - would you please share what the solution was.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-22-2022
    Location
    Hampshire UK
    MS-Off Ver
    2016
    Posts
    17

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

    Yes.. I was given the following formula which works perfectly

    =INDEX(D8:AA26,MATCH(INT(G1),B8:B226,0),MATCH(MOD(G1,1),D7:AA7,1))

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

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

    Thank you, Im sure that will help others, too

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. save single sheet to CSV file with name of current date and time
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2021, 09:50 AM
  2. Returning value in one sheet based on data and time criteria in another
    By bigagger in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2020, 11:54 AM
  3. Date differential returning number of current date
    By Carmella in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2017, 05:07 PM
  4. Change date on sheet based on current date
    By cory0789 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2016, 10:10 AM
  5. [SOLVED] Calculate time remaining based on end date & time and current date
    By Kaz09 in forum Excel Formulas & Functions
    Replies: 33
    Last Post: 08-19-2014, 07:11 AM
  6. Replies: 8
    Last Post: 07-26-2013, 06:29 PM
  7. Returning an entry from a table based on the current date
    By jshaw82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2012, 12:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1