+ Reply to Thread
Results 1 to 5 of 5

Looking for an IF formula which prints YES if more than 6 hours and NO if less than 6

  1. #1
    Registered User
    Join Date
    07-27-2018
    Location
    Costa Rica
    MS-Off Ver
    MS Office 2016
    Posts
    17

    Looking for an IF formula which prints YES if more than 6 hours and NO if less than 6

    Hello Team,

    I have the following data:

    Assigned Date
    2018-08-08 10:04:38AM GMT-0700
    2018-08-07 11:49:25PM GMT-0700
    2018-08-08 01:07:04AM GMT-0700
    2018-08-08 01:24:05AM GMT-0700
    2018-08-07 06:41:12PM GMT-0700
    2018-08-08 06:52:36AM GMT-0700

    and a lot more of them, I need to know if there are more than 6 hours from that date until today hour( let's say 08/08/2018 11:00AM), is there anyway to do that with that information "Assigned Date" row.

    Thanks in advance,
    Luis V.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.97 for Mac MS 365
    Posts
    8,701

    Re: Looking for an IF formula which prints YES if more than 6 hours and NO if less than 6

    are your "assigned dates" actual times/dates or are they text?
    if they show up as times/dates then =IF(NOW()-A2>0.25,"YES","NO") should work assuming your assigned dates begin in cell A2.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    07-27-2018
    Location
    Costa Rica
    MS-Off Ver
    MS Office 2016
    Posts
    17

    Re: Looking for an IF formula which prints YES if more than 6 hours and NO if less than 6

    Thank you for your answer, and they are text, so I dont think that formula will work

    Is there a way to convert that to date or maybe another formula ?

    Thank you

  4. #4
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Looking for an IF formula which prints YES if more than 6 hours and NO if less than 6

    Presuming that all your entries are the same length (yyyy-mm-dd hh:mm:ssAM/PM GMT...) then you can pull the parts out as their positions are known and then rebuild them into time/date values.

    Assume you have a time/date like you posted in A2:

    Extract Date from string (format cell with the formula as date) (2 examples, use either or, not both)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Extract time from string (format cell as desired time format with the formula in it) (2 examples, use either or, not both)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can simply add the results of both or combine them into a single formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This should resolve the issue of not having actual date/time values, in which case the previous suggestion should work.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  5. #5
    Registered User
    Join Date
    07-27-2018
    Location
    Costa Rica
    MS-Off Ver
    MS Office 2016
    Posts
    17

    Re: Looking for an IF formula which prints YES if more than 6 hours and NO if less than 6

    It worked perfect!! Thank you very much!!

+ 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. vba Prints FALSE in cell instead of Formula
    By caabdul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2018, 08:57 AM
  2. IF formula which prints YES if function is true.
    By Verbamore in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2014, 03:17 PM
  3. Replies: 1
    Last Post: 10-26-2012, 04:17 AM
  4. formula/function that prints only positve numbers
    By Kara Hoover in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-02-2006, 06:20 PM
  5. [SOLVED] How do write a formula so that only rows with info prints?
    By help in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2006, 12:15 PM
  6. 3 pg excel wrksht,pg 2 prints formula answers,insert pic behind
    By MichelleatLouBachrodt in forum Excel General
    Replies: 1
    Last Post: 04-24-2006, 02:10 PM
  7. a loop formula that filters and prints?
    By scrabtree23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2005, 02:06 AM

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