+ Reply to Thread
Results 1 to 6 of 6

Nested if sums

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    Nested if sums

    Hi all, i should know this but i'm having a mare..

    what i need to do is show the following

    If the date in A4 is the same as the date in A1 i need it to say Due today
    If the date in A4 is 5 days or more before the date in A1 i need it to say due
    If the date in A4 is 3 day before the date in A1 i need it to say Due soon
    If the date in A4 is after the date in A1 i need it to say late

    Thnak you
    Attached Files Attached Files

  2. #2
    Forum Contributor meyero90's Avatar
    Join Date
    03-24-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Nested if sums

    try this
    =IF($A$4=A1,"Due Today",IF($A$4>=A1+5,"Due",IF($A$4<=A1-3,"Due Soon",IF($A$4>A1,"Late"))))
    hope this helps
    If I helped, Don't forget to add to my reputation (click on the little scale)
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)

  3. #3
    Forum Contributor meyero90's Avatar
    Join Date
    03-24-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Nested if sums

    Apologies here's the correct answer
    =IF(A4=$A$1,"Due Today",IF(A4>=$A$1+5,"Due",IF(A4<=$A$1-3,"Due Soon",IF(A4>$A$1,"Late"))))

  4. #4
    Forum Contributor meyero90's Avatar
    Join Date
    03-24-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Nested if sums

    Correct answer is in post #3

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Nested if sums

    meyero90 - I don't think that returns the correct results.

    Another alternative perhaps:

    =LOOKUP(A4-A$1,{-9.99E+307,-3,0,1},{"Due","Due soon","Due Today","Late"})

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Nested if sums

    Not so elegant but perhaps a bit more informative
    [
    Please Login or Register  to view this content.

    ROUNDDOWN is used in case A4 =Now()

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

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