+ Reply to Thread
Results 1 to 2 of 2

If Match then return TEXTJOIN

  1. #1
    Registered User
    Join Date
    04-11-2016
    Location
    London, England
    MS-Off Ver
    10
    Posts
    13

    Unhappy If Match then return TEXTJOIN

    Hi all,

    I have a list of dates which have a specific code against, - I want to include all codes which relate to one week in one cell?
    Attached is something to help explain a little easier!

    Is there anything you could suggest as I have thousands of lines to go through!

    Many thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,998

    Re: If Match then return TEXTJOIN

    You'll need VBA for that. Paste this code into a module and save as Macro enabled.

    Please Login or Register  to view this content.
    The formula needed is then:

    =concatall(IF($C$2:$C$19=C2,$A$2:$A$19,"")," ")

    where the last " " defines the spacer between each answer: in your case, a single space. This is an array formula.

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work... Remember to enable macros when you open the attached file.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Removing duplicates from a TEXTJOIN
    By CKPHarry in forum Excel General
    Replies: 5
    Last Post: 01-02-2020, 05:57 PM
  2. TEXTJOIN function
    By Tony Valko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2016, 06:48 PM
  3. Replies: 6
    Last Post: 09-03-2015, 09:51 PM
  4. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  5. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  6. [SOLVED] Two Excel sheets trying to match text data and return the match from the second column!
    By bankcott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 02:17 PM
  7. Replies: 2
    Last Post: 11-12-2012, 06:26 AM

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