+ Reply to Thread
Results 1 to 6 of 6

Multiple IF statement with CONCATENATE

Hybrid View

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

    =IF(AND(F2="100000000000000",E2="02"),"63"&B2&C2,IF(AND(F2="010000000000000",E3="06" ),"63"&B3&C3,""))
    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.

  2. #2
    Registered User
    Join Date
    04-17-2007
    Posts
    10
    thank you.

    but what if i have 9 "IF" statements? like:


    =IF(AND(X2="100000000000000",E2="01"),"63"&B2&C2,"",IF(AND(X2="010000000000000",E3="02"),"63"&B3&C3,"",IF(AND(X2="001000000000000",E3="03"),"63"&B4&C4,"",IF(AND(X2="000100000000000",E3="04"),"63"&B5&C5,"",IF(AND(X2="000010000000000",E3="05"),"63"&B6&C6,"",IF(AND(X2="000001000000000",E3="06"),"63"&B7&C7,"",IF(AND(X2="000000100000000",E3="07"),"63"&B8&C8,"",IF(AND(X2="000000010000000",E3="08"),"63"&B9&C9,"",IF(AND(X2="000000001000000",E3="09"),"63"&B10&C10,""))
    can i make it up to 15 "IF" statements?

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    You can't nets more than 7 IF's, but you can name formulas, which will allow you to beat the limitation
    http://cpearson.com/excel/nested.htm

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by dadm20
    thank you.

    but what if i have 9 "IF" statements? like:


    =IF(AND(X2="100000000000000",E2="01"),"63"&B2&C2,"",IF(AND(X2="010000000000000",E3="02"),"63"&B3&C3,"",IF(AND(X2="001000000000000",E3="03"),"63"&B4&C4,"",IF(AND(X2="000100000000000",E3="04"),"63"&B5&C5,"",IF(AND(X2="000010000000000",E3="05"),"63"&B6&C6,"",IF(AND(X2="000001000000000",E3="06"),"63"&B7&C7,"",IF(AND(X2="000000100000000",E3="07"),"63"&B8&C8,"",IF(AND(X2="000000010000000",E3="08"),"63"&B9&C9,"",IF(AND(X2="000000001000000",E3="09"),"63"&B10&C10,""))
    can i make it up to 15 "IF" statements?
    Try this instead....
    =IF(FIND("1",X2)=INDIRECT("E"&FIND("1",X2)+1)+0,"63"&INDIRECT("B"&FIND("1",X2)+1)&INDIRECT("C"&FIND("1",X2)+1),"")

  5. #5
    Registered User
    Join Date
    04-17-2007
    Posts
    10

    Thumbs up Thanks a lot :)

    Thanks a lot guys, i really appreciate all your effort.

+ 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