+ Reply to Thread
Results 1 to 3 of 3

nested conditional formulas

Hybrid View

  1. #1
    Registered User
    Join Date
    04-04-2007
    Posts
    3

    nested conditional formulas

    I cannot seem to find the correct way to right my formula because of the 7 argument limit in "if" statements. I think I have a way around it but am not sure how to write it. I have 15 possible conditions and want 1 of 4 results. If I say
    =if(g2="bend cell #1",or,"bend cell #2",or,"bend cell #3",or,"cold end #1",or"cold end #2",or,"cold end #3","uap1",if(g2="converter",or,"hot end #1 / underfloor",or,"hot end #2 / toeboard",or,"hot end diesel",or,"maniverter",or,"muffler cell #1","uap 2"))
    I also have cells that belong to uap 3 and uap4. Am I using the "or" function properly?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524
    Hi,
    Could you zip an example workbook and attach it to your next post so that we could understand it better....

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    To use the IF(OR..) format, it looks like this might work for you:

    =IF(OR(G2="bend cell #1", G2="bend cell #2", G2 ="bend cell #3", G2="cold end #1", G2="cold end #2", G2="cold end #3"),"uap1",IF(OR(G2="convertor", G2="hot end #1 / underfloor", G2="hot end #2 / toeboard", G2="hot end diesel", G2="maniverter", G2="muffler cell #1"),"uap2",IF(OR(G2="a", G2="b", G2="c", G2="d", G2="e", G2="f"),"uap3","uap4")))
    Replace the "a", "b", etc. in the third condition with your values that you want to result in "uap3". If none of the first three conditions are met (uap1, uap2 or uap3), the formula will result in uap4.

+ 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