TEXTJOIN based on multiple criteria

ac7

New Member
Joined
Jul 26, 2023
Messages
14
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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,215,219
Messages
6,123,684
Members
449,116
Latest member
HypnoFant

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