How can I filter data by bold font in Excel? 2

How can I filter data by bold font in Excel?

In Excel, users have the ability to filter data by bold font, allowing them to easily identify and sort specific information based on its formatting. This feature is particularly useful for organizing and analyzing large sets of data. By simply selecting the “Bold” option in the filter settings, users can quickly isolate and view only the cells that are bolded, providing a more streamlined and efficient way to work with data. This function can be applied to any type of data, including numbers, text, and formulas, making it a versatile tool for data management.

Filter by Bold Font in Excel (With Example)


Often you may want to filter cells in Excel based on whether or not the cells have bold font.

For example, suppose we have the following dataset and we’d like to filter the cells to only show the ones that have a bold font:

The easiest way to do this is by writing some code in VBA in Excel.

The following step-by-step example shows exactly how to do so.

Step 1: Enter the Data

First, enter the data values into Excel:

Step 2: Show the Developer Tab in Excel

Next, we need to make sure the Developer tab is visible on the top ribbon in Excel.

To do so, click the File tab, then click Options, then click Customize Ribbon.

Under the section called Main Tabs, check the box next to Developer, then click OK:

Step 3: Create a Macro Using VBA

Next, click the Developer tab along the top ribbon and then click the Visual Basic icon:

Next, click the Insert tab and then click Module from the dropdown menu:

Next, paste the following code into the module code editor:

Function FindBold(r As Range)
FindBold = r.Font.Bold
End Function

The following screenshot shows how to do so:

Once you’ve entered the code, feel free to close out of the VB Editor. The code will automatically be saved.

Step 4: Use the Macro to Check if Cells have Bold Font

Next, type the following formula into cell B2 to check if cell A2 has bold font or not:

=FindBold(A2)

Click and drag this formula down to each remaining cell in column B:

Column B now returns TRUE or FALSE to indicate if the each corresponding cell in column A has bold font or not.

Step 5: Filter by Bold Font

Now that we have a column with TRUE and FALSE values, we can simply filter the rows based on the values in this new column.

To do so, highlight the cell range A1:B11, then click the Data tab along the top ribbon, then click the Filter icon within the Sort & Filter group.

Then click the dropdown arrow next to the header Bold Font? and uncheck the box next to FALSE:

Once you click OK, the rows will be filtered to only show the ones where the team name has bold font:

Excel filter by bold font

Note: Feel free to uncheck the box next to TRUE to instead filter for cells that do not have bold font.

The following tutorials explain how to perform other common tasks in Excel:

Cite this article

stats writer (2024). How can I filter data by bold font in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-filter-data-by-bold-font-in-excel/

stats writer. "How can I filter data by bold font in Excel?." PSYCHOLOGICAL SCALES, 22 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-filter-data-by-bold-font-in-excel/.

stats writer. "How can I filter data by bold font in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-filter-data-by-bold-font-in-excel/.

stats writer (2024) 'How can I filter data by bold font in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-filter-data-by-bold-font-in-excel/.

[1] stats writer, "How can I filter data by bold font in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How can I filter data by bold font in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top