Excel Generate a Unique ID for Each Category
Problem description
Excel data as shown:
We are trying to recode UNIQUE ID field. The rule is like this. Same IDs have same UNIQUE IDs. The expected result is the right part in the following table:
Solution
Use the SPL XLL plug-in of Excel
Write the formula in a blank cell:
As Shown:
Group A1’s data by ID, loop through each group to assign the current group number to variable a, and then loop through each record of the current group to assign a to UNIQUER ID.
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/