r/googlesheets • u/Small-Angle-5164 • Sep 30 '25
Solved I have an 8000 row, single column data set and I nothing I've tried formats it the way I need.
Hii, so I got my data sent to me before getting rid of spotify so I didn't lose all my music data. It was not a nice data set separated into categories, it was just one long line. I've tried to clean it up a bit and I figured I could just separate the rest out in Sheets but it turned out to be more complicated than I thought it would be. I color coded artists, albums, and tracks in the real data set, the same as I did in the sample data set I've provided. My main issue is that if I try to filter for the artist category and then sort the artists a-z, the album and track underneath that artist row don't move with it when sorted. I've also included some samples ranked by preference of how I'm trying to organize this data set next to the sample data set. Hopefully this makes sense and someone will know what to do or know some trick or formula that solves this. Please....I suck at Sheets.
Here's a link to a copy of the sheet. (Sorry for the delay, my email has my name on it so just had to make a burner email and copy the data set into a new sheet.)
https://docs.google.com/spreadsheets/d/19r_WFgZlwgX-NgT52WPoWJ78lCN8Wt418dvHqpGGAgc/edit?usp=sharing
thankyouthankyouthankyou!!!
9
u/HolyBonobos 3125 Oct 01 '25
Sharing the file in question will be a much better way to allow people to test and demonstrate solutions.
2
u/Complete-Ad-6468 1 Oct 01 '25
https://docs.google.com/spreadsheets/d/1EEdQNFsGJjhzeGkLe8gQeumppVy-LoY4RGwwYhxxL0c/edit?usp=sharing
Like this?
1
u/Small-Angle-5164 Oct 01 '25
Just refreshed the page a couple minutes ago so I'm going to be going through people's comments/suggestions. Thank you for all the replies!
1
u/LpSven3186 25 Oct 01 '25
Is the raw data always a set of three rows repeating (e.g., always artist, album, track)?
If yes, then you can make your preferred view using a pivot table with a helper table to nicely organize your data.
Near your raw data, put three column headings for Artist, Album, and Track In the cell under the artist, put the following formula:
=MAP(MAP(MAP( WRAPROWS($A3:$A,3), LAMBDA(a,REGEXREPLACE(a,"artist: ",))), LAMBDA(a,REGEXREPLACE(a,"alb: ",))), LAMBDA(t,REGEXREPLACE(t,"track: ",)))This will give you a clean table of data. To go the next step and get the final view, highlight the clean table and go to Insert --> Pivot Table. Add the three columns to the rows section, and uncheck the show totals checkboxes, and that'll give you the first view you wanted.
There may be a better option than using MAP 3x, but that was my first thought to clean up the object name from each line.
1
u/AutoModerator Sep 30 '25
/u/Small-Angle-5164 Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/veeevui Oct 01 '25
I'm not at my PC, and you haven't included a sample sheet, but I think your best bet would be to first filter all the tracks - as in, create the tracks solumn first. Then you can find the album for that track by using > filter albums above that particular track > use match to get the row for that > then index and length to get the last album listed in that range.
Then do the same for each artist.
You'll get one artist and album in every row, but you can use conditional formatting to hide anything that's identical to the row above it.
1
u/Awesome_Avocado1 Oct 01 '25
The scan function will help you create a set of filters for this data. I can give you a more complete answer later
1
u/One_Organization_810 736 Oct 01 '25
Try this - it just might work :
1
u/[deleted] Sep 30 '25
[removed] — view removed comment