#34 — Remove Duplicates And Compute Intersection

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(“…


This content originally appeared on DEV Community and was authored by Judith-Excel-Sharing

Problem description & analysis:

An Excel table has two columns of numbers, and there are duplicates in a column:

original table

Task: First remove duplicates from the columns and then compute their intersection:

desired table

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:

result table with code entered

Explanation:

isect()computes the intersection. group() groups data but does not perform aggregation. select() performs filtering operation; ~ is the current member.


This content originally appeared on DEV Community and was authored by Judith-Excel-Sharing


Print Share Comment Cite Upload Translate Updates
APA

Judith-Excel-Sharing | Sciencx (2024-07-26T04:13:18+00:00) #34 — Remove Duplicates And Compute Intersection. Retrieved from https://www.scien.cx/2024/07/26/34-remove-duplicates-and-compute-intersection/

MLA
" » #34 — Remove Duplicates And Compute Intersection." Judith-Excel-Sharing | Sciencx - Friday July 26, 2024, https://www.scien.cx/2024/07/26/34-remove-duplicates-and-compute-intersection/
HARVARD
Judith-Excel-Sharing | Sciencx Friday July 26, 2024 » #34 — Remove Duplicates And Compute Intersection., viewed ,<https://www.scien.cx/2024/07/26/34-remove-duplicates-and-compute-intersection/>
VANCOUVER
Judith-Excel-Sharing | Sciencx - » #34 — Remove Duplicates And Compute Intersection. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/26/34-remove-duplicates-and-compute-intersection/
CHICAGO
" » #34 — Remove Duplicates And Compute Intersection." Judith-Excel-Sharing | Sciencx - Accessed . https://www.scien.cx/2024/07/26/34-remove-duplicates-and-compute-intersection/
IEEE
" » #34 — Remove Duplicates And Compute Intersection." Judith-Excel-Sharing | Sciencx [Online]. Available: https://www.scien.cx/2024/07/26/34-remove-duplicates-and-compute-intersection/. [Accessed: ]
rf:citation
» #34 — Remove Duplicates And Compute Intersection | Judith-Excel-Sharing | Sciencx | https://www.scien.cx/2024/07/26/34-remove-duplicates-and-compute-intersection/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.