+ Reply to Thread
Results 1 to 4 of 4

Overcome Nested IF formula limit

  1. #1
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Overcome Nested IF formula limit

    Hello,

    I have left my brain at home today :\

    Could someone please advise on how I would achieve this:

    I have 10 columns C2:L2

    I want to check all of the columns and check if any of the values in these columns are not equal to #N/A or '0'

    If any of the 10 columns contain values other than the #N/A or 0 then put the relevant TRUE / FALSE in column M.
    I tried:

    Please Login or Register  to view this content.
    but I forgot the nested IF limit is 7



    Can anyone help me please?


    Thanks in Advance.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Overcome Nested IF formula limit

    So, if there is one or more number greater than 0 in the range C1 to L2, put a TRUE into M2?

    =IF(COUNTIF(C2:L2,">0"),TRUE)

    N/A is not >0, so if all values are N/A values, you'll see FALSE in M2. Likewise, if all values are zeros.

    cheers,

  3. #3
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Re: Overcome Nested IF formula limit

    Thankyou for that SHORT version!


    Basically,

    I have an account number in A2

    Column C to L are the REP Managerss for the accounts.


    the managers have indicated in these columns whether the account is to be included in another report.

    column C manager has put "NO" next the accounts he dont want included.
    column D manager has also put "NO" next to the accounts he dont want included.
    column E manager has put "DO NOT INCLUDE" next to the accounts.

    there is no consistency!!

    thats why I chose to use >0 as the search filter.

    I have VLOOKUP from 10 spreadsheets into these columns. Copy & paste special, then in column M, have a 1 or a 0 if any of the cells contain anything other than #N/A or 0


    your formula worked for me!

    although I had already done it using this extremley long one:

    Please Login or Register  to view this content.

    Thankyou for your help!

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Overcome Nested IF formula limit

    I take it each account will only be tagged by one manager?

    In order to get data consistency, you could have a data validation list with just Yes and No as the options.

    Then use a formula like

    =IF(COUNTIF(C2:L2,"no"),FALSE,TRUE)

    With the formula in the previous post, any text would be counted, so even if they entered a "yes" the countif with >0 would count that as true.

+ 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