Excel Formula Text Twist

Biz

Well-known Member
Joined
May 18, 2009
Messages
1,773
Office Version
  1. 2021
Platform
  1. Windows
Dear All,

I'm trying to match multiple criteria and return comments using MS Excel 2021.

I have tried composing a formula in Column I, but my answers don't equal to should be Column J.


Cell Formulas
RangeFormula
J3,I3:I5J3=TEXTJOIN(","&CHAR(10),TRUE,UNIQUE(FILTER(($A$2:$A$20&"-"&$B$2:$B$20&"-"&$D$2:$D$20),($D$2:$D$20<>"")+($A$2:$A$20&"- "&$B$2:$B$20=H3&"-"&I3))))
I2I2=TEXTJOIN(","&CHAR(10),TRUE,UNIQUE(FILTER(($A$2:$A$20&"-"&$B$2:$B$20&"-"&$D$2:$D$20),($D$2:$D$20<>"")+($A$2:$A$20=G2&"- "&$B$2:$B$20=H2))))



Your help would be greatly appreciated.

Kind Regards

Biz
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Do you need to update your profile as it's showing 2010, but those functions are not available in 2010?

Also can you please explain exactly what you are trying to do.
 
Upvote 0
Hi Fluff,
I have updated Office Version to 2021. I'm trying to match multiple criteria in Columns G&H to Columns A&B and then return comments from Column D with Parent-Child using TextJoin with ","&CHAR(10). Hope it makes sense.

Kind Regards,

Biz.
 
Upvote 0
Ok, how about
Fluff.xlsm
ABCDEFGHI
1ParentChildAmountCommentsCriteria 1Criteria 2Cons Comments
2A12310A123 
3B12320TryB123B-123-Try, B-123-Bob, B-123-Ken
4A12310C120 
5B12320D200D-200-This, D-200-is, D-200-Working
6B12320Bob
7B12320Bob
8B12320Ken
9C120
10D2001This
11D2002is
12D2003Working
13
Main
Cell Formulas
RangeFormula
I2:I5I2=TEXTJOIN(","&CHAR(10),TRUE,UNIQUE(FILTER($A$2:$A$20&"-"&$B$2:$B$20&"-"&$D$2:$D$20,($D$2:$D$20<>"")*($A$2:$A$20=G2)*($B$2:$B$20=H2),"")))
 
Upvote 0
Solution
Ok, how about
Fluff.xlsm
ABCDEFGHI
1ParentChildAmountCommentsCriteria 1Criteria 2Cons Comments
2A12310A123 
3B12320TryB123B-123-Try, B-123-Bob, B-123-Ken
4A12310C120 
5B12320D200D-200-This, D-200-is, D-200-Working
6B12320Bob
7B12320Bob
8B12320Ken
9C120
10D2001This
11D2002is
12D2003Working
13
Main
Cell Formulas
RangeFormula
I2:I5I2=TEXTJOIN(","&CHAR(10),TRUE,UNIQUE(FILTER($A$2:$A$20&"-"&$B$2:$B$20&"-"&$D$2:$D$20,($D$2:$D$20<>"")*($A$2:$A$20=G2)*($B$2:$B$20=H2),"")))
Thank you Fluffy for your help.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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