Skip to content

Tables, sorting and filtering

This chapter covers the tools for working with lists: a stock register, a sales register, a party list or a bank statement. A table gives a list a style, filter buttons, a total row and column names to use in formulas. Sorting and filtering put the rows in order and show only the ones you want.

Tables are on the Insert tab and on Home ▸ Styles. Sort, filter and the other list tools are on the Data tab.

A kirana shop's stock list as a table with a Total Row. A Category slicer beside it has Tea picked, so only the two tea rows show, and the Total Row adds up only those: 12,660.00. The Table Design tab is open, and the status bar says 2 of 8 records found.

Making a table

  1. Click any cell in your list. The list needs a row of headings at the top.
  2. Go to Insert ▸ Tables ▸ Table, or press Ctrl+T (Ctrl+L also works).
  3. The Create Table dialog shows Where is the data for your table? with the cells Ganit found around the active cell. Change them if they are wrong.
  4. Leave My table has headers ticked if the first row holds your headings. Ganit ticks it when the top row is all text and the row under it isn't.
  5. Click OK.

The table gets the green Medium 1 style, banded rows and a filter button on each heading. Ganit names it Table1 (then Table2, and so on) and shows a tip with a formula you can use, such as =SUM(Table1[Amount]).

If you untick My table has headers, Ganit puts the headings Column1, Column2… in the row above the data. When that row isn't empty, it inserts a new row for them.

Format as Table

Home ▸ Styles ▸ Format as Table does the same with a style you pick first. Click a style in the gallery, then check the cells in the Create Table dialog and click OK. If the active cell is already in a table, the style you pick replaces the table's style.

A table can't overlap another table or a pivot table, and can't hold merged cells. Unmerge them first.

The Table Design tab

The Table Design tab appears while the active cell is inside a table. Click a cell in the table, then click the tab.

Naming a table

Type a new name in Table Design ▸ Properties ▸ Table Name and press Enter. Use a name that says what the table holds, such as Stock or Sales2026, because you will type it in formulas.

  • A name starts with a letter or _, and holds letters, numbers, full stops and _. Spaces are not allowed.
  • No two tables, or a table and a defined name, can have the same name.
  • Formulas that use the table change to the new name by themselves.

The Name Box's list shows each table, so you can go to one by choosing its name. Formulas ▸ Name Manager lists tables too.

Resizing a table

A table grows by itself:

  • Type in the row just under the table and that row joins it. The new row takes the formatting and the column formulas from the row above.
  • Type a heading in the column just to the right of the header row and that column joins it.

To change the size yourself, click Table Design ▸ Properties ▸ Resize Table, type the new cells, such as =$A$1:$F$40, and click OK. The header row has to stay in the same row, and there must be at least one row of data.

Total Row

Tick Table Design ▸ Table Style Options ▸ Total Row to add a row under the table. Ganit writes "Total" in the first column and adds up the last column (or counts it, when it doesn't hold numbers). If the row under the table isn't empty, Ganit inserts a row for the totals.

To choose the total for a column:

  1. Click the column's cell in the Total Row. A ▾ button appears beside it.
  2. Click ▾, or press Alt+↓, and pick a function.
Choice What it shows Formula it writes
None Nothing
Average The average of the column =SUBTOTAL(101,Table1[Qty])
Count How many cells aren't empty =SUBTOTAL(103,…)
Count Numbers How many cells hold numbers =SUBTOTAL(102,…)
Max, Min The largest or smallest value =SUBTOTAL(104,…), =SUBTOTAL(105,…)
Sum The total =SUBTOTAL(109,Table1[Amount])
StdDev, Var Standard deviation, variance =SUBTOTAL(107,…), =SUBTOTAL(110,…)
More Functions… Starts =SUBTOTAL(109, in the cell for you to finish

These SUBTOTAL formulas leave out rows hidden by a filter, so the Total Row shows the total of the rows you can see. In the picture above, the Amount total is 12,660.00: the two tea rows only.

You can also type your own formula or text in a Total Row cell.

Note

With the Total Row on, don't sort the table from Data ▸ Sort A to Z, Sort Z to A or Sort…. These sort the Total Row along with the data, and the totals then go wrong. Sort from the ▾ on the column's heading instead (see Filtering), which sorts only the data rows. If it has happened, press Ctrl+Z.

Style options and table styles

The other tick boxes under Table Style Options:

Tick box What it does
Header Row Shows or hides the row of headings
Banded Rows Shades every other row
First Column, Last Column Makes the first or last column bold
Banded Columns Shades every other column
Filter Button Shows or hides the ▾ buttons on the headings

Table Design ▸ Table Styles opens the gallery: seven colours (green, blue, saffron, teal, purple, rose and slate) in Light, Medium and Dark. Point at a style to see its name, such as Medium 2. Clear at the bottom takes the style off and leaves plain cells.

Converting a table back to a range

Table Design ▸ Tools ▸ Convert to Range keeps the cells and their look, but they stop being a table. Ganit asks first. Formulas that use the table's column names change to cell addresses: =SUM(Stock[Amount]) becomes =SUM($D$2:$D$6).

The Tools group also has Pivot Table (see Pivot tables) and Insert Slicer (below).

Using table columns in formulas

Inside a table, a formula can use a column by its name instead of cell addresses. Take a table named Stock in A1:C6:

Item Qty Rate
Tea 250 g 40 120
Sugar 1 kg 50 44
Toor dal 1 kg 30 165
Basmati rice 5 kg 12 610
Poha 1 kg 25 58
  1. Type the heading Amount in the first empty column to the right. The column joins the table.
  2. In the first row under it, type =[@Qty]*[@Rate] and press Enter.
  3. Ganit fills the formula down the whole column. This is a calculated column: rows you add later get the formula too.

[@Qty] means "the Qty in this row". Other ways to name parts of a table:

You type It means Example and result
Stock[Amount] The Amount column, data rows only =SUM(Stock[Amount]) gives 20720
[@Qty] Qty in the same row =[@Qty]*[@Rate] gives 4800 for 40 × 120
Stock[#All] The whole table, with headings and totals
Stock[#Headers] The header row
Stock[#Data] The data rows
Stock[#Totals] The Total Row =Stock[[#Totals],[Amount]]
Stock The data rows =ROWS(Stock) gives 5

If you rename a heading, formulas that use the column change to the new name. See Formulas for more about references and names.

Slicers

A slicer is a box of buttons, one for each value in a table column. Click a button to show only the rows with that value. Slicers work with tables, not with plain ranges or pivot tables.

  1. Click a cell in the table.
  2. Go to Insert ▸ Filters ▸ Slicer, or Table Design ▸ Tools ▸ Insert Slicer.
  3. In Insert Slicers, under Pick the columns to filter by:, tick one or more columns, such as Category. Click OK.

Each slicer appears to the right of the table. Drag it by its heading to move it, and drag its handles to resize it.

To Do this
Show one value Click its button. Click it again to show all rows.
Add or take away a value Ctrl+click the button (⌘+click on a Mac), or turn on the multi-select button at the top of the slicer and click
Pick a run of values Click the first, then Shift+click the last
Show all rows again Click the clear-filter button at the top right of the slicer

A slicer and the column's ▾ filter button show the same filter, so changing one changes the other. The status bar says how many rows are showing, such as "2 of 8 records found".

The Slicer tab

Click a slicer to open the Slicer tab:

Group What it does
Slicer Caption The heading at the top of the slicer
Slicer Styles ▸ Styles Colours for the picked buttons: Light 1 to Light 6, Dark 1 to Dark 4
Buttons ▸ Columns Buttons side by side: 1 to 6 columns
Arrange ▸ Remove Slicer Deletes the slicer. You can also press Delete.

Removing a slicer leaves its filter on the table. Clear it from the column's ▾ button.

Note

Ganit keeps one filter on a sheet. If the sheet already has a filter on other cells, Ganit can't add a slicer. Turn that filter off with Data ▸ Filter first.

Sorting

Quick sort

  1. Click a cell in the column to sort by.
  2. Go to Data ▸ Sort & Filter ▸ Sort A to Z or Sort Z to A. They are also in Home ▸ Editing ▸ Sort, and on the right-click menu.

Ganit sorts the whole list around the active cell, so each row stays together. It leaves the first row in place when it looks like headings: when the first row is bold and the next isn't, or the first row is all text and the next holds a number.

To sort only some cells, select them first. Ganit then sorts only the selected cells.

Numbers sort smallest to largest with Sort A to Z, and dates oldest to newest. Empty cells always go last.

Sorting by several columns

Data ▸ Sort & Filter ▸ Sort… (Home ▸ Editing ▸ Sort ▸ Custom Sort…) opens the Sort dialog. Use it to sort a sales register by Area, then by Party within each area, then by Date.

  1. Click a cell in the list and open Sort….
  2. Check My data has headers. With it ticked, the Column lists show your headings.
  3. On the Sort by line, pick the Column, what to Sort On and the Order.
  4. Click + Add Level for each Then by column.
  5. Click OK.
Button What it does
+ Add Level Adds a level under the one picked
✕ Delete Level Removes the level picked
Copy Level Adds a copy of the level picked

Sort On has three choices:

Sort On Order
Cell Values A to Z or Z to A
Cell Color A colour from the column, and On Top or On Bottom
Font Color A colour from the column, and On Top or On Bottom

A sort can have up to 64 levels. The dialog opens with the sheet's last sort when you sort the same rows again.

The line under the levels says which cells are being sorted, such as "Sorting A1:F120".

Hindi and Marathi text

Next to Hindi / Marathi text, choose Hindi dictionary order or Marathi dictionary order. Marathi order puts ळ, क्ष and ज्ञ after ह. Ganit remembers the choice. Until you choose, it uses Marathi order when the menus are in Marathi. See Indian formats, words and languages.

Sorting by colour

To bring the coloured rows to the top, for example the unpaid bills you marked in red:

  • Right-click a cell with that colour and choose Put Selected Cell Colour On Top or Put Selected Font Colour On Top.
  • Or use the column's ▾ filter button ▸ Sort by Color.
  • Or use Sort… with Sort On set to Cell Color or Font Color.

Rows that tie keep their order.

Note

Ganit can't sort cells that are merged. It asks you to unmerge them first (Home ▸ Merge & Center ▸ Unmerge Cells).

Filtering a list

A filter hides the rows you don't want to see. Nothing is deleted.

  1. Click a cell in the list.
  2. Go to Data ▸ Sort & Filter ▸ Filter, or press Ctrl+Shift+L. A ▾ button appears on each heading.
  3. Click the ▾ on a heading. Untick the values you don't want, and click OK.

The ▾ of a filtered column shows a funnel. The status bar says how many rows are showing, such as "45 of 320 records found". Click Filter again, or press Ctrl+Shift+L, to take the buttons off and show every row.

A table has its own filter buttons. Turn them on or off with Table Design ▸ Filter Button.

The filter list

The panel under ▾ has:

Item What it does
Sort A to Z, Sort Z to A Sorts the list by this column. For numbers: Sort Smallest to Largest, Sort Largest to Smallest.
Sort by Color Brings rows with a fill or font colour to the top. Only when the column has more than one colour.
Clear Filter From "Column" Shows all values of this column again
Filter by Color Shows only the rows with a fill or font colour you pick
Text Filters, Number Filters or Date Filters Conditions, below
Search Type part of a value to narrow the list. OK then shows only the values found.
(Select All) Ticks or unticks every value
(Blanks) Empty cells

Dates are listed by year. Click ▸ beside a year to see its months, and beside a month to see its days. Tick a whole year or month at once.

Text filters

For a column of text, Text Filters has: Equals, Does Not Equal, Begins With, Does Not Begin With, Ends With, Does Not End With, Contains, Does Not Contain, and Custom Filter….

Each opens the Custom Filter dialog. It has two lines, joined by And or Or. Pick a comparison and type or pick a value on each line. In the value, ? stands for any one character and * for any run of characters. For example, equals Shree* shows Shree Kirana and Shree Traders.

Number filters

For a column of numbers, Number Filters has: Equals, Does Not Equal, Greater Than, Greater Than Or Equal To, Less Than, Less Than Or Equal To, Between, Top 10…, Above Average, Below Average and Custom Filter….

Between opens Custom Filter with is greater than or equal to and is less than or equal to. For bills from ₹10,000 to ₹50,000, type 10000 and 50000.

Top 10… opens the Top 10 Filter dialog: choose Top or Bottom, a number, and Items or Percent. For the five biggest parties, choose Top, 5, Items.

Date filters

For a column of dates, Date Filters has:

Group Choices
Compare Equals, Before, After, Between
Days Tomorrow, Today, Yesterday
Weeks, months, quarters, years Next, This and Last Week, Month, Quarter and Year; Year to Date
Financial year Next Financial Year, This Financial Year, Last Financial Year, Financial Year to Date
All Dates in the Period Quarter 1 to Quarter 4, FY Quarter 1 (Apr–Jun) to FY Quarter 4 (Jan–Mar), January to December

The financial year runs April to March. This Financial Year, on a date in November 2026, shows 1 April 2026 to 31 March 2027.

Equals, Before, After and Between open Custom Filter. Type dates like 13/11/2026.

Note

In an .xlsx file, the financial-year filters are saved as a fixed range of dates, and the FY quarters as calendar quarters (FY Quarter 1 as Quarter 2), because other spreadsheet apps have no financial-year filter.

Filters on more than one column

Filter as many columns as you like. A row shows only when it passes every column's filter. To see Om Stores' sugar bills, filter Party to Om Stores and Item to Sugar.

Clear and Reapply

  • Clear Filter From "Column" in a ▾ panel clears that column's filter.
  • Data ▸ Sort & Filter ▸ Clear clears every filter on the sheet. The ▾ buttons stay.
  • Data ▸ Sort & Filter ▸ Reapply filters again after you have changed the data. A row you edit doesn't hide by itself when it stops matching the filter.

Clear and Reapply are also in Home ▸ Editing ▸ Sort.

Removing duplicate rows

Data ▸ Data Tools ▸ Remove Duplicates deletes rows that repeat. Use it on a party list pasted from several bills, or a list of bill numbers entered twice.

  1. Click a cell in the list, or select the cells.
  2. Click Remove Duplicates.
  3. Check My data has headers. In a table, Ganit sets it for you.
  4. Under To delete duplicate rows, select the columns that hold the duplicates, tick the columns to compare. Select All and Unselect All tick or untick them all.
  5. Click OK.

Ganit keeps the first row of each set of repeats and deletes the others. It then says how many it removed, for example: "2 duplicate values found and removed; 3 unique values remain."

For example, with Bill No, Party and Amount ticked:

Bill No Party Amount
101 Shree Kirana 5400
102 Om Stores 3200
101 Shree Kirana 5400
103 Laxmi Traders 7800
102 Om Stores 3200

leaves rows 101, 102 and 103. Tick only Party to keep one row per party.

Press Ctrl+Z if too much went.

Splitting a column with Text to Columns

Data ▸ Data Tools ▸ Text to Columns splits one column of text into several. Use it on lines pasted from a message or a .txt file, such as 05/04/2026,INV-101,Shree Kirana,5400.

  1. Select the cells of one column.
  2. Click Text to Columns.
  3. Choose how the text is split:
    • Delimited: commas, tabs or other characters separate the fields.
    • Fixed width: the fields line up in columns with spaces between.
  4. Set the options (below). The Data preview shows the result as you change them.
  5. Above each column of the preview, choose its format.
  6. Check Destination, the top-left cell of the result. It starts as the first selected cell, so the result replaces the column.
  7. Click Finish.

For Delimited:

Option What it does
Delimiters Tab, Semicolon, Comma, Space, or Other with a character you type, such as | or -
Treat consecutive delimiters as one Two commas or spaces in a row count as one break
Text qualifier " or ': text between them stays together, even with commas inside. {none} turns this off.

Ganit guesses the delimiter from the text: tab, else comma, else semicolon.

For Fixed width, Ganit shows the text with a ruler. Click in the text to add a break, and click a break to take it away.

The column formats:

Format What it does
General Numbers become numbers, the rest stays text
Text Keeps the text as it is, such as a mobile number or a bill number with leading zeros
Date (DMY), Date (MDY), Date (YMD) Reads dates in that order. Use DMY for 05/04/2026 as 5 April.
Do not import Leaves the column out

The example line above, split at commas with the first column as Date (DMY), gives a date, INV-101, Shree Kirana and the number 5400.

If the result would write over cells that already have something in them, Ganit asks "Do you want to replace the contents of the destination cells?"

Note

Text to Columns splits one column at a time. If you select cells in more than one column, Ganit asks you to select a single column.

To pull parts out of text by example instead, such as first names from full names, use Fill by Example (Ctrl+E). See Entering and editing data.

Data validation

Data ▸ Data Tools ▸ Data Validation controls what can be typed in cells: a choice from a list, a number in a range, a date, or a valid GSTIN or PAN. Its ▾ has Circle Invalid Data and Clear Validation Circles. See Entering and editing data.

Grouping rows and columns (outline)

An outline lets you fold away detail rows and see only totals. The Outline group on the Data tab has Group, Ungroup, Subtotal, Show Detail and Hide Detail.

Group and Ungroup

  1. Select the detail rows, such as each day's sales under a month's total.
  2. Go to Data ▸ Outline ▸ Group, or press Alt+Shift+→ (⌥⇧→ on a Mac).
  3. If you selected cells rather than whole rows, choose Rows or Columns and click OK.

A bar appears to the left of the row numbers, with a − button by the row under the group. Click − to fold the group away, and + to open it again. The number buttons at the top of the bar (1, 2, 3…) show that many levels for the whole sheet: 1 shows only the outermost rows.

Groups can sit inside groups, up to eight levels. Columns group the same way, with the bar above the column letters.

To Do this
Ungroup rows or columns Select them and click Data ▸ Outline ▸ Ungroup, or press Alt+Shift+← (⌥⇧← on a Mac)
Remove every group on the sheet Ungroup ▸ Clear Outline
Fold or open the group at the active cell Data ▸ Outline ▸ Hide Detail or Show Detail

Subtotals

Data ▸ Outline ▸ Subtotal adds a total row at each change in a column, a grand total, and groups the rows. Use it to total a sales register by branch, by month or by item.

  1. Sort the list by the column to total by, so that each group's rows are together. For example, sort by Branch.
  2. Click a cell in the list and click Subtotal.
  3. In At each change in, choose the column, such as Branch.
  4. In Use function, choose Sum, Count, Average, Max, Min, Product, Count Numbers, StdDev, StdDevp, Var or Varp.
  5. Under Add subtotal to, tick the columns to total. Ganit ticks the last column with numbers.
  6. Click OK.
Option What it does
Replace current subtotals Takes away subtotals made before. Untick it to add a second set, such as an average under each sum.
Page break between groups Starts each group on a new printed page
Summary below data Puts each total under its group. Untick it to put totals above.

For example, a branch-wise sales list:

Branch Month Sales
Nashik Apr 1,20,000
Nashik May 1,35,000
Nashik Total 2,55,000
Pune Apr 2,10,000
Pune May 1,98,000
Pune Jun 2,25,000
Pune Total 6,33,000
Grand Total 8,88,000

The totals are formulas, such as =SUBTOTAL(9,C2:C3), so they follow changes in the data. Click outline button 2 to see only the branch totals and the grand total.

To take the subtotals away, open Subtotal again and click Remove All.

Note

Subtotals can't go in a table. Convert it to a range first with Table Design ▸ Convert to Range.

Keeping the headings in view

To keep a long list's heading row on screen as you scroll, use View ▸ Window ▸ Freeze Panes ▸ Freeze Top Row. See Comments, review and protection.