TEXTJOIN based on multiple criteria

ac7

New Member
Joined
Jul 26, 2023
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hello -

I have 2 worksheets, Orders and Filtered.

Orders:
1690464751777.png


Filtered:
1690464777460.png


I am looking for a way to use TEXTJOIN on the Orders worksheet to give me a list of all parts in column B from the Filtered worksheet that also have a "Y" in column C. This is what I would expect to see for the results on the Orders worksheet:
1690464939196.png


Any suggestions on how to make this work? If TEXTJOIN is not the best way to do this, I am open to anything that works.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about
Excel Formula:
=TEXTJOIN(", ",,FILTER(Filtered!B2:B100,(Filtered!A2:A100=A2)*(Filtered!C2:C100=Y)))
 
Upvote 0
How about
Excel Formula:
=TEXTJOIN(", ",,FILTER(Filtered!B2:B100,(Filtered!A2:A100=A2)*(Filtered!C2:C100=Y)))
Thank you for the swift reply. I'm getting a #CALC! error on row 3 (order 158285) on the Orders worksheet.

1690465761629.png


What is the best way to suppress or fix those errors?
 
Upvote 0
How about
Excel Formula:
=TEXTJOIN(", ",,FILTER(Filtered!B2:B100,(Filtered!A2:A100=A2)*(Filtered!C2:C100=Y),""))
 
Upvote 1
Solution

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top