Excel's New List Feature: Filter and Count Multiple Items in One Cell
Excel can now hold a list of items in one cell. Create lists with Ctrl+J, filter by a single name, and summarize them with FLATTEN, UNIQUE, SORT, and COUNTIF.
Microsoft Excel has a great new feature rolling out: the ability to hold multiple items inside of one cell. If you have ever typed several names into a single cell separated by commas, you already know the problem. Excel treats the whole thing as one piece of text, so you cannot filter on just one of those names or easily count how often each one appears. A list fixes both.
Below I create a list in a cell, convert existing comma-separated names into lists, filter by a single name, and then summarize everything with the new FLATTEN function combined with UNIQUE, SORT, and COUNTIF.
Check that you are on the Beta Channel
Right now, lists are only available to Beta Channel users. To see which channel you are on, open Excel, go to File, and click Account. The channel is listed under About Excel. Mine shows Version 2610 (Build 20522.20000), Beta Channel.

The problem with comma-separated names
My example is a small project table. Column F holds the project owners, and most projects have more than one, so the names are typed into a single cell with commas between them: Carlos, Henrietta, Jacob.
Click the filter dropdown on that column and try to find just Carlos. You can't. Every choice in the filter is the entire string, so Carlos shows up bundled with other names in three different entries. Yes, I could go to Text Filters and use Contains, but that is a lot of work for something this basic.

Create a list in a cell
The new feature is called List. If you are a mouse person, go to the Insert tab and click List in the Controls group, right next to Checkbox.

I am going to stick with the keyboard: Ctrl + J. A small list icon appears at the left edge of the cell. Type the names with commas between them, then press Enter.

Now open the filter dropdown on that column. Carlos is by himself, and so are Henrietta and Jacob. Each item in the list is its own filter choice. Excel also shows a Blanks entry at this point, because the other cells in the column are still empty.
Convert existing names into lists
That first cell is the only list of names I am going to type. You do not have to retype data you already have. I could select the names in column F and press Ctrl + J right there, but I want to keep the original column for comparison, so I copy the old names, paste them into the list column, and with the pasted cells still selected, press Ctrl + J.

Filter by a single list item
Click the filter dropdown again. All of the names are there, one per line: Andre, Carlos, Henrietta, Jacob, Mei, Priya. There are no blanks now, and the names are in alphabetical order. Check Carlos, click OK, and the table shows only the three projects Carlos is on.

Switch between list items and display values
Look at the top of the filter menu for a list column. There is a new Select field dropdown with two choices: List Items and Display Value. List Items filters on the individual names. Display Value filters on the whole cell the way a normal text column would, so you see Carlos, Henrietta, Jacob as a single choice again. You can toggle back and forth between the two. I keep mine on List Items.

Counting owners the old way
Lists also make counting much easier. Here is what I had before. The last column of my table counts the owners in each cell of the old text column with this formula:
=LEN(F5)-LEN(SUBSTITUTE(F5,",",""))+1It measures the length of the text, measures it again with the commas removed, and adds one. That is a pretty detailed formula for a simple question, and all it gives me is the number of names in each cell.

It does not tell me how many projects Carlos is on. To check that, I select the old owners column and add a quick conditional formatting rule: Home > Conditional Formatting > Highlight Cells Rules > Text that Contains, and type Carlos. Three cells light up. Change the rule to Jacob and two cells light up. When I am done, I clear it with Conditional Formatting > Clear Rules > Clear Rules from This Table.

Expand the lists with FLATTEN
Now the new way. Alongside lists, Excel has a new function called FLATTEN. Point it at the list column and it spills every item from every list into a single column:
=FLATTEN(tblProjects4[Owners — List (Ctrl+J)])My data is in a table, so clicking the column gives me a structured reference with the table name instead of a cell range. The result is one long column with one name per row.

Remove duplicates and sort the names
FLATTEN keeps repeating names, because Carlos is in there more than once and so is Jacob. Wrap the formula in UNIQUE to remove the duplicates, then wrap that in SORT to put the names in order:
=SORT(UNIQUE(FLATTEN(tblProjects4[Owners — List (Ctrl+J)])))
Count each name with COUNTIF
Next, count how many times each name appears. COUNTIF works directly against the list column. The first argument is the list column, and the second argument is the cell holding the unique names, M5, followed by a hashtag:
=COUNTIF(tblProjects4[Owners — List (Ctrl+J)],M5#)
The hashtag is the spill reference. It says "use everything that spilled from M5," so the counts fill down for every name with one formula. If you have paired UNIQUE, SORT, and COUNTIF before, this is the same pattern. The difference is that it now works on cells holding several values each.

Test it with a new name
What is nice about this is that everything updates on its own. To prove it, I edit one of the list cells and add my last name, Menard. Menard shows up in the summary in alphabetical position with a count of one. Add Menard to a second project and the count goes to two. There is no formula to edit and no range to extend.

Lists, FLATTEN, and what to try first
I absolutely love this feature. One cell can hold several items, each item is filterable on its own, and FLATTEN with SORT, UNIQUE, and COUNTIF turns a column of lists into a live summary. If you are on the Beta Channel, take a column of comma-separated names, select it, press Ctrl + J, and open the filter dropdown. There is even more to lists than what I covered here, so I am breaking it up into several tutorials.
Related guides





