Download page Splitting cell values to different rows preserving the original formatting.
Splitting cell values to different rows preserving the original formatting
Use case
You need to split cell values in a column to different rows for further data aggregation. As your cell values are links, you need to preserve the original formatting.
Solution
Switch the page to the edit mode.
Insert the Table Transformer macro and paste the table or the macros outputting tables within the macro body.
Select the macro and click Edit.
In the Presets tab select Custom transformation and click Next.
Enter the following SQL query:
SEARCH / AS @a EX(SPLIT_VIEW('Favorite Websites', ",")) /
RETURN(@a->'Name' AS 'Name', @a-> 'Skill' AS 'Skill', _ AS 'Favorite Websites') FROM T1
In this case the underscore in the query (i.e. _ AS 'Favorite Websites') is utilized as a beacon to return the transformed data in the Favorite Websitescolumn, while @a->returns the data corresponding to their row values, hence multiplying them as the Favorite Websitescolumn data obtain additional rows after being split.
The resulting table can be further utilized with the Pivot Table macro for distinct value aggregation, counting, and so on.
Cookie Notice
This website uses cookies for analytics, personalization and advertising. By continuing to browse, you agree to our use of cookies. Learn more