+ Reply to Thread
Results 1 to 4 of 4

nested functions in an "IF" statement

  1. #1
    Registered User
    Join Date
    03-27-2008
    Location
    USA
    Posts
    23

    nested functions in an "IF" statement

    I am trying to get around this long formula by using defined names and defined formulas but I am not writing the formula correctly. I tried the lookup function and ran into problems with that. How exactly do you use lookup in this situation (or defined formulas if that is better):
    =IF(A1>=4,IF(B1>=9,IF(C1>=8,IF(D1>=7,IF(E1>=1,IF(F1>=16,IF(G1>=9,IF(H1>=67,IF(I1>=8,IF(J1>=98,.2,0),0),0),0),0),0),0),0),0),0)
    I want the value .2 returned if all arguments are met. The values for A1,B1, will change depending on the situation. thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    I thought there was a limit of 7 IF() functions in Excel so I'm surprised this is working. Are you using XL 2007 and has this limitation been removed perhaps. The formula you have would perhaps be better written as

    Please Login or Register  to view this content.
    Lookups are used where you have a single value that you want to find in a table, and return a corresponding value from another column (VLOOKUP), or row (HLOOKUP) in the same table. I don't think this applies in your case.

    HTH

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Think you can do 8 if's that way as walkenbach demonstrates
    http://www.j-walk.com/ss/excel/usertips/tip080.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    03-27-2008
    Location
    USA
    Posts
    23

    nested formulas in an "IF" statement

    =if(and(b1>=6,c1>=9,d1>=8,e1>=1,f1>=5,g1>=22,h1>=22,i1>=24,j1>=12,k1>=4),0.2,0) Works! Thanks

+ 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