+ Reply to Thread
Results 1 to 5 of 5

Concatenateifs

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    12

    Concatenateifs

    Hello I'm looking for a function that can return me a list of strings matching specific criteria s. Anyone knows how to do it? I prefer not to use vba but if we have simple code for it I'll take it

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,730

    Re: Concatenateifs

    Tigeravater posted a UDF to give multiple concatenation here:

    http://www.excelforum.com/tips-and-t...geravatar.html

    It can also be used for conditional concatenation, as some of the examples in succeeding posts demonstrate.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Concatenateifs

    Quote Originally Posted by ZmeY View Post
    Hello I'm looking for a function that can return me a list of strings matching specific criteria s. Anyone knows how to do it?
    Can you offer an example?

    Perhaps something like the following:

    =TRIM(IF(A1=B1," hi","") & IF(C1=D1," world", ""))

    It results in "hi", "world" or "hi world". The key is the leading space before each option, using TRIM to removing the leading space.

  4. #4
    Registered User
    Join Date
    01-04-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Concatenateifs

    Hello I am basically trying to pull data out of the array for specific critiria and if it finds it more then once to concantanate it Here is the example below. So for 2 it would return C,B and for 1 or 3 it would return a or d

    Data Expected Output Example of Formula Output
    1 a 1 Concantatnateif(E7=$A$6:$A$10,$B$6:$B$10) a
    2 c 2 Concantatnateif(E8=$A$6:$A$10,$B$6:$B$10) c,b
    3 d 3 Concantatnateif(E8=$A$6:$A$10,$B$6:$B$10) d
    4 e
    2 b

    Thank you

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

    Re: Concatenateifs

    There is no native excel worksheet function that will concatenate an array. You either have to concatenate IF functions as per joeu2004's suggestion (which might be impractical for large ranges) or use VBA
    Audere est facere

+ 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