|
Brought to you by:
Welcome to the Google Sheets Tips newsletter #374, your Monday morning espresso, in spreadsheet form! Coming to you from the cold and snowy East Coast of the US. We didn't quite get the 20 inches of snow forecast earlier in the week, but we did end up getting around 8 - 10 inches of very dry, powdery snow. And with the temps rarely getting above 20 F (-7 C) this week, it's going to stick around for a while yet. School is closed so you'll probably find me and my family and neighbors making the most of the snow: ➜ NewsI. II. Read the full comment here >> III. ➜ Sheets Tip #374: Task list with status barConsider this simple task list that uses checkboxes to indicate when a task has been completed: Let's spruce it up a bit! First, let's add a conditional formatting rule to make it easier to see the items that have been completed. Format > Conditional formatting Then select "Custom formula is" as the format rule and set it to =$B2 I set the formatting to strikethrough and grey cell background, which gives us this effect: Now we'll add a status indicator to show how far through completing the list we are. Under the checkboxes, add this formula: =COUNTIF(B2:B9,TRUE)/8 If your checkboxes are in a different range, you'll need to adjust both the range (B2:B9) and the denominator (the number we divide by, in this case 8). The denominator should equal the total number of checkboxes. Format the cell as a % to show what percent of the checkboxes are checked. Taking it further, we could add a sparkline in the cell under the percent to visually show this: =SPARKLINE(B11,{"charttype","bar";"max",1;"color1","black"}) In this example B11 contains the percent formula. In our Sheet, it looks like this: Let's use HSTACK to tidy it up a bit. Replace the percent and sparkline formulas with this single formula: =HSTACK(COUNTIF(B2:B9,TRUE)/8,SPARKLINE(COUNTIF(B2:B9,TRUE)/8,{"charttype","bar";"max",1;"color1","black"})) This is a rather ghastly formula where the COUNTIF is repeated twice, so let's clear it up with a LET function: =LET(p,COUNTIF(B2:B9,TRUE)/8, HSTACK(p,SPARKLINE(p,{"charttype","bar";"max",1;"color1","black"}))) In our Sheet, it now looks like this: Finally, we can get really fancy and overlay the percent on the sparkline bar chart: The formula now sits in column A (in cell A11). It's a modified version of the HSTACK above that "pushes" the percent value out of its cell (A11) into the adjacent cell (B11), which contains the sparkline. =LET(p,COUNTIF(B2:B9,TRUE)/8,
offset,REPT(CHAR(8194),17+p*14)&TEXT(p,"0%"),
HSTACK(offset,SPARKLINE(p,{"charttype","bar";"max",1;"color1","black"})))
The value "17+p*14" is the amount of the offset, i.e. how many characters to "push" the percent value across. Feel free to experiment with the values to move it closer or further out, especially if you change the width of your columns. If you enjoyed this newsletter, please forward it to a friend who might enjoy it. Have a great week! Cheers, |
Get better at working with Google Sheets! Join 50,000 readers to get an actionable tip in your inbox every Monday.
Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #373, your Monday morning espresso, in spreadsheet form! January is a great time to sharpen your Google Sheets fundamentals: those small skills you build now that will save you time all year. One of the best examples is learning a few simple keyboard shortcuts, which is what we're going to see today. You probably already use Ctrl + C and Ctrl + V to copy and paste values, and can appreciate how this is quicker than...
Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #372, your Monday morning espresso, in spreadsheet form! Hoping your 2026 is off to a great start! I'm feeling positive and optimistic for 2026, but reality has also kept me grounded ;) I've only had one work day so far (kids were off sick most of last week, thankfully both better) and I'm now under the weather myself. But it's not too bad and hopefully will pass within a day or two. I finally published my end-of-year...
Brought to you by: Hi Reader, Happy New Year! 🎉 Welcome to the Google Sheets Tips newsletter #371, your first Monday morning espresso of 2026, in spreadsheet form! I usually write a year-in-review post over the holidays but this holiday was so busy that I didn't get round to it. It's a valuable exercise to reflect on the year gone and think about what I want to achieve this year. So I'm still planning to write one and will share it when I do. I hope you had a wonderful holiday season and feel...