+ Reply to Thread
Results 1 to 3 of 3

Need help with a date comparison formula - Return text based on result

  1. #1
    Registered User
    Join Date
    06-08-2005
    MS-Off Ver
    Office 2010
    Posts
    37

    Need help with a date comparison formula - Return text based on result

    I am hoping to get some help with a formula I have not been able to master as yet.

    This formula needs compare 2 dates and return text responses based on the result.

    In Col A I have a forecast date
    In Col B I have an actual date

    I need the formula to return "Met" if the actual date falls "within" + or - 7 days from the forecast date. In other words met when the actual falls either 7 days before or 7 days after the forecasted date.

    If the actual date is greater than 7 days before the forecast date I need it to return "Exceed"

    If the actual date is Greater than 7 days later than the forecast date I need it to return "Miss"

    I hope this makes sense. Thank you very much.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need help with a date comparison formula - Return text based on result

    Try..

    =IF(ABS(A2-B2)<=7,"Met",IF(B2<A2,"Exceed",IF(B2>A2,"Miss","")))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Need help with a date comparison formula - Return text based on result

    Use following function B2 is "Actual Date" & A2 is "Forecast Date"

    Please Login or Register  to view this content.
    Please consider adding a * if I helped

+ 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. Conditional Formula based on date comparison
    By pukks in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 09:12 AM
  2. Comparison of two sheets. Result needs to return value of a 3rd column.
    By GeorgeErnst in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2012, 12:54 PM
  3. Replies: 15
    Last Post: 09-22-2011, 08:14 AM
  4. [SOLVED] Return a text string when the result of VLOOKUP formula is #N/A
    By jeremy nickels in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-04-2006, 12:30 PM
  5. Formula to return numerical, text result?
    By burgeon in forum Excel General
    Replies: 4
    Last Post: 02-02-2006, 12:55 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