Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Filter by Font Size: How To

· 6 min read · Home Tech

In this article
  1. Why Excel's Built-in Filter Doesn't Work on Font Size
  2. Method 1: Using a Helper Column with a Formula
  3. Method 2: Using Find & Select (Quick One-Off)
  4. Method 3: Using a VBA Macro (For Advanced Users)
  5. Common Problems and Pitfalls
  6. Alternatives to Filtering by Font Size
  7. Frequently Asked Questions

Yes, you can filter by font size in Excel, but not with the built-in filter. The standard AutoFilter works on cell values, not formatting. To filter by font size, you need to use a helper column with a formula, or use Find & Select to manually identify and filter cells. This article explains both methods in detail, along with common pitfalls and alternative approaches.

Why Excel's Built-in Filter Doesn't Work on Font Size

Excel's AutoFilter (the dropdown arrows in the header row) is designed to filter data based on the content of cells—numbers, text, dates, or cell color (if you use "Filter by Color"). It does not have a native option to filter by font size, font type, or font color. This is a long-standing limitation that surprises many users, especially those who use font size to visually distinguish categories or importance levels.

The only formatting-related filters that exist natively are for cell fill color and font color, and those are only available if the cell has already been formatted with those colors. Font size is not included in the filter criteria, so you must work around it.

Method 1: Using a Helper Column with a Formula

The most reliable and repeatable way to filter by font size is to create a helper column that extracts the font size of each cell using a formula, then filter on that helper column. Here's how:

  1. Insert a new column next to your data (e.g., if your data is in columns A-D, insert a new column E).
  2. In the first data cell of the helper column (e.g., E2), enter the formula: =GET.CELL(17,A2) — this returns the font size of cell A2. (See note below about this function.)
  3. Press Enter, then copy the formula down for all rows in your dataset.
  4. Now apply a filter to your data (select the header row, then Data > Filter).
  5. Click the dropdown arrow in the helper column header, and uncheck all font sizes except the one you want to keep (e.g., 12).

Important note about GET.CELL: This is a legacy macro function that is not available as a regular worksheet function. To use it, you must either:

  • Use the Name Manager to define a named formula that calls GET.CELL, or
  • Use a User Defined Function (UDF) in VBA.

Here's the Name Manager approach:

  1. Go to Formulas > Name Manager (or press Ctrl+F3).
  2. Click New.
  3. In Name, type something like FontSize.
  4. In Refers to, enter: =GET.CELL(17,INDIRECT("RC",FALSE)) — this references the current row's first column.
  5. Click OK, then Close.
  6. In your helper column, type =FontSize and copy down.

This method works in all modern versions of Excel (2010, 2013, 2016, 2019, 2021, and Microsoft 365). It requires the file to be saved as a macro-enabled workbook (.xlsm) if you use VBA, but the Name Manager approach works without saving as macro-enabled.

Method 2: Using Find & Select (Quick One-Off)

If you don't need a permanent solution and just want to find all cells with a specific font size, you can use Excel's Find feature:

  1. Press Ctrl+F to open the Find and Replace dialog.
  2. Click Options to expand the dialog.
  3. Click the Format button next to the "Find what" field.
  4. In the Find Format dialog, go to the Font tab.
  5. In the Size box, enter the font size you're looking for (e.g., 14).
  6. Click OK, then click Find All.

This will list all cells with that font size. You can then click on each result (or press Ctrl+A to select all listed cells) and manually apply a filter or delete them. This method is quick but not dynamic—if you change font sizes later, you'd have to repeat the process.

Method 3: Using a VBA Macro (For Advanced Users)

If you're comfortable with VBA, you can write a simple macro that filters rows based on font size. Here's a basic example:

Sub FilterByFontSize()
    Dim rng As Range
    Dim cell As Range
    Dim targetSize As Integer
    targetSize = InputBox("Enter font size to filter:")
    Set rng = Range("A1:A100") ' change to your data range
    For Each cell In rng
        If cell.Font.Size <> targetSize Then
            cell.EntireRow.Hidden = True
        End If
    Next cell
End Sub

This macro hides rows where the font size in column A doesn't match the target. You can then use the "Unhide" option to show them again. This is a one-time script, not a dynamic filter. To make it dynamic, you'd need to add more code to respond to worksheet events.

Common Problems and Pitfalls

  • GET.CELL returns 0 or #VALUE! – This often happens if the cell is empty or if the formula is not entered as an array. Make sure the cell has a value and that you're using the Name Manager correctly.
  • Filter doesn't update when font size changes – The GET.CELL formula is volatile, but it only recalculates when the workbook recalculates. Press F9 to force recalculation if needed.
  • Merged cells – GET.CELL may return the font size of the top-left cell only. Avoid merging cells in data ranges.
  • Conditional formatting – If font size is applied via conditional formatting, GET.CELL will not detect it because it reads the actual formatting, not the conditional formatting rule. You'd need to filter based on the condition itself.
  • Whole column references – Using A:A in GET.CELL can slow down your workbook. Limit the helper column to the actual data range.

Alternatives to Filtering by Font Size

If you're using font size to categorize data, consider these alternatives that are more filter-friendly:

  • Use a separate column for the category (e.g., "Importance") and filter on that.
  • Use cell fill color – Excel's built-in filter can filter by cell color, which is easier than font size.
  • Use conditional formatting to apply font size based on a rule, then filter by the rule's condition (e.g., filter on the value that triggers the rule).
  • Use Excel Tables – Tables have built-in filter controls, but they still don't filter by font size.

Frequently Asked Questions

Can I filter by font size in Excel Online (web version)?

No. Excel Online does not support the GET.CELL function, and the Find & Select method is limited. You'll need to use the desktop version for the full methods described above.

Why does my GET.CELL formula return 0?

GET.CELL returns 0 if the cell is empty or if the font size is not set (i.e., it's using the default). Make sure the cell has a value and that the font size is explicitly set. Also, ensure the formula is entered correctly via the Name Manager.

Is there a way to filter by font size without a helper column?

No, not with built-in features. The only native filter that works on formatting is for fill color and font color. For font size, you must use a helper column or a VBA macro.

Does filtering by font size work with tables?

Yes, the helper column method works with Excel Tables. Just add the helper column to the table, and the filter will be available in the table's header row.

Can I filter by multiple font sizes at once?

Yes, with the helper column method, you can check multiple font sizes in the filter dropdown (e.g., select both 10 and 12). The filter will show rows that have either size.