#34 β Remove Duplicates And Compute Intersection
Judith-Excel-Sharing
Posted on July 26, 2024
Problem description & analysis:
An Excel table has two columns of numbers, and there are duplicates in a column:
Task: First remove duplicates from the columns and then compute their intersection:
Solution:
Use SPL XLL to do this:
=spl("=[?1,?2].isect(~.group().select(~.len()==1).conj())",A1:A5,B1:B4)
As shown in the picture below:
Explanation:
isect()computes the intersection. group() groups data but does not perform aggregation. select() performs filtering operation; ~ is the current member.
π πͺ π
π©
Judith-Excel-Sharing
Posted on July 26, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
productivity #45 β Copy Each Row N Times (N Is The Cell Value of The Specified column)
August 15, 2024