+ Reply to Thread
Results 1 to 4 of 4

Need to check if the current time is greater than today at 6pm

  1. #1
    Registered User
    Join Date
    12-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Need to check if the current time is greater than today at 6pm

    How would I check if the current time is greater than the current date at 6pm?

    So example:

    if (Now() is greater than "12/11/2014 6:00 PM") then set the column to 1, if less than that... 0

    Now sure how to set the current date etc in the formula.

  2. #2
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Need to check if the current time is greater than today at 6pm

    =HOUR(NOW()) will give you the hour now, so =if(HOUR(NOW())>=18,1,0) should work

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Need to check if the current time is greater than today at 6pm

    here is a solution
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  4. #4
    Registered User
    Join Date
    12-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Need to check if the current time is greater than today at 6pm

    Okay,

    I guess I need something a little different. I have a column that has a date: "12/6/2014" and I need to check off of that date. So if Now() is greater than date of column A6 at 6pm then put a 1, other wise put 0.

    If("12/6/2014 6pm" < Now(), 1, 0)

    So how can I add 6pm to the date of column A6 etc?

+ 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. Replies: 4
    Last Post: 09-20-2014, 07:10 AM
  2. [SOLVED] How do you write the current time to a variable and check it later?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2013, 03:04 PM
  3. Replies: 4
    Last Post: 09-01-2011, 03:25 PM
  4. [SOLVED] how do I get a current time using =TODAY() instead of 12:00 AM
    By Keith in forum Excel General
    Replies: 10
    Last Post: 06-26-2006, 03:35 PM
  5. Check box, then add current time to cell
    By Joe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2005, 08:05 PM

Tags for this Thread

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