+ Reply to Thread
Results 1 to 6 of 6

Multiple IF statement with CONCATENATE

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

    Question Multiple IF statement with CONCATENATE

    I cant use this formula. excel gives an error that my statement is too long, what are my other options?

    =IF(AND(F2="100000000000000",E2="02"),CONCATENATE("63",B2,C2),"",IF(AND(F2="010000000000000",E3="06"),CONCATENATE("63",B3,C3),""))

    this is just 2 statements and i am having an error, i thought if i could make 15 statements? I need to CONCATENATE 7 cells (the example above is just 3 cells) based on certain condition. How can i do it? Anyone please? Thanks in advance.

    Like this:
    >B2=11111111
    >B3=22222222
    >C2=3
    >C3=4
    >F2 is from 000000000000000 ... 000010000000000 to 000000000000001 ("1" is moving from left to right)
    >IF F2=”100000000000000” -> output is “63111111113”
    >IF F2=”010000000000000” -> output is “63222222224”
    > I should do this 15 times
    Last edited by dadm20; 04-18-2007 at 07:37 AM.

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

    Please Login or Register  to view this content.
    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.

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

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


    Please Login or Register  to view this content.
    can i make it up to 15 "IF" statements?

  4. #4
    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

  5. #5
    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:


    Please Login or Register  to view this content.
    can i make it up to 15 "IF" statements?
    Try this instead....
    Please Login or Register  to view this content.

  6. #6
    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