In today's #GoogleSheets tip, I'm going to show you how to highlight the top 5 values in your data.
There are loads of ways to do this, like adding a filter and sorting the values highest to lowest, but today we're going to be using formulas and conditional formatting.
Here's the dataset we'll be using. Let's dive in!
1️⃣ Highlight your data, but exclude the header row, i.e. A2:C21 in this example
2️⃣ Open the menu: Format > Conditional formatting
3️⃣ Under Format rules, select Custom formula is
4️⃣ Add one of the following formulas:
=$C2>=LARGE($C$2:$C$21,5)
or
=RANK($C2,$C$2:$C$21)<=5
The functions LARGE and RANK can all identify the position of a value relative to others around it.
5️⃣ Choose your format options, e.g. highlight the rows yellow.
Here's what the end result looks like.
For more examples, the template, and a walkthrough of the formulas above, have a read of How To Highlight The Top 5 Values In Google Sheets ⬇️
The SEQUENCE function is an amazingly useful function in #GoogleSheets. It lets you create sequences of numbers from a single formula. The obvious use case is to create a count up 1, 2, 3, 4, 5 etc.
But did you know you can easily create a count down in your Sheets too? 👇
This single, simple formula:
=SEQUENCE(100,1,100,-1)
counts down from 100 e.g. 100, 99, 98, 97, 96...1
To count down from some other number, for example 50, change it as follows:
=SEQUENCE(50,1,50,-1)
Easy-peasy!
The four numbers you enter as arguments to the SEQUENCE function represent:
✅ Number of rows (e.g. 100)
✅ Number of columns (e.g. 1)
✅ Start number (e.g. 100)
✅ Step to increase/decrease by (e.g. -1)
If you create #GoogleSheets that multiple people use, one super helpful thing you can do is add a sidebar to your Sheets, containing key info or instructions.
Today I'm going to show you how to create sidebars using the group columns feature...
STEP 1️⃣
Highlight some columns, right click, and choose Group columns.
This adds a button above the columns, which you can toggle to show/hide these grouped columns.
STEP 2️⃣
Right-click on the +/- button and select left or right to set the +/- toggle button to be on the left or right of the group.