Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Compare and remove duplicates in Arrays (Google sheets)

$
0
0

I have two arrays of many rows , in my Google sheets, which have numbers such as

ActiveRecovered
904;1505;1706406;504;1502;1503
202;401;602;1104;1501202;1502;1602;1704

I have shown only two rows to explain my problem. In the second row, you see that 202 is common. These rows are populated by complex calculations over which I have no control 1. Logically, if the element is common (202 here), it should appear only under Active and be removed from Recovered.

How do I compare and remove the common element? Or at least alert me that a common element exists so that I can manually copy-paste that row and delete it?

1Active column is populated a formula like =Join(";",Transpose(ARRAY_CONSTRAIN(SORT(UNIQUE(FILTER('2022'!D3:D319,TO_TEXT('2022'!F3:F319)="Active",'2022'!D3:D319<>"")),1,true),15,1))); similarly Recovered and I have no way of accessing the source. My job is to report the output and only today noticed the duplication


Viewing all articles
Browse latest Browse all 9782

Trending Articles



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