+ Reply to Thread
Results 1 to 6 of 6

more than 7 nested IF conditions?

  1. #1
    Registered User
    Join Date
    05-28-2006
    Posts
    60

    more than 7 nested IF conditions?

    am i able to use more than 7 if conditions in one input? if not, is there another way i can do it THAT IS SIMPLE? What's the simpliest way I can do if conditions that's passed 7?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Usually there are simpler, more efficient methods than multiple IFs or nested IFs. You can work round the limit of 7 but it's normally easier to use some sort of LOOKUP, VLOOKUP or even CHOOSE function.

    Can you give a little more detail?

  3. #3
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    I aree with DLL that there's normally a better way but, if you have to go down this route, then look at Chip Pearson's site

    http://www.cpearson.com/excel/nested.htm
    Ed
    _____________________________
    Always learning, but never enough!
    _____________________________

  4. #4
    Registered User
    Join Date
    05-28-2006
    Posts
    60
    well if i do a vlookup i get "#n/a" if the value isn't found. Is there a way I can have it as blank if there's no value? for IF conditions, I am able to set any false as "" which is blank.

  5. #5
    Registered User
    Join Date
    05-21-2008
    Posts
    24
    You can use the conjugated method of joining IF statments to pass the seven max. Example:

    =IF(A1=1,"A is 1","")&IF(A1=2,"A is 2","")&... You can go as many as you want this way.

    Remember the max characters you can have on one line is 1024 so if you are doing a lot of IF statments you may surpass that limit, which means you will have to either use a macro or VLOOKUP().

    For the VLOOKUP() error you could probably setup a =IF(ISERROR(VLOOKUP(...)=TRUE),"", "Otherwise, display the result here.")
    Last edited by Tracer123; 06-19-2008 at 01:59 PM.

  6. #6
    Registered User
    Join Date
    05-28-2006
    Posts
    60
    ok i think that will work. i'll try it out.

+ 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