+ Reply to Thread
Results 1 to 10 of 10

Why is this formula returning a FALSE result? It should return the value in B13

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    9

    Why is this formula returning a FALSE result? It should return the value in B13

    =iferror(if(b13="",or(c13="","",if(b13<>""=b13,if(c13<>"",c13,mconcat(b13:c13,";"))))),"")

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Why is this formula returning a FALSE result? It should return the value in B13

    1. you have an un-needed "" in the formula (see reed highlight)
    2. your 2nd if() statement is wrong (green highlight)
    3. unless you have an add-in or are using 2010, 2007 has no mconcat()

    apart from that, without seeing the data that you formula is referencing, its hard to say why you are getting a FALSE answer. fix the above 1st and let me know is that solves your problem?

    =iferror(if(b13="",or(c13="","",if(b13<>""=b13,if(c13<>"",c13,mconcat(b13:c13,";"))))),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Why is this formula returning a FALSE result? It should return the value in B13

    Is this what you want instead?

    =IF(B13<>"",IF(C13="",B13,CONCATENATE(B13&";"&C13)),IF(C13="","",C13))

  4. #4
    Registered User
    Join Date
    10-19-2012
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Why is this formula returning a FALSE result? It should return the value in B13

    I downloaded the add-in for the MCONCAT and other functions. It works. I removed the ,"" and still get the same FALSE result. The data that the formula is referencing is just text (although that text is derived from a VLOOKUP). The result in B13 is "Teeofftimes UK" and the result in C13 is "". The result should show "Teeofftimes UK" instead is shows FALSE.

    Thanks!

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Why is this formula returning a FALSE result? It should return the value in B13

    Try this formula

    =B13&IF(COUNTA(B13,C13)=2,";","")&C13
    Audere est facere

  6. #6
    Registered User
    Join Date
    10-19-2012
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Why is this formula returning a FALSE result? It should return the value in B13

    Thank you but that doesn't solve the issue. What I am trying to do is to eliminate the separator ";" in all cases except where there are values in both B13 and C13. This is returning the same result as if I would use MCONCAT(B13:C13,";")

    b13 c13 d13
    ;
    Teeofftimes UK Onlineteetimes Teeofftimes UK;Onlineteetimes
    Teeofftimes UK Teeofftimes UK;

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Why is this formula returning a FALSE result? It should return the value in B13

    upload a sample workbook please

  8. #8
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Why is this formula returning a FALSE result? It should return the value in B13

    Can you use this?

    =IF(B13<>"",IF(C13="",B13,MCONCAT(B13:C13,";")),IF(C13="","",C13))

  9. #9
    Registered User
    Join Date
    10-19-2012
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    9

    Thumbs up Re: Why is this formula returning a FALSE result? It should return the value in B13

    You are genius![solved]

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Why is this formula returning a FALSE result? It should return the value in B13

    @ golfpromal

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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