+ Reply to Thread
Results 1 to 11 of 11

Textjoin Alternative

  1. #1
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Textjoin Alternative

    Hi All.
    This is in reference to https://www.excelforum.com/excel-gen...f-payment.html
    posted by Shan54321, where solution given is for the newer excel versions.
    For this formula,
    =IF(G7="","",TEXTJOIN("/",TRUE,IF(FREQUENCY(IF(G7=$B$7:$B$11,MATCH($C$7:$C$11,$C$7:$C$11,0)),ROW($B$7:$B$11)-MIN(ROW($B$7:$B$11))+1),$C$7:$C$11,"")))
    What will be the 2007 equivalent?
    Thanks.

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Textjoin Alternative

    could you show example of your file. Without it the alternatives are: additional helper column, VBA , PowerQuery

    also the trick can be used
    Please Login or Register  to view this content.
    Last edited by AliGW; 04-05-2020 at 02:20 AM. Reason: Typo corrected.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Textjoin Alternative

    Please try I7

    =MID(IF(COUNTIFS($B7:$B11,G7,C$7:C$11,"Cash"),"/Cash","")&IF(COUNTIFS($B$7:$B$11,G7,$C$7:$C$11,"Credit Card"),"/Credit_Card","")&IF(COUNTIFS(B$7:B$11,G7,C$7:C$11,"Cheque"),"/Cheque",""),2,30)

  4. #4
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Textjoin Alternative

    Hi.
    BMV, thanks for the help but excel indicate error in the formula.
    Bo_Ry thanks also for the help. your formula works. I think this part was overlooked =MID(IF(COUNTIFS($B7:$B11, I've changed it to $B$7:$B$11.
    Quick question, should I change the "mode" part into another data input, and its more than 3 (cash/cheque/cd), say 6, i have to copy the countif 6 times and so what will be the end of the formula ,(for the 2,30)?
    Thanks

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Textjoin Alternative

    Change 30 to 300 or a maximum length of all 6 modes.

    But if you have more like 20 modes, copy 20 countif is not fun
    Try with helper column
    E7
    =SUBSTITUTE(IFERROR(C7&"/"&VLOOKUP(B7,B8:E11,4,),C7),"/"&C7,)

    J7
    =VLOOKUP(G7,$B$7:$E$12,4,0)
    Attached Files Attached Files

  6. #6
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Textjoin Alternative

    excel indicate error in the formula
    Separator ; should be changed to ,
    However once again. Your file is your file and there could be options.

  7. #7
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Textjoin Alternative

    BMV
    I'm open to other solution. Is this what you meant?
    =REPLACE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE("/Cash/Credit Card/Cheque","/Cash","",1+COUNTIFS($B$7:$B$11,G7,$C$7:$C$11,"Cash")),"/Credit Card","",1+COUNTIFS($B$7:$B$11,G7,$C$7:$C$11,"Credit Card")),"/Cheque","",1+COUNTIFS($B$7:$B$11,G7,$C$7:$C$11,"Cheque")),1,1)?
    "You've entered too few arguments for this function" error

  8. #8
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Textjoin Alternative

    Bo_Ry
    Thanks for the other option.
    Stay Safe.

  9. #9
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Textjoin Alternative

    I'm open to other solution. Is this what you meant?
    See attach. But the method is approximately the same as consolidate and maybe worse.

  10. #10
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Textjoin Alternative

    Okay BMV, Thanks. Take Care.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,698

    Re: Textjoin Alternative

    If you still want help with this, please upload a sample workbook. Instructions at the top of the page.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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] Using Textjoin with IF(AND functionality
    By MrRAMMounts in forum Excel General
    Replies: 24
    Last Post: 10-30-2019, 07:23 AM
  2. TEXTJOIN issues
    By Daniel_ISS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2019, 01:08 AM
  3. [SOLVED] TEXTJOIN and keep formatting
    By ihb95 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2019, 03:16 AM
  4. Textjoin and if function need help
    By bitozi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-23-2019, 06:35 AM
  5. [SOLVED] Textjoin + condition
    By veeejay in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-04-2019, 01:23 PM
  6. Textjoin?
    By johandenver in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 10-01-2017, 03:18 PM
  7. TEXTJOIN function
    By Tony Valko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2016, 06:48 PM

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