I am using Excel 2010. My son has a spreadsheet that has several hundreds of rows of titles of artist, songs, song length, rating, and so forth. I want to limit the number of rows to display for each artist, based on their rating. Let’s say, either 5 rows per artist, 10 rows per artist, or show all. The options (5, 7, all) to list would be in a CELL value at the top of my listing.
I think I can use an array, with Index and CountA, but I don’t know how to set it up. Any recommendations on how to start this?
<tbody>
</tbody>
I’ve tried searching on the internet and tested code and have failed for hours. I have come to a complete stop and I just can’t find the solution to this problem.
Any help would be appreciated.
I think I can use an array, with Index and CountA, but I don’t know how to set it up. Any recommendations on how to start this?
3 | <= Maximum rows to show | ||
Artist | Song Title | Album | Rating |
Artist 1 | Song 1 | Album A | 5 Stars |
Artist 1 | Song 2 | Album A | 5 Stars |
Artist 1 | Song 5 | Album B | 4 Stars |
Artist 2 | Song 1 | Album A | 5 Stars |
Artist 2 | Song 2 | Album C | 5 Stars |
Artist 2 | Song 3 | Album A | 5 Stars |
Artist 3 | Song 1 | Album C | 5 Stars |
Artist 3 | Song 4 | Album A | 4 Stars |
Artist 3 | Song 5 | Album C | 3 Stars |
Artist 4 | Song 1 | Album A | 5 Stars |
Artist 4 | Song 2 | Album B | 4 Stars |
Artist 4 | Song 3 | Album A | 3 Stars |
etc | etc | etc | etc |
<tbody>
</tbody>
I’ve tried searching on the internet and tested code and have failed for hours. I have come to a complete stop and I just can’t find the solution to this problem.
Any help would be appreciated.