Results 1 to 4 of 4

Thread: Formula to compare two dates in Excel

  1. #1
    Join Date
    Dec 2008
    Posts
    52

    Formula to compare two dates in Excel

    Hello,

    Here, I am a Noob in office, and yet I would like you help me a little in writing a formula that allows me to do this: I have a table in excel ,I would like create a formula that allows me to compare two dates ,in my table there is a list of patients (A) and the dates of their last visit (B) , I want to compare the date of their last visit date with todays date , so that I could send mail only to those who did not came for 3 months , can you help me in writing the formula , Thank you for your answer ,.

  2. #2
    Join Date
    May 2008
    Posts
    4,345

    Re: Formula to compare two dates in Excel

    You can check this Formula to compare two dates in Excel , it might work for you

    =if(A1>B1,"Greater","Less")

    or

    =if(A1>B1,"TRUE","FALSE")

  3. #3
    Join Date
    Apr 2008
    Posts
    2,139

    Re: Formula to compare two dates in Excel

    I propose the formula

    C2 = IF(TODAY()-B2>90, 1, 0)

    90 days = 3 months , You need to copy the formula as it is paste in the office excdel

    Best regards

  4. #4
    Join Date
    Apr 2008
    Posts
    4,088

    Re: Formula to compare two dates in Excel

    The simplest (and "better") is to put your reference date in a cell and use its coordinates

    To find the number of days between now and a date sometime in the future, use the following formula

    ="mm/dd/yy"-TODAY()

    where "mm/dd/yy" is the future date. Use the General format to format the cell that contains the formula.

    maybe somebody can modify these to find a difference between these date

Similar Threads

  1. How to Calculate Expiration Dates in Excel
    By Kungfu Pandey in forum Windows Software
    Replies: 1
    Last Post: 07-01-2012, 04:22 PM
  2. importing dates from ms excel into ms project
    By tazor in forum Microsoft Project
    Replies: 2
    Last Post: 14-12-2011, 10:20 PM
  3. Import from Excel - dates changed
    By niravrph in forum Microsoft Project
    Replies: 4
    Last Post: 19-04-2011, 08:01 PM
  4. Checking dates in Excel
    By microam_i in forum Windows Software
    Replies: 3
    Last Post: 02-05-2009, 10:15 PM
  5. How to calculate two dates in Excel
    By Ektaa in forum Windows Software
    Replies: 5
    Last Post: 03-03-2009, 05:50 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
  •  
Page generated in 1,713,301,992.77680 seconds with 16 queries