Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88111

TextJoin: How to remove duplicate values?

$
0
0

I have the following table of data:

enter image description here

In C2, I then input the following formula =TEXTJOIN(", ",TRUE,IF($B$2:$B$7=$B2,$A$2:$A$7,"")) which returns the following:

enter image description here

However, I want the formula to ignore any duplicates and just return 1, 30

I've had a peruse, and looked a similarly asked questions on here, but i am unable to get anything to work

EDIT

I have partially resolved this with the following code:

=TEXTJOIN(", ",TRUE,IF($B$2:$B$13=$B2,IF(MATCH($A$2:$A$13,$A$2:$A$13,0)=ROW($A$2:$A$13)-ROW($A$2)+1,$A$2:$A$13,""),""))

However, if the ID code changes and an income code, previously populated under a different ID, appears it will just return blank:

enter image description here

Many thanks


Viewing all articles
Browse latest Browse all 88111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>