+ Reply to Thread
Results 1 to 4 of 4

Formula to TEXTJOIN if column contains the same values

  1. #1
    Registered User
    Join Date
    02-15-2015
    Location
    Bolton, England
    MS-Off Ver
    Office 365
    Posts
    20

    Formula to TEXTJOIN if column contains the same values

    Hi Everyone

    I really need help on a formula please.

    In the attached sheet, columns A-C show data we receive about train services failing to stop at certain stations.

    The list represents these, where:
    • If Column B is > 0, then a train has failed to stop at the station named in Column C.
    • Each station where a service has failed to stop is recorded on separate rows.

    If the value in Column B=0 for any of these stations, these are not stations where the train has failed to stop, so can be ignored.

    As an example, service MAN1 failed to stop at DEIGHTON, MIRFIELD, MORLEY, BATLEY, DEWSBURY, COTINGLEY, RAVENTHPE, and CLE4 failed to stop at MANCROXRD, MANCR VIC. As the listed stations for SHF6 have a value of 0 in Column B, these can be ignored.

    Basically, I need two formulas that:

    1) List each train service individually
    2) TEXTJOIN all the stations that that train service has failed to stop at, crucially providing that the value in Column B for that station is >0.

    The desired output is shown in Columns F-G.

    Any help greatly appreciated (but please, no macros).

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,441

    Re: Formula to TEXTJOIN if column contains the same values

    with textjoin
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    too quick, add $-characters
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by bsalv; 12-26-2021 at 10:01 PM.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    02-15-2015
    Location
    Bolton, England
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Formula to TEXTJOIN if column contains the same values

    Quote Originally Posted by bsalv View Post
    with textjoin
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    too quick, add $-characters
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    @bsalv

    Thank you so much, that worked like a charm!

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,920

    Re: Formula to TEXTJOIN if column contains the same values

    Cell F4 formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell G4 formula , drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. [SOLVED] formula to extract, count then textjoin
    By aan.isnaini in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 12-08-2021, 03:15 PM
  2. [SOLVED] TEXTJOIN in a Spill Array Formula
    By DJunqueira in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-12-2021, 02:33 PM
  3. [SOLVED] TEXTJOIN - getting 1 occurrence of duplicate values only
    By aTRc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2019, 03:36 AM
  4. [SOLVED] textjoin on unique values
    By richx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2019, 09:47 AM
  5. Arrayfunction TEXTJOIN only receive unique values
    By Nora Kro in forum Excel General
    Replies: 2
    Last Post: 08-21-2018, 11:21 PM
  6. [SOLVED] How can I modify my array TEXTJOIN formula to output only unique values
    By Victorjo in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-06-2018, 01:50 AM
  7. [SOLVED] TextJoin formula with MID function
    By Brsth in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-26-2018, 11:00 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