Deriving a List of Albums by a Music Artist

Written by Allen Wyatt (last updated September 5, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


1

Steve has a worksheet containing a list of music artists, albums, and the year of album release. (These are for his music collection.) Steve goes to a lot of music festivals, and he is trying to work out how to return, from a full music list, a list of albums by the artists that he is going to see at the festival. He has tried various array formulas, but to no avail.

For the purposes of this tip, I'm going to assume that your data is quite simple: Column A contains the artist, column B the album name, and column C the year that the album was released. Given this data, there are a few different approaches you can use.

First, you can select a cell in the data, display the Data tab of the ribbon, and then click the Filter tool. Excel displays drop-down arrows next to columns A, B, and C. Click the down-arrow for column A (the artist) and then, from the options presented, make sure that only the artists you want are selected. Those, then, are displayed and you can print your list for the festival.

Another approach is to use the FILTER function. (This will work if you are using Excel 2021 or Microsoft 365.) If you, for instance, want to search your list for any artists named "Enya" or "Eagles" (I'm obviously showing my age), then you could use the following formula to display just the desired artists and their albums:

=FILTER(A:B,(A:A="Enya")+(A:A="Eagles"))

This works great if your original list is already sorted, but you could also encase the entire formula in the SORT function:

=SORT(FILTER(A:B,(A:A="Enya")+(A:A="Eagles")))

A third approach is to create a very simple PivotTable based on your music collection. You can easily add the artist column to the Rows of the PivotTable, which will then show you all your artists in alphabetic order. If you then want to see the albums of a particular artist, double-click on the artist name and then choose Album from the resulting Show Detail dialog box.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13910) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Saving an Envelope for Future Use

It can take a while to get an envelope to appear just the way you need. Why throw your work away when you are done with ...

Discover More

Printing Just the Changes and Comments

Word allows you to use its Track Changes feature to add markup to your document. This is great when you have a group of ...

Discover More

Running a Macro while in Edit Mode

Excel doesn't allow you to run a macro while editing the contents of a cell. The only solution is to get out of Edit ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Non-PivotTable Slicers and Timelines

When working with a PivotTable, slicers and timelines can make short work of large data sets. This tip looks at all the ...

Discover More

Clearing Only Filtering Settings

When you filter data in a worksheet, Excel also allows you to apply sorting orders to that data. Here is a ...

Discover More

Performing Calculations while Filtering

The advanced filtering capabilities of Excel allow you to easily perform comparisons and calculations while doing the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 5 - 3?

2023-09-05 02:23:43

Enno

In my Office 2019 there isn't any FILTER-Function.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.