DEV Community

Cover image for #55 — Remove Duplicate Rows
Judith-Excel-Sharing
Judith-Excel-Sharing

Posted on

#55 — Remove Duplicate Rows

Problem description & analysis:

The Excel table below has 7 columns of numbers. Some rows are completely the same.

original table
We want to remove duplicate rows.

desired table

Solution:

Enter the following formula in SPL XLL:

=spl("=?.group(~).select(~.len()==1).conj()",A1:G7)
Enter fullscreen mode Exit fullscreen mode

As shown in the picture below:

result table with code entered

Explanation:

group()function groups rows. select() function gets groups meeting the specified condition. conj() function concatenates the selected groups.


ℹ️ Feel free to download esProc Desktop and explore the related information:

✨SPL download address: esProc Desktop FREE Download

✨Plugin Installation Method: SPL XLL Installation and Configuration

✨References to other rich Excel operation cases: Desktop and Excel Data Processing Cases

✨YouTube FREE courses: SPL Programming

Top comments (1)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.