on Cell A4 i want the value "Orange". I want to take only the summary of the three Fruit columns marked in orange:
any help will be greatly appreciated.
You were right to include the textjoin
tag because that's what you're going to need to use.
Something like this:
=TEXTJOIN(", ", TRUE, [@Fruit 1], IF([@Fruit 1] = [@Fruit 2], "", [@Fruit 2]), IF(OR([@Fruit 1] = [@Fruit 3], [@Fruit 2] = [@Fruit 3]), "", [@Fruit 3]))
.
That second parameter in the Textjoin
formula sets it to ignore empty values. The IF formulas return empty values if their value has shown in a previous column (that is, Fruit 2 checks Fruit 1, Fruit 3 checks both Fruit 1 and 2 columns).