+ Reply to Thread
Results 1 to 4 of 4

Compare 2 columns to find max date, then compare to 3rd column to find True or False

  1. #1
    Registered User
    Join Date
    02-06-2020
    Location
    South Texas
    MS-Off Ver
    64-bit Office 365
    Posts
    2

    Compare 2 columns to find max date, then compare to 3rd column to find True or False

    Hi All,

    So I have 3 columns that could have dates, Column Q is my completed date this is what I need to compare the other columns to. Column M and Column P have estimated time of completion dates, and column P may be blank.

    Essentially what I need this statement to say is:
    If P1 = "",
    Then Q1 <= M1, "0", "1"

    If P1 <> "",
    Then Q1 <= P1, "0", "1"

    Thank you in advance for any help!!!!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,240

    Re: Compare 2 columns to find max date, then compare to 3rd column to find True or False

    Try this:

    =IF(P1="",IF(Q1<=M1,0,1),IF(Q1<=P1,0,1))

    You can put the quotes around the 0 and 1 if you want them returned as text values.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-06-2020
    Location
    South Texas
    MS-Off Ver
    64-bit Office 365
    Posts
    2

    Re: Compare 2 columns to find max date, then compare to 3rd column to find True or False

    Thanks Pete. What if I need to add in a piece to say if Column M contains the word "Closed"??

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,240

    Re: Compare 2 columns to find max date, then compare to 3rd column to find True or False

    What do you want to happen if it does contain "Closed" ?

    Pete

+ 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] Compare a column with different columns and find the most similar column to it
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-18-2020, 09:50 PM
  2. Replies: 3
    Last Post: 06-20-2019, 12:28 PM
  3. Replies: 11
    Last Post: 02-18-2018, 09:26 AM
  4. Replies: 11
    Last Post: 01-19-2018, 05:43 AM
  5. Compare dates and return true or false
    By Burt_100 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2014, 04:00 PM
  6. Replies: 6
    Last Post: 11-13-2014, 11:26 AM
  7. Compare two excel files and display true or false
    By sravanthi009 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-01-2011, 11:36 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