Results 1 to 4 of 4

Compare two dates and possibly third if it exists to confirm <30 days

Threaded View

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Compare two dates and possibly third if it exists to confirm <30 days

    Hello. I've been trying to figure out a formula to compare three dates, when at times all three are not always present.

    #1 - initial
    #2 - secondary
    #3 - final

    There is always an initial and a final and the number of days between needs to be 30 or less. If there is a secondary date present, then the calculation needs to work from the final to the secondary to determine if the number of days is 30 or less. If there isn't a secondary date present that field will contain "N/A".

    I've added extra columns and did summary calculations
    final - initial = D3
    final - secondary = E3

    and then wrote the below, but that doesn't include situations when the secondary doesn't exist. It also adds extra columns to the spreadsheet which is undesirable.

    =IF(D3>E3,IF(E3>30,"Late","ok"))
    Attached Files Attached Files
    Last edited by llamb; 02-02-2012 at 12:51 PM. Reason: (I was just told the secondary date field doesn't contain a date it will contain text "N/A")

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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