+ Reply to Thread
Results 1 to 3 of 3

Nested Functions Limits

  1. #1
    Registered User
    Join Date
    11-08-2008
    Location
    Stoughton, MA
    Posts
    18

    Nested Functions Limits

    I have the following formula in a cell:

    Please Login or Register  to view this content.
    I actually wanted to have one more IF(AND(... condition whre you see the "5" at the end. Unfortunately I read that you can have up to 7 nested functions. Is there a way around this?

    What I'm actually trying to do is check to see if a particular value is between two adjacent numbers, as in the colunmn below. For example if the value I'm checking in cell M20 is 0.35, then print a "1", if the value is 0.27 then print a "2". The reason I have so many IF statements is to cover the fact that the column of numbers may be in ascending order or descending order.

    0.3995 in B7
    0.3356 in B8
    0.2573 in B9
    0.1531 in B10
    0.0698 in B11
    0.0243 in B12
    Last edited by VBA Noob; 02-09-2009 at 04:09 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Nested Functions Limits

    one way is to replace 5 with a cell reference and stick the final "if" in that cell

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Nested Functions Limits

    if you add your resulting values in adjacent cells..
    ie.

    0.3995 1
    0.3356 2
    0.2573 3
    0.1531 4
    0.0698 5
    0.0243 6
    then you can use formula:

    =INDEX($C$7:$C$12,MATCH(M20,$B$7:$B$12,-1))

    where C7 to C12 contain the result values you want.
    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