+ Reply to Thread
Results 1 to 14 of 14

Textjoin() and Match() Formula Issue

  1. #1
    Registered User
    Join Date
    01-15-2019
    Location
    Houston, TX
    MS-Off Ver
    Excel for Office 365 MSO (16.0.11029.20104) 64-Bit
    Posts
    5

    Textjoin() and Match() Formula Issue

    For some reason, this formula seems to only "partially" work.

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


    I can't post the entire workbook because it's company info. But in a nutshell, I have a powerquery set up to pull information from our datawarehouse. There are multiple activities per well. There are multiple wells per well pad. Illustrated by this picture.

    2019-10-23_11-57-09.png

    I then have a "summary" type sheet that puts each well pad on one line. I have a column for "Wells on Pad". The formula is intended to go lookup the well pad ID in column I, match it against the well pad ID in the sheet from the picture above, then give me only unique values for the Well Numbers in 1 cell. The odd thing is, it has worked for a lot of the well pads. But, there are several that are blank all together (and shouldn't be), or have a couple of the well numbers, but not all. What am I missing in this formula? Below is a picture of the "result" I am after.

    2019-10-23_12-02-01.png

    Any help would be greatly appreciated. I am so confused why it's working some of the time, but not for all. Basically any line item that has a well pad ID should have at least 1 result in the Wells on Pad column.

    Thanks in advance,

    Chris

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Textjoin() and Match() Formula Issue

    Welcome to the forum.

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    Instructions (Please Read Carefully):

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-15-2019
    Location
    Houston, TX
    MS-Off Ver
    Excel for Office 365 MSO (16.0.11029.20104) 64-Bit
    Posts
    5

    Re: Textjoin() and Match() Formula Issue

    Thank you so much for the guidance, Ali. I will re-post in just a few minutes!!

  4. #4
    Registered User
    Join Date
    01-15-2019
    Location
    Houston, TX
    MS-Off Ver
    Excel for Office 365 MSO (16.0.11029.20104) 64-Bit
    Posts
    5

    Re: Textjoin() and Match() Formula Issue

    Okay, let's try again. I am attaching the workbook. I believe I removed everything except the relevant columns. Column B on the tab "Summary Page" is the formula I am trying to address. Column C is the expected result of the formula. In most cases, it works fine. I have about another 2000 rows other than what's being shown here, so these aren't the "only" ones that aren't right, just a sample.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Textjoin() and Match() Formula Issue

    Summary Page


    C2=IFERROR(TEXTJOIN(" ,",TRUE,UNIQUE(FILTER('PQ from DW'!$C$2:$C$1026,'PQ from DW'!$D$2:$D$1026='Summary Page'!$A2))),"")

  6. #6
    Registered User
    Join Date
    01-15-2019
    Location
    Houston, TX
    MS-Off Ver
    Excel for Office 365 MSO (16.0.11029.20104) 64-Bit
    Posts
    5

    Re: Textjoin() and Match() Formula Issue

    Hello Caracalla,

    I believe I am plugging this in as written, I am getting "That function isn't valid". When I click "okay", it highlights the "FILTER" in the formula. No idea if that's relevant...but also noticed that the "autocomplete" when writing the formula didn't come up for the words "Unique" or "Filter". Is there some checkbox somewhere I need to enable the capabilities? Thanks again for your reply!

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Textjoin() and Match() Formula Issue

    Edit Please ignore this formula. Still has errors. See posts 10 and 11 below instead.

    It appears you need to nest your IFERROR and wrap it around the outermost IF.

    Array entered.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 10-23-2019 at 07:30 PM.
    Dave

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Textjoin() and Match() Formula Issue

    Edit Please ignore this formula. Still has errors. See posts 10 and 11 below instead.

    Or to nullify the affects of the blank cells upon MATCH in Well_Numbers[WELL_NUM] try appending an empty string to the lookup value and lookup array like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 10-23-2019 at 07:31 PM.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Textjoin() and Match() Formula Issue

    @ CARACALLA

    You are evidently part of the Office Insider program.

    The UNIQUE and FILTER functions are not available to the rest of us ... just the "Insiders".

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Textjoin() and Match() Formula Issue

    My previous two formulas still have problems. Try array entering this one.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Textjoin() and Match() Formula Issue

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

  12. #12
    Registered User
    Join Date
    01-15-2019
    Location
    Houston, TX
    MS-Off Ver
    Excel for Office 365 MSO (16.0.11029.20104) 64-Bit
    Posts
    5

    Re: Textjoin() and Match() Formula Issue

    You are amazing, FR! Thank you so much. I got them to work both in the test and with the live data! Thank you again and everyone else for your input.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Textjoin() and Match() Formula Issue

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Textjoin() and Match() Formula Issue

    @ cdspeights

    You are welcome. Thank you for the feedback and marking your thread Solved.

+ 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. Error Using TEXTJOIN Function in Array Formula to List Non-empty Strings
    By MikeA01730 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-18-2019, 01:24 AM
  2. Modify TEXTJOIN formula to avoid duplicate returns
    By Thintin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2019, 11:06 AM
  3. [SOLVED] Match two criteria and return multiple records - INDEX & AGGREGATE, TEXTJOIN function
    By remyte in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2019, 01:53 PM
  4. [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
  5. [SOLVED] TextJoin formula with MID function
    By Brsth in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-26-2018, 11:00 AM
  6. If Match then return TEXTJOIN
    By Cynops in forum Excel General
    Replies: 1
    Last Post: 11-09-2016, 07:51 AM
  7. Replies: 11
    Last Post: 01-12-2016, 03:30 PM

Tags for this Thread

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