Filter Data by Location
Example
Part of the data in the Excel file book1.xlsx is shown in the figure below:
Now we want to select the even-numbered rows in the table, as shown in the following figure:
Write SPL script:
A |
|
1 |
=T("E:/work/book1.xlsx") |
2 |
=A1.select(#%2==0) |
3 |
=T("E:/work/book2.xlsx",A2) |
A1 Read the data in book1.xlsx as a table sequence
A2 Select the data of even-numbered rows in A1, and # represents the current row number in the select loop
A3 Store the table sequence in A2 to book2.xlsx
SPL Official Website 👉 https://www.scudata.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProc_Desktop/
SPL Learning Material 👉 https://c.scudata.com
Discord 👉 https://discord.gg/cFTcUNs7
Youtube 👉 https://www.youtube.com/@esProcDesktop
Linkedin Group 👉 https://www.linkedin.com/groups/14419406/
Chinese version