How To Customize The Order Of Your Excel Slicer Buttons

Excel Custom Order Slicer Buttons

Slicers Are Great, But Have Limitations

Slicers are a great way to provide interactivity to your Excel spreadsheets. They allow you to ditch the need for drop-down lists and instead give your users the ease of simply selecting a button to filter/change the displayed data.

Unfortunately, Microsoft has left these handy little buttons very simple in their functionality which has hindered some of us creative folks from pushing them past their limits. One of these limitations is manipulating the order in which the Slicer buttons are organized.

When you are creating Slicer buttons you typically want to keep your most used buttons on the top row. This is because most people are going to scan through the buttons similar to how they read a book and you don't want to waste your user's time by placing the most popular buttons somewhere in the middle of the sea of buttons.

Slicers only allow you to organize your buttons in alphabetical order (ascending or descending). Since you can't always depend on your most popular buttons starting with the letter "A" this could pose a problem.

Real World Example With Quarters and Months

Let's look at an example situation where we want to create Slicer buttons that give our users the ability to filter on a particular month or quarter. In this scenario, the quartes are going to be the more popular way at looking at the data as the team that uses this file only reports results every 3 months.

With quarters being classified as the "popular" buttons, we will definitely want to make these show up on the top row. While you can force them to the top row sorting Z to A, they read backwards which is most likely not what you will be wanting.

Sort Order of Excel Slicer Buttons

One solution you could implement is to number your buttons, however this could potentially mess up other parts of your spreadsheet (ie lookup formulas) or cause confusion (ie "05. Jan" -> Isn't January the first month?). So this might not be a viable solution for your situation.

Number Order of Excel Slicer Object Buttons

My Solution: Use A Custom List

In my proposed solution, I will be using Custom Lists to tell the slicers the specific order I would like the buttons to be in.

You may not realize this, but you use Custom Lists all the time! Have you ever dragged a cell with the value "January" across to list out all the months? The reason this work, is because Excel comes with a pre-built in list that lists out all the months when certain values are dragged.

2017-06-14 11_05_57-Graphics.xlsx - Excel.png

Below are the 4 lists that exist by default with Excel:

Microsoft Excel Default Custom Lists

So, let's try and create a Custom List based on how we want the buttons to read. In the blue table below, I have listed out the order of how I want the buttons to be laid out reading left to right, moving downward. You can see that I would like each quarter going across in the top row and then the 3 months that make up that quarter underneath.

Excel Slicer Button Desired Layout

Now that we have some cells with the precise order we want, let's go ahead and carry out the following steps to build our Custom List:

  1. Select the File tab
  2. Click Options
  3. Pick the Advanced section in the left-side pane
  4. Scroll all the way down to the bottom of the options list
  5. Click the Edit Custom Lists button

Once you are viewing the Custom Lists dialog window, you have a couple of options to create your list. You can either manually type out your list in the text field or you can use the Arrow button to select cells with the list values in them. In this example, I have already listed out the values on my spreadsheet, so there is no point in re-typing them manually. So let's take the following steps:

  1. Select the Arrow button and highlight the cell range listing the values you would like to add to your Custom List
  2. Click the Import button and you should now see your values populate the List Entries listbox
  3. Click the OK button to confirm your new Custom List
How To Create Custom Lists in Microsoft Excel

Now that we have created our custom list, we can right-click on the Slicer object and sort from A to Z to get our desired result!

Things To Note Afterwards

Custom Lists are an Application-Level setting! This means if you open another file and drag values residing in a Custom List, Excel is going to use the next list value and not just duplicate the original value. So don't be confused when this happens! That's why I recommend deleting the Custom List unless it is a list you plan on using in your spreadsheets a lot.

If you re-sort, you could lose your order! If you happen to take my advice and immediately delete the Custom List you used to reorder your buttons, be aware that if you try to sort the buttons in the future, the slicer buttons will revert back to an alphabetical order.


How Do I Modify This To Fit My Specific Needs?

Chances are this post did not give you the exact answer you were looking for. We all have different situations and it's impossible to account for every particular need one might have. That's why I want to share with you: My Guide to Getting the Solution to your Problems FAST! In this article, I explain the best strategies I have come up with over the years to getting quick answers to complex problems in Excel, PowerPoint, VBA, you name it

I highly recommend that you check this guide out before asking me or anyone else in the comments section to solve your specific problem. I can guarantee 9 times out of 10, one of my strategies will get you the answer(s) you are needing faster than it will take me to get back to you with a possible solution. I try my best to help everyone out, but sometimes I don't have time to fit everyone's questions in (there never seem to be quite enough hours in the day!).

I wish you the best of luck and I hope this tutorial gets you heading in the right direction!