Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to conditional formatting based on frequency (the most common number/text) in Excel?

For example you want to conditionally format the most frequent cells in a range, how could you quickly to solve it in Excel? And what if conditional formatting entire rows based on frequencies of values in the specified column? This article provides two workarounds:

Apply Conditional formatting to number cells based on frequency

Apply conditional formatting to text cells/rows based on frequency

Easily sort by frequency of occurrences in Excel

Kutools for Excel's Advanced Sort utility supports sorting data by text length, last name, absolute value, frequency, etc. in Excel quickly. Full Feature Free Trial 60-day!

ad sort by frequency 2



This method is talking about conditional formatting the most frequent number cells in a range in Excel. Please do as follows:

1. Select the range you will apply conditional formatting to, and click Home > Conditional Formatting > New Rule.

doc conditional formatting frequency 1

doc conditional formatting frequency 2

2. In the opening New Formatting Rule dialog box, please:

(1) Click to highlight the Use a formula to determine which cells to format option in the Select a Rule Type section;

(2) In the Format values where this formula is true box, please enter the formula =B2=MODE($B$2:$D$13) ($B$2:$D$13 is the specified range you will find out the most frequent values, and B2 is the first cell of this range);

(3) Click the Format button. See screenshot:

3. Now you get into the Format Cells dialog box, please specify the formatting you will apply to the most frequent number cells, and click the OK button.
In our case, we specify a fill color under the Fill tab. See screenshot:

doc conditional formatting frequency 3

4. Now you get back to New Formatting Rule dialog box, please click the OK button to apply the conditional formatting.

And then you will see the most frequent number cells are filled by the specified color automatically. See screenshot:

doc conditional formatting frequency 4

Note: This method is only able to apply conditional formatting to number cells. If you want to find out the most frequent text and then conditionally format, please view the next workaround.


This method will introduce Kutools for Excel’s Find most common value formula to find out the most frequent text/number cell from a column, and then apply conditional formatting based on the found value.

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

1. Select a blank cell you will place the most frequent value into, says Cell F2, and click Kutools > Formulas > Find most common value; next in the opening Formula Helper dialog box, specify the column you will find the most frequent value from, and click the Ok button. See screenshot:

doc conditional formatting frequency 5

And then you will get the most frequent value in the selected cell.

2. Select the range you will apply conditional formatting to, click Home > Conditional Formatting > New Rule, and then in the opening dialog box please do as follows:

(1) Click to highlight the Use a formula to determine which cells to format option in the Select a Rule Type section;

(2) In the Format values where this formula is true box, please enter the formula =$B1=$F$2 ($B1 is the first cell of the column where you get the most frequent value, $F$2 is the cell with the most frequent value);

(3) Click the Format button. See screenshot:

doc conditional formatting frequency 6

3. In the popping up Format Cells dialog box, please specify the formatting as you need and click the OK button. In our case, we specify a fill color under the Fill tab. See screenshot:

doc conditional formatting frequency 3

4. Now you get back to New Formatting Rule dialog box, please click the OK button to apply the conditional formatting.

And then you will see the entire rows are automatically filled by color based on the most frequent value of specified column. See screenshot:

doc conditional formatting frequency 7

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!


In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!




Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.