+ Reply to Thread
Results 1 to 4 of 4

Problem with a long formula

  1. #1
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    185

    Problem with a long formula

    I have this workingformula

    =IF(F26="Equity",0,IF(AND(L26=1,raw!AB3>Stated_Maturity,NOPCB!J26>(0.05*NOPCB)),MIN(raw!EC3,NOPCB!J26),IF(O26=1,0,IF(S26="Writedown",J26-R26,IF(G26="Negatively Amortizing RMBS",H26,J26)))))

    and I have another working formula

    =IF(AND(S25="Defaulted",OR(msmt_date-NOPCB!N25>1095,AND(msmt_date-NOPCB!N25>365,NOPCB!J25>(0.05*NOPCB)))),0,IF(F25="Equity",0,IF(AND(L25=1,raw!AB2>Stated_Maturity,NOPCB!J25>(0.05*NOPCB)),MIN(raw!EC2,NOPCB!J25),IF(O25=1,0,IF(S25="Writedown",J25-R25,IF(G25="Negatively Amortizing RMBS",H25,J25))))))

    But when I add the first formula to the end of second formula I get an error highlighting AND in AND(S25="De....

    =IF(F26="Equity",0,IF(AND(L26=1,raw!AB3>Stated_Maturity,NOPCB!J26>(0.05*NOPCB)),MIN(raw!EC3,NOPCB!J26),IF(O26=1,0,IF(S26="Writedown",J26-R26,IF(G26="Negatively Amortizing RMBS",H26,IF(AND(S25="Defaulted",OR(msmt_date-NOPCB!N25>1095,AND(msmt_date-NOPCB!N25>365,NOPCB!J25>(0.05*NOPCB)))),0,J26))))))


    Am I breaking some limit in excel? Please help.

    Thank you,
    Jay

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Take a look here - to many IF's

    http://www.cpearson.com/excel/nested.htm
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    185

    only 6 IFs in formula

    But I have only 6 IFs in the formula....

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    It's not how many IF's, it's how many nested Functions....

    Excel allows up to 7 nested functions....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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