+ Reply to Thread
Results 1 to 17 of 17

Nesting multiple IF formulas

Hybrid View

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Nesting multiple IF formulas

    In my spreadsheet I need to do the following:

    1. If the lease end date is greater than today's date then the result will be CURRENT in the last column. If the lease end date is less than today's date then the end result will be EXPIRED. This is part 1 and my formula works fine.... =IF(M410>$P$1,"CURRENT","EXPIRED")

    2. Part 2 is what I'm not sure about.... There are some that need to have a final result of OWNED, RENTED or RENTAL/FLEX FLEET. The rows with these choices have blank lease end dates. How do I make it look at the Leased/Owned column (which has the choices leased, owned, rented or rental/flex fleet) first to determine if it should then look at the Lease End Date column to determine if the result shoudl be CURRENT or EXPIRED?

    Last edited by tiffany04530; 09-14-2012 at 10:52 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Nesting multiple IF formulas

    Try
    =IF(M410="","OWNED",IF(M410>$P$1,"CURRENT","EXPIRED"))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Nesting multiple IF formulas

    Maybe

    =IF(LEN(M410)=0,"OWNED",IF(M410 > $P$1,"CURRENT","EXPIRED"))
    HTH
    Regards, Jeff

  4. #4
    Forum Contributor
    Join Date
    08-20-2012
    Location
    Walsall,England
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Nesting multiple IF formulas

    Try:

    =IF(M410="","OWNED",IF(M410>$P$1,"CURRENT","EXPIRED"))

    does that do the trick?

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Nesting multiple IF formulas

    Hi tiffany04530

    =IF(M410>$P$1,"CURRENT",IF(M410<$P$1,"EXPIRED",IF(M410="","OWNED")))

  6. #6
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Nesting multiple IF formulas

    I edited my question (sorry) so would the same responses apply?

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Nesting multiple IF formulas

    Maybe change "OWNED" to the cell with contains the choices

    =IF(LEN(M410)=0,A1,IF(M410 > $P$1,"CURRENT","EXPIRED"))

  8. #8
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Nesting multiple IF formulas

    That didn't work either. Okay....so here is what I have to work with:
    Column O=Leased, Owned, Rented, Rental/Flex Fleet
    Column M=Lease End Date
    Column P=Current, Expired, Owned, Rental or Rental/Flex Fleet

    I need to first look at Column O to determine what the equipment is. If Owned, Rented or Rental/Flex Fleet I need Column P to say Owned, Rented or Rental/Flex Fleet. If it is Leased then I need it to look at Column M to see if the date is already passed or if it is a future date. If it is in the past then Column P needs to say Expired. If it is a future date then Column P needs to say Current. This formula DOES work =IF(M410>$P$1,"CURRENT","EXPIRED") so I just need to know how to incorporate the rest. ($P$1 is the cell with my current date.)



    Does this help?
    Last edited by tiffany04530; 09-14-2012 at 11:18 AM.

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Nesting multiple IF formulas

    It would help better to see a mocked up workbook with the results you desire.

    In this sample about 5 rows would be good with the results and then we can work in the formula from there.

  10. #10
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Nesting multiple IF formulas

    I've attached a sample (I think).
    Attached Files Attached Files

  11. #11
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Nesting multiple IF formulas

    Hi

    Not sure I have this correct!

    Formula: copy to clipboard
    =IF(AND(O3="Leased",M3<$P$1),"EXPIRED",IF(AND(O3="Leased",M3>$P$1),"CURRENT",O3))

  12. #12
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Nesting multiple IF formulas

    What about...

    =IF(OR(O3={"Owned","Rental","Rental/Flex Fleet"}),O3,IF(AND(O3="Leased",M3>$P$1),"CURRENT","EXPIRED"))

  13. #13
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Nesting multiple IF formulas

    WAIT!!!!!!!!!!!!! I copied it into my sample and it worked. But when I copied it into my real one it didn't.

  14. #14
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Nesting multiple IF formulas

    Lol...Nevermind. I'm good now. Thanks again.

  15. #15
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Nesting multiple IF formulas

    WOOHOOOOO!!!!! That did it! Thanks for all your help! Have a GREAT weekend!!!!!!!!!

  16. #16
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Nesting multiple IF formulas

    Remember to mark your thread SOLVED and click the star at the bottom left of the person/persons who solved it for you, have a good weekend.

  17. #17
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Nesting multiple IF formulas

    Ensure when you copy it into your workbook that you adjust the cell that are being referenced.

+ 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