Let's learn how to use custom checkbox values to use checkboxes directly in #GoogleSheets formulas. 🎉
(1/6)
When you create a checkbox through the Data > Data validation menu, you have the option to set custom values, instead of TRUE/FALSE.
For example, you could set the checked value to 1, instead of TRUE, and the unchecked value to 0, instead of FALSE.
(2/6)
Using 1 and 0 like this allows you to use a SUM function to count how many checkboxes are checked.
This wouldn't work with TRUE/FALSE values, which would always sum to 0 whatever checkboxes were checked.
(3/6)
Here's a student assignment template.
It uses checkboxes with the TRUE value set to 20% and the FALSE value to 0, to show overall progress.
The SUM function adds up the 5 boxes. Each checkbox has a value of 20% when checked, so if all 5 are checked the total is 100%.
(4/6)
Some notes...
1) While you can enter decimal values into the checkboxes, you can't enter values less than 1 apart. E.g. you can't enter 0.5 for TRUE and 0 for FALSE, but you can enter 1.5 and 0.
(5/6)
2) Formulas are not permitted in checkbox values.
3) You only need to set up your data validation checkbox for one cell. You can copy-paste it into other cells.
If you use this technique for anything interesting, let me know!
(6/6)
• • •
Missing some Tweet in this thread? You can try to
force a refresh
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.