May 01 2018
- last edited on
Jul 25 2018
I am using TEXTJOIN to being into one cell entries from a separate column, where I am ignoring empty cells and separately by &.
This works fine.
However, I can have duplicate values in an individual cell in the column I am using in my TEXTJOIN and I'd like to be able to supress duplicates.
Column F on Worksheet 1 has the following in the 6 cells:
Ideally what I would like in my single cell is:
123, 890, 22 & 560 & test
But I realise that is probably unrealistic.
So I'd like to be able to get to (e.g. hiding the cell that exactly matches the other):
123, 890, 22 & 560 & 22 & test
The function I am using is:
=TEXTJOIN(" & ",TRUE,'1'!$F$10:$F$606)
123, 890, 22 & 560 & 123, 890, 22 & 22 & test & test
I have looked into combining this function with 'MATCH' but it hasn't worked, I get value errors. I assume maybe because I have a mix of numerics and characters?
May 01 2018 07:23 AM
Thank you for your response.
However, I get a VALUE error in Excel:
=TEXTJOIN(" & ",TRUE,IF(MATCH('1'!$F$10:$F$606,0)=ROW('1'!$F$10:$F$606)-ROW('1'!$F$10)+1,'1'!$F$10:$F$606,""))
Is what I translated your formula in to.
May 01 2018 07:33 AM
May 01 2018 07:40 AM
So sorry I got there in the end, with help from @Haytham Amairah
I went back to the video you linked and used the following formula, remembering to use Ctrl+Shift+Enter to apply it, and this time it worked :)
Jan 16 2022 05:00 AM - edited Jan 16 2022 05:01 AM
This is a great answer if using a one the the more modern Excel versions. FILTER(), UNIQUE() and ARRAYTOTEXT() used in a clear, no-nonsense way.