Note: The other languages of the website are Google-translated. Back to English

How to highlight or conditional formatting the max or min value in Google sheet?

Normally, you can quickly highlight the largest or smallest value by using Conditional Formatting in Microsoft Excel. But, you may not find a similar feature in Google sheet. Here, I will introduce how to highlight the max or min value in Google sheet?

Highlight the largest or smallest value with Conditional Formatting in Google sheet

Highlight the top n or bottom n values with Conditional Formatting in Google sheet


Highlight the largest or smallest value with Conditional Formatting in Google sheet


To highlight the max or min value from a list in Google sheet, please do as follows:

1. Click Format > Conditional formatting, see screenshot:

2. In the Conditional format rules pane, under the Single color tab, do the following operations:

(1.) Click button under the Apply to range section to select the data column that you want to highlight the max or min value from;

(2.) Then choose Custom formula is from the Format cells if drop down list, and then enter this formula: =$B:$B=max(B:B) into the text box to highlight the largest value from column B;

Note: To highlight the smallest value, please enter this formula: =$B:$B=min(B:B).

(3.) And then choose one formatting style to highlight the cell from the Formatting style section as you need.

3. And the largest or smallest value has been highlighted at once, then click Done button to close the pane.


Highlight the top n or bottom n values with Conditional Formatting in Google sheet

If you need to highlight the top / bottom 3 or 5 or n values, the following steps may help you.

1. Go to the Conditional format rules pane by clicking Format > Conditional formatting.

2. In the Conditional format rules pane, do the following options:

(1.) Click button under the Apply to range section to select the data column that you want to highlight the top / bottom n values from;

(2.) Then choose Custom formula is from the Format cells if drop down list, and then enter this formula: =$B2>=large($B$2:$B,3) into the text box to highlight the top three values from column B;

Note: To highlight the bottom three values, please enter this formula: =$B2<=small($B$2:$B,3).

(3.) And then choose one formatting to highlight the cells from the Formatting style section as you need.

3. And the top or bottom 3 values have been highlighted immediately, then click Done button to close the pane as you need.


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, 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!
officetab bottom
Comments (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I've been struggling with conditionally highlighting the min cell of a column until I read this. Thank you very much!
This comment was minimized by the moderator on the site
Thank you this was very helpful.
This comment was minimized by the moderator on the site
Also bei mir funktioniert die Formel für min/max in google Tabellen nicht. hat sich da bei der Syntax was verändert? Grüße
This comment was minimized by the moderator on the site
nicht die benutzerdefinnierte Formel wählen. Stattdessen aus dem drop down "ist gleich" und die Formel =max(B:B)
This comment was minimized by the moderator on the site
Why It's now working on my cells
This comment was minimized by the moderator on the site
Why doesn't this work if you only need the top 2 values? Example would from a full row from C18 to I18. Need a little help. Thanks!
This comment was minimized by the moderator on the site
This is the formulat if you want to apply to select range instead of entire column:
=if($e$18:$e$27="",FALSE,e18:e27=max($e$18:$e$27))
This comment was minimized by the moderator on the site
It works well, Thanks!!
This comment was minimized by the moderator on the site
Hey, wie muss ich die oben angegebene Formel "= $B:$B = min(B:B)" anpassen, damit nicht die ganze Spalte nach dem kleinsten Wert durchsucht wird, sondern nur ein angegebener Bereich, in obigem Beispiel also B2:B21? Meine Versuche, die Zeilenangaben, mit oder ohne "$", einzubinden haben alle nicht richtig funktioniert.
This comment was minimized by the moderator on the site
I am using the =$B2<=small($B$2:$B,3) formatting for a spreadsheet to highlight the (5) smallest values in a column and it works great. However not all of the cells will have a value and the CF formula wants to highlight the blank cells. How do I ignore the blank cells? I tried adding another rule for "is empty" but it didn't work?
This comment was minimized by the moderator on the site
I figured it out, but if there is an easier way please share.

This is what I came up with =IF(C17<>"",C17<=small($C$17:$C$26,5),"")
This comment was minimized by the moderator on the site
Hello Tom,

Thanks for your share. Your formula works perfectly when I want to ignore the blank cells while highlighting the Nth smallest values.

And the reason why the blank cells can be highlighted is that a blank cell is treated as value zero (0). When 0 is among the top/bottom Nth values, the blank cells will be highlighted.

So there also can be a case when we want to hightlight the 5 largest values in a column and 0 can be among the top 5 values, so the blank cells can also be highlighted. Please use the formula like =IF(A1<>"",A1>=LARGE($A$1:$A$24,5),""). Then the blank cells will be ignored. Please see the attached screenshots.

Thanks again for your kindness. Have a nice day.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
minimum formula isn't working on google sheet
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations