+ Reply to Thread
Results 1 to 8 of 8

formula for evaluating if certain cell's date/time is greater than a specific date/time

  1. #1
    Forum Contributor
    Join Date
    09-05-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365
    Posts
    101

    formula for evaluating if certain cell's date/time is greater than a specific date/time

    Hello

    I don't see anything wrong with the formula, but maybe you all can spot something that I can't see. I suspect the DATEVALUE() & TIMEVALUE issue, but I have tested it and it converts fine, but the logic doesn't seem to be working.

    =IF(A1>=DATEVALUE("5/29/2015") & TIMEVALUE("10:15"), 1, 0)

    but I'm getting always getting false.

    Sample timestamps that I have tested are "5/29/2019 10:15", "3/31/2019 0:00", "6/1/2019 13:00"
    Last edited by dcwan; 09-17-2019 at 02:28 PM.

  2. #2
    Forum Contributor
    Join Date
    09-05-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365
    Posts
    101

    Re: formula for evaluating if certain cell's date/time is greater than a specific date/tim

    Never mind, I found my mistake...2015 versus 2019

    Of course that will never work...dope
    Last edited by dcwan; 09-17-2019 at 02:31 PM.

  3. #3
    Forum Contributor
    Join Date
    09-05-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365
    Posts
    101

    Re: formula for evaluating if certain cell's date/time is greater than a specific date/tim

    Tried it out, and it still didn't work. Looking carefully at the DATETIME, TIMEVALUE concatenation, it adds an extra 0, so my value goes up by a factor of 10. This is clearly different from just formatting and turning "5/29/2019 10:15" into a number. What is going on?

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: formula for evaluating if certain cell's date/time is greater than a specific date/tim

    I recommend uploading a small representative sample of your data along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  5. #5
    Forum Contributor
    Join Date
    09-05-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365
    Posts
    101

    Re: formula for evaluating if certain cell's date/time is greater than a specific date/tim

    Here is the data set.
    Attached Files Attached Files

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: formula for evaluating if certain cell's date/time is greater than a specific date/tim

    Try this in B2:

    =A2>DATE(2019,5,29)+TIME(10,15,0)

  7. #7
    Forum Contributor
    Join Date
    09-05-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365
    Posts
    101

    Re: formula for evaluating if certain cell's date/time is greater than a specific date/tim

    this works.

    Thanks

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: formula for evaluating if certain cell's date/time is greater than a specific date/tim

    You’re welcome. Happy to help.

    Thanks for the rep!

+ 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. [SOLVED] Formula/method to sort by specific time period within date+time ranges in cell
    By mikeskins84 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-13-2018, 01:12 PM
  2. [SOLVED] How to see if a specific date and time falls between two date/time fields
    By BlueberryTech in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-06-2014, 09:02 AM
  3. Need to separate date/time from a single cell and create a date/time chart
    By slicksilver79 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-19-2014, 09:48 PM
  4. Replies: 6
    Last Post: 02-10-2014, 01:40 PM
  5. Replies: 3
    Last Post: 12-19-2013, 06:49 AM
  6. [SOLVED] Formula to highlight cell/data greater than a specific date
    By tdsmith14 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2013, 05:44 AM
  7. [SOLVED] Show the date and time in a specific cell of last time we run a macro
    By dragon_m0nsta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2012, 04:49 AM

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