Ravindra BagaleCourses & study guides मराठी Track your progress

6. Tables, Sorting and Filtering

Excel

6.13 Slicers on an Excel Table (Not a Pivot)

Put an everyday filter on the surface of your report

A fictional marketplace coordinator opens a sheet of ten orders and wants to see Pune deliveries. The City filter sits inside an ordinary header menu. People who work with Excel daily can find it, but a new reader opening the workbook for a short review can miss the active restriction. A slicer places the choices in a visible panel. Click Pune and the linked Table hides the rows from other cities. The selected item stays visible on the panel so the user can see part of the report’s current state.

A slicer is a control with a set of buttons made from the values in a field. A field is a named column such as City or Platform. In this lesson the linked source is the Excel Table containing one row per order. The slicer filters that Table’s individual records. A PivotTable slicer can look similar while filtering the fields in a summarized report. To create the right object, start by clicking a cell in the Table you mean to filter.

The first lab uses the imaginary marketplace order list with Blinkit and Amazon Now as familiar examples. The second uses an invented Konkan Fresh Mart packing list inspired by grocery delivery. All records, order values and statuses belong to the practice examples.

Pick the right source and Excel client

Create the Table slicer in desktop Excel

Microsoft documents creating slicers for Tables and PivotTables in Excel for Windows and Excel for Mac. Use a supported desktop Excel client with the controls available. Click inside the actual Excel Table, then choose Insert → Slicer. Some desktop ribbons also expose Insert Slicer from the Table tab. Select the fields you want and confirm. Excel creates one control for each selected field. In the first lab that means a City control and a Platform control. Do not start from an ordinary range that merely has colored rows. Convert the source to a Table and verify its boundaries first.

Microsoft says the web client can create slicers for local PivotTables. For creating an Excel Table slicer, use Windows or Mac desktop. The same desktop requirement is documented for creating a slicer for a Data Model or Power BI PivotTable. Those PivotTable types are separate report sources and are beyond this worksheet lab. If the web client or another device does not expose the Table slicer controls you need, run the equivalent header filter exercise. Verify the exact behavior of an existing slicer on the client where the audience will use the workbook. The creation support for one object does not establish how another object can be created or controlled.

Recognize the parts you can test

  • Field title. Match the slicer’s heading to the intended Table field. City and Platform should appear as distinct controls with distinct values.
  • Choice buttons. Each button represents an available field value. Selected buttons mark the current included choices. A separate criterion can make some choices unavailable or leave them with no matching records in the current view. Inspect the output instead of inferring all conditions from one panel.
  • Multiple choices. Use the visible Multi-Select control when available. Microsoft documents Ctrl-click on Windows and Command-click on Mac for choosing more than one item. Select two cities and verify that an order from either chosen city can pass.
  • Clear Filter control. Clearing the City slicer removes its field’s restriction. A Platform slicer or a header filter on another field can still narrow the Table. Read the other controls and remaining IDs before reporting the complete source.
  • Position and size. The slicer is an object on the worksheet. Move or resize it in unused space away from current and expected records. Leave enough room for all labels or for scrolling within the panel if there are more items than it can show.

Combine buttons within one field and across fields

Selecting Pune and Nashik in the City slicer means each order needs either listed city. A row has one city value. When you also select Amazon Now in the Platform slicer, that second field must match too. A row in Nashik can pass the City choice and still fail the Platform restriction. Neither control knows on its own which other restrictions are active. Read the combined policy as “one of these cities, and this platform.”

The first lab has six orders in Pune and Nashik together. Of those six, only AMN-1003 is an Amazon Now order. It is in Pune and has ₹110. Every other one of the six belongs to Blinkit. The Amazon Now slicer has three orders in the full source, including one in Kolhapur and one in Sambhaji Nagar. The two simultaneous filters leave just one order because those other two fail the City requirement. A row is never counted twice for having two active controls.

Pune gives 4 orders and 544 rupees. Selecting Pune or Nashik gives 6 orders and 904. Also selecting Amazon Now gives one order at 110.
Two choices inside City give a wider set. Adding a selection in Platform then narrows that set.

Keep native header filters for comparisons

A slicer provides discrete choices, such as named areas or statuses. For “Amount greater than 500” use a Number Filter on Amount, or calculate a separate flag if the report’s business filter is more complicated. A button for every distinct amount can make the panel impractical and still fail to express an ongoing threshold. A numeric filter checks whether each amount passes a rule even when new amounts are added. Similarly, a date window is often easier to express with Date Filters rather than one button per day. A PivotTable Timeline belongs to a different report type. Table work can continue with date columns and their filter controls.

Lab 1. Read the effects of City and Platform buttons

Create a practice sheet named Mini. Leave the first six rows available for a report title and controls, and enter the data in A7:D17. For the exercise, use column labels Order ID, City, Platform and Amount. Type numeric amounts. Create an Excel Table covering the exact range including headers and name it tblMini if the feature is available. Leave enough space to the right or above the source for the panels so they do not overlap the data when the Table expands.

Mini A7:D17. Each order’s City and Platform give it two independent attributes.
Order IDCityPlatformAmount
BLK-1001PuneBlinkit64
BLK-1002NashikBlinkit270
AMN-1003PuneAmazon Now110
BLK-1004NagpurBlinkit240
AMN-1005KolhapurAmazon Now232
BLK-1006PuneBlinkit150
BLK-1007SolapurBlinkit1299
AMN-1008Sambhaji NagarAmazon Now195
BLK-1009PuneBlinkit220
BLK-1010NashikBlinkit90

Set up the controls and baseline amounts

  1. Place the insertion point inside the Mini Table. Choose Insert → Slicer in desktop Excel. In the field list choose City and Platform. Click an empty space after creation and verify the panel titles. Each panel controls a different Table field.
  2. Enable the Table Total Row and choose Sum under Amount. On a separate Check sheet enter =SUM(tblMini[Amount]) for whole-source amount, =SUBTOTAL(109,tblMini[Amount]) for visible amount and =SUBTOTAL(103,tblMini[Order ID]) for visible ID count. Make sure the Check sheet stays unfiltered. With all source rows showing, the count is 10 and both amounts plus the Total Row are ₹2,870.
  3. On City click Pune. The IDs BLK-1001, AMN-1003, BLK-1006 and BLK-1009 should remain. Their amounts sum to ₹544. Clear the City restriction and select Nashik by itself. BLK-1002 and BLK-1010 total ₹360. The separate full-source amount remains ₹2,870 in both tests.
  4. Choose Pune and add Nashik using the available multiple-selection control, watching that both remain selected. The six orders total ₹904. The selected ID set now includes both previous city results. On Platform click Amazon Now. Only AMN-1003 remains, worth ₹110. The other two Amazon Now orders come from outside the chosen cities.
  5. Clear City only. Now all three Amazon Now orders are displayed and the amount is ₹537. Clear Platform as well and check the return to ten orders and ₹2,870. If the count does not return fully, inspect the other Table headers for an extra active filter or hidden records.
Test each case after clearing unrelated criteria.
Selected fieldsVisible IDsVisible amount
None restricted102870
City Pune4544
City Nashik2360
City Pune or Nashik6904
Pune or Nashik, with Amazon Now1110
Platform Amazon Now without City3537
City Pune with Blinkit3434

Explain the apparent disagreement with the whole-source SUM

After setting Pune and Blinkit, verify the three IDs BLK-1001, BLK-1006 and BLK-1009 and amount ₹434. Adding 64, 150 and 220 by hand gives the same result. SUBTOTAL reads the current visible records, so the separate check agrees with the Total Row. The full-source SUM still reads the ten Table members and returns ₹2,870. A reader who sees both numbers should know which one is an all-orders calculation and which one depends on selected controls. Give each result its own label.

If a fixed calculation should report Pune plus Blinkit even after another reader changes the slicers, a rule-based sum can read the desired city and platform from stable criteria. For example, put the two criteria into a separate worksheet calculation with SUMIFS. The slicer then provides a working view that can change without changing the question the fixed report answers. With the original clean data, both reports agree on ₹434 when the same conditions apply. They are expected to differ once a reader asks another question of the interactive view.

Lab 2. Reset one condition and verify which Table it affects

Use the familiar five fictional Konkan Fresh Mart orders from AutoFilter, with a new status field for this lab. In a clean sheet named Packing type the headers and records, leaving the first five rows free as a place for controls. Put the Table at A6:D11, with an ordinary header in row 6. Create a Table and name it tblKonkan when the name field is available. This time practice an Area slicer, a Status slicer and an Amount header filter on the same source.

Packing A6:D11. Base total is ₹3,100 from five orders.
Order IDAreaAmountStatus
KFM-501Baner650Packed
KFM-502Kothrud820Ready
KFM-503Baner420Ready
KFM-504Baner910Packed
KFM-505Wakad300Ready

Start with a known match and deliberately narrow to zero

  1. Verify each control alone. Insert Area and Status slicers from tblKonkan. Turn on the Total Row and choose Sum in Amount. Use an independent visible ID count. Clear all criteria. Area Baner alone shows three orders at ₹1,980. After clearing Area, choosing Kothrud and Wakad together should show KFM-502 and KFM-505, totaling ₹1,120.
  2. Combine the two named controls. Reset Area to Baner and select Ready on Status. Only KFM-503 matches. Its amount is ₹420. The two other Baner orders are Packed, so the Table hides them for this view.
  3. Add the numeric criterion. On Amount, apply Greater Than 500. This removes the ₹420 row. Expect zero data rows and a visible amount of zero. The full-source amount remains ₹3,100. Inspect both slicers and the Amount header indicator before interpreting why the list is empty.
  4. Clear Amount only. Use its header to remove that one criterion. The two slicers still have selections. KFM-503 should return at ₹420. Use the clear control on Area next. Status Ready remains active, so there are three visible IDs with amount ₹1,540: KFM-502, KFM-503 and KFM-505.
  5. Restore the original view. Clear the Status slicer. Confirm all five IDs, amount ₹3,100 and no unrelated manual hide. Keep a note describing the combination that produced zero so a future reader can understand it.
With Baner, Ready and Amount above 500 there are no results. Clear Amount and see one order at 420. Clear Area and all three Ready orders total 1540.
Clear just the control you intend to remove. The remaining criteria still shape the view.

Work backward from an empty view

  1. All three criteria active

    Area Baner, Status Ready and Amount above ₹500. No order passes all three. Source amount is still ₹3,100.

  2. Clear the Amount header

    KFM-503 passes the two slicers and returns at ₹420.

  3. Clear the Area slicer

    All three Ready orders return. Their visible amount is ₹1,540. Status still limits the view.

  4. Clear the Status slicer

    Check all five order IDs. The visible amount returns to the source amount of ₹3,100.

Test an independent Table and a growing source

Build a separate copy of the same five original records on another practice sheet called Check Packing and make a new Table with a different name. Turn on its Total Row. Now click Baner on the original Packing slicer again. The original Table should show ₹1,980 from three records. The second Table still has all five records and ₹3,100. Identical column labels and data do not connect the two Tables. Keep the second Table on another worksheet so a hidden row on the original does not hide a neighboring record just because it shares the same sheet coordinates.

Clear all original filters and turn off the Total Row temporarily before appending if necessary. Append KFM-506, Hinjawadi, ₹760, Packed to the original Table and check that it actually became a member. The all-source amount rises to ₹3,860. Re-enable the Total Row if you turned it off. Check that the Area control reflects the actual distinct values for the updated source in your client. If a new choice appears, select Hinjawadi and confirm the single ID and ₹760. If it is unavailable, verify the linked Table and its new row and examine all active criteria. Check the value through the header filter as a diagnostic or rebuild the practice slicer from the correct Table if needed.

Check the new category in combination with the status choices. With Area Hinjawadi selected, Status Ready yields zero since the only new order is Packed. A button may be unavailable in a current combination or the resulting list may be empty, depending on the control’s behavior. Verify equivalent criteria in the headers if you cannot select the combination through the panel. With Hinjawadi and Packed active, KFM-506 returns at ₹760. Now clear Area while keeping Packed. KFM-501, KFM-504 and KFM-506 meet the broader condition, giving three orders and ₹2,320. With both slicers clear, the new complete source is six IDs and ₹3,860.

Compare that empty combination with the earlier missing-option scenario. An empty combination can be a correct result even though the new area exists in the Table. Clear the relevant other filter before troubleshooting the linked source. This keeps an active Status condition from being mistaken for an import or Table sizing problem.

When only this new selection is active on the original, the independent copy remains at ₹3,100. The original and copy once started with the same numbers, but each worksheet has its own source and report. That difference is a useful test when you need to find out whether a control filters the Table you intended.

Keep a fixed metric beside the interactive view

Write down a stable rule without reading the slicer

The coordinator wants a daily control for Pune and Blinkit, but another user still needs to explore other cities and platforms. These are two different reporting requirements. On Check put the words Pune and Blinkit in two separate cells, for example B2 and B3. Give those cells labels such as Control City and Control Platform. In a spare cell use =SUMIFS(tblMini[Amount],tblMini[City],$B$2,tblMini[Platform],$B$3). SUMIFS goes through the named amount field and adds rows that meet both written tests. Its inputs are the stored category values and the two settings cells. It does not take the currently selected slicer items as arguments.

  1. Set the slicers to Pune and Blinkit. The fixed control and visible total should each show ₹434. The all-source sum remains ₹2,870. You have checked that two different ways of asking for the same population agree on the clean source.
  2. Switch the visible report to Nashik and Blinkit, leaving the Check criteria alone. The visual report shows two Nashik orders at ₹360. The fixed control stays at ₹434. No numeric value in the data has changed.
  3. Clear City and change Platform to Amazon Now. The visible amount is now ₹537. The fixed result remains ₹434. Change the Check inputs to Kolhapur and Amazon Now and confirm the fixed amount changes to ₹232. If you leave the slicers alone, the visible result stays ₹537. This exercise isolates what drives each metric.
  4. Restore the original Check inputs, clear both slicers and verify the independent controls again. Label the metrics Selected view, All orders and Fixed criteria. “Total” by itself cannot explain which of these three numbers a reader is seeing.

This setup does not commit anyone to a permanent report decision. It gives the team a shared reference point when the interactive view changes. If the fixed rule itself changes each week, record its two inputs and the intended source period next to its result. A clear variable label makes it possible to explain a result even after someone resets the workbook’s last chosen slicer state.

Use a controlled manual hide to test the visibility policy

In a scratch copy, select Pune and Blinkit so that BLK-1001, BLK-1006 and BLK-1009 are the visible matching IDs. Hide the whole worksheet row for BLK-1006 by hand. The 109 sum should drop from ₹434 to ₹284, and the visible ID count drops from three to two. A separate SUBTOTAL(9,...) can still include that manually hidden row while respecting the slicer’s filter, giving ₹434. The fixed SUMIFS remains ₹434 as well because the ID still matches its stored City and Platform. Compare these controls only after verifying which row was hidden. Restore the manual hide and clear the slicers when finished.

When a team wants the selected report to reflect every matching order regardless of ordinary manual hides, label the alternative subtotal accordingly. If the desired result is the visibly displayed worksheet rows, use a visibility policy that excludes manual hides. Keeping a statistic aligned with its definition is more important than making every figure on a page agree.

Reproduce a slicer view with the header menus

The same City field can be offered both as a slicer and as a header menu. That gives the reader two ways to inspect the Table’s filtering. To diagnose a confusing view, reset the intended filters and start with one known criterion in an ordinary header. Treat each stored field as one part of the rule. Do not assume applying a second control to the same field creates an additional independent field restriction. Check the resulting IDs and the indicators after changing a control.

  1. Use a clean copy with all ten Mini records. On City pick only Pune and Nashik in the header checklist. Check six IDs and ₹904. This calculation should agree with choosing both cities via the City slicer.
  2. On Platform pick Amazon Now. The result should still be the one Pune order at ₹110. For someone using an Excel client without the Table slicer control, the source question and result are the same.
  3. Open the header and clear City only. Three Amazon Now records totaling ₹537 become visible. The remaining restriction is on a different field. This when-cleared behavior is useful to include in the handoff instructions because readers sometimes expect one reset button to clear the worksheet.
  4. Keep a checklist for the actual viewing client. Open the prepared workbook, read the source and visible totals, apply a single known city, choose a second item in the same field and clear that field. Check whether the exact controls and labels are available. Use the alternative header path whenever an intended control is not provided.

Choose the verification evidence before handing off a result

A recipient may need a summary of just AMN-1003 rather than the workbook with every customer order. The slicer changes the view of the workbook. It does not restrict what someone with file access can recover by clearing filters. Build a separate extract of the agreed fields in a scratch copy, and verify that AMN-1003 is the one and only order ID in it. Confirm its city, platform and amount 110. A verified static extract also preserves the selection at the time of the handoff. If the recipient needs to explore the list instead, provide the appropriate full practice source and a short instruction for resetting the controls.

Give the workbook a sensible starting view. For learners, begin with every record visible so they can compare the before and after state. For a repeating review, tell the reader which filters are active when they first open it. Keep control names and fixed metric labels separate. A status line such as “Showing 1 of 10 orders” supports the selected view even if the user has scrolled away from the filter panel.

Build a slicer panel people can understand

Give each control a clear location and label

Place a simple instruction like “Choose City and Platform to change this view” above the Mini report. Give the panel enough width to display labels such as Sambhaji Nagar without losing the text. If the worksheet has a narrow design, keep a smaller count of useful slicers, place them in a clearly marked block and preserve the ordinary Table header menus. A viewer should have another way to apply a condition if the slicer panel is hard to open on their device.

Use enough contrast for labels and selections. Colors help when they are recognizable, but use the city or platform name, selected state and summary counts as the evidence. If the target reader uses a keyboard or assistive technology, test the worksheet and its controls with their actual Excel client. The Table header filter is a useful alternate way to work with the data. Microsoft's accessibility documentation describes sorting and filtering a Table through keyboard and screen reader controls. A visual Excel panel alone does not guarantee that everyone can use its choices.

Keep the controls away from growing records

A floating panel can obscure an order the sheet still contains. Use dedicated space above the Table or in an area deliberately kept clear. Add a test row and check the last available order, the new Total Row position and the slicer layout. Keep notes outside the data body. A reader who can see the slicers but cannot see the source header or new row may assume there is no extra item to check. A separate summary sheet can help when a workbook has several large operational views.

Limit the number of displayed slicer values by choosing fields that actually help the reader. City, Platform or a short status list usually have a manageable set of named options. A separate button for every unique order ID would require an enormous panel. Use the header filter and a verified ID lookup for that task. Arrange the report around the decisions learners will actually make: inspect one area, change platform, check the total and reset the view.

Delete a practice slicer only after verifying its current filter

If you do not need a panel, clear its filter first, then select the slicer object and use Delete or the documented Remove command. Verify the source rows and the other active filters afterward. Select the control itself when deleting. A data cell selected in the worksheet is a different object. For an exercise copy that should reopen with every record, compare the final ID count and source total before saving. A separated range with only the delivered report may not need a slicer at all.

Choose the report model before connecting controls

Each Table slicer in the Mini and Packing labs acts on its linked Table. To give two independent raw Table reports different interactive filters, add the appropriate controls for each as separate objects. Do not expect matching City field labels to link them. The exact row and amount differences in the second lab show why looking at the title alone is insufficient evidence that a panel controls the intended data.

A PivotTable displays a summary based on its own source. It can slice totals by fields even when the raw record list is on another worksheet. Microsoft documents Report Connections for sharing a slicer across appropriate PivotTables that share the same data source. That documented workflow is different from the raw Table slicer linked to one Table. If a business report needs one control to update several summaries, design the summaries on a compatible PivotTable source, check which connections the workbook offers and verify each output with known test values.

Another option is to leave the interactive Table in one place and put a separate visible subtotal somewhere else in the same workbook. The formula responds because it reads the same filtered records. It does not need a second slicer object. Describe which future changes should update it. If a total must always represent the full source, keep an independent SUM alongside the selected-view total. The summary users can then see whether they are looking at an interactive result or a fixed scope.

Diagnose a control without changing the source records

  • Insert Slicer is unavailable. Confirm you clicked inside an actual Excel Table, and confirm the client supports creating a slicer for that source type. Use the header filter fallback where needed.
  • The panel changes but the intended Table does not. Verify which Table was active when the panel was created. Turn off unrelated filters in a practice copy. Pick a city with a known ID count and see which report responds.
  • One slicer clears but some orders are still hidden. Check every active slicer, any header filter and any manual hidden rows. Deciding that a Table is clear requires confirming the full source IDs, not only one clear icon.
  • The visible total is zero. Check the visible ID count. An empty view differs from showing an order whose amount is actually zero. Clear one condition at a time so you can diagnose which criterion excluded the remaining records.
  • The grand total did not move. A normal SUM of the whole Table does not follow the slicer. Verify the visible count, Total Row formula and a standalone SUBTOTAL to see whether the filtered view is correct.
  • Extra category or missing new order. Look for distinct spellings or spaces in the source. Confirm each new record belongs to the linked Table and review active combinations before deciding whether the panel needs rebuilding.

Quiz. Predict the effect of each control

Which platform can be used to author the Table slicer in this lesson?

Microsoft documents Table slicer creation in Excel for Windows and Excel for Mac. The web creation workflow is for local PivotTables. Use the equivalent Table header filters if the Table slicer controls are unavailable.

What do Pune and Nashik selected together mean?

An order can qualify by being from either city. There are four Pune and two Nashik rows in this practice Table, making six orders worth ₹904.

Which result appears after also selecting Amazon Now?

AMN-1003 at ₹110 remains. It is the only Amazon Now order in the two selected cities. The other Amazon Now orders fail the City restriction.

Why does clearing the City slicer leave only three orders?

The Platform restriction remains on Amazon Now. It has three matching orders in the full Table and they total ₹537. Clear Platform too for the ten-order view.

How can visible amount be zero while the source says ₹3,100?

The Table retains all five orders, but none pass Baner, Ready and Amount greater than 500 together. The visible count is zero and the visible subtotal is zero. The separate all-source SUM still reads every original amount.

What should you check before relying on a new Area choice?

Confirm the new order is an actual member of the linked Table, then check the source area label and all current criteria. In the append exercise, Hinjawadi identifies KFM-506 and ₹760.

Interview practice. Explain the report setup

What is a good use of a slicer in a raw Table report?

Use clearly named Slicer controls for a short list of choices someone must change often, such as City or Status. The user can see the selection and check the visible count. Keep the header filters for numerical or date cutoffs.

Can one Table slicer control a second Table with identical fields?

The Table slicer belongs to its linked Table. The independent copy remains unchanged in the experiment. To share a control across appropriate PivotTables, use the documented Report Connections workflow with a compatible source.

How do you show a total that follows the selected view and one that does not?

Give the visible total a SUBTOTAL sum or use the Total Row, and give a separate control an ordinary structured SUM. Compare the Pune with Blinkit result of ₹434 against the master ₹2,870. Label each clearly.

How do you design an accessible report if slicers are hard to use?

Keep readable labels and the Table header filters available. Place panels away from the data and leave enough room for every label. Test the controls in the user’s client and show a visible count so people can verify their selection even through another workflow.

How do you troubleshoot a forgotten restriction?

Start with the full source check. Read the selected values and active header indicators. Clear one criterion and compare the IDs again. When the correct count returns, you know which part of the view removed those records.

Revision cards

  • Linked source. Select a cell in the intended Table before inserting the slicer.
  • One field. Several selected values are alternatives for that field.
  • Across fields. A record needs to pass each separate active condition.
  • Clear a control. Other slicers and active header filters can still limit the result.
  • Visible totals. Compare the subtotal and ID count with the whole-source total.
  • Object support. Use Windows or Mac desktop to create an Excel Table slicer and verify the intended client.

Microsoft references