+ Reply to Thread
Results 1 to 8 of 8

Date/Time with True and False statements attached.

  1. #1
    Registered User
    Join Date
    03-16-2016
    Location
    Michigan
    MS-Off Ver
    2007
    Posts
    4

    Date/Time with True and False statements attached.

    Hello,

    I'm hoping you can help me with this. Let me give you my scenario:

    I have a spreadsheet that has a contract status column, a contract date/time entered into the system column and a customer signed date/time column. The column for the Contract status has many different statuses in it but I'm only concerned with the status of Loaded. What I need to do is create a 4th column that tells me all the contracts with the status of Loaded that were signed within 24 hours of the date/time they entered into the system. I've tried a date formula with an IF statement in front of it and it gave me a date/time however, it was from the year 1900 so I don't think it calculated correctly.

    Any help I can get with this is much appreciated!

    Brian

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Date/Time with True and False statements attached.

    Can you post a SMALL sample file and show us what result you expect?

    A SMALL file will have about 20 rows worth of data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-16-2016
    Location
    Michigan
    MS-Off Ver
    2007
    Posts
    4

    Re: Date/Time with True and False statements attached.

    Ok. I'm trying to post a sample spreadsheet of the data but I'm having issues with the attachment option. It's blank and drag & drop doesn't seem as if it's
    supported. I'll continue to work on getting you a sample so we can discuss what the desired outcome is and you can follow along.

    I appreciate the quick response!

  4. #4
    Registered User
    Join Date
    03-16-2016
    Location
    Michigan
    MS-Off Ver
    2007
    Posts
    4

    Re: Date/Time with True and False statements attached.

    Ok, I didn't look down far enough in the advanced view. I believe I have it attached now. What I'm looking for is this:

    If column A=Loaded, then calculate the date/time difference between columns B&C and output in column D YES if <=24 hours and NO if >24 hours

    That's the desired outcome. Hopefully this makes sense.
    Attached Files Attached Files

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Date/Time with True and False statements attached.

    Try this...

    Entered in D2 and copied down as needed:

    =IF(A2="Loaded",IF(C2<=B2+1,"Yes","No"),"")

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,909

    Re: Date/Time with True and False statements attached.

    Try: =IF(OR(A2<>"Loaded",C2=""),"",IF(C2-B2<=1,"Yes","No"))

  7. #7
    Registered User
    Join Date
    03-16-2016
    Location
    Michigan
    MS-Off Ver
    2007
    Posts
    4

    Re: Date/Time with True and False statements attached.

    Thank you both for the formulas. They both work for what I need. Now to add a pivot table to this column without breaking the formula

    I appreciate the quick responses!

    Brian

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Date/Time with True and False statements attached.

    You're welcome. We appreciate the feedback!

+ 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. Accumulate time when true and when false turn it to zero.
    By pedrohern in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-03-2015, 05:02 AM
  2. Average of ranges marked by TRUE and FALSE statements
    By B_P in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2014, 03:34 PM
  3. [SOLVED] Using IF statements to get Value True or False
    By haleakala17 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2014, 03:03 PM
  4. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  5. [SOLVED] in this TRUE OR FALSE function, i want desired name instead of display true or false
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 06:44 PM
  6. If statements: Non-numerical characters returning false when true
    By JONNY981 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-24-2009, 10:28 AM
  7. True/false statements checking for range
    By krayziez in forum Excel General
    Replies: 5
    Last Post: 05-29-2006, 04:52 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