Blog

Dot Plots In Google Sheets

Dot plots are simple charts consisting of dots plotted on a simple scale, typically used to show small counts or distributions.

Dot plots are one of the simplest statistical charts, only suitable for small-sized data sets. They’re helpful for understanding the “shape” of your data by highlighting clusters, gaps, and outliers. (A histogram is better suited to showing the data distribution of larger datasets, e.g. > 30 datapoints.)

Here’s a table using dot plots to show the hypothetical number of meetings per day for these five employees:

Dot Plot in Google Sheets

How To Create Dot Plots In Google Sheets

You create dot plots in Google Sheets with formulas! 

Suppose we have this data in row 1 of a Google Sheet, in cells A1 to E1:

Data for Dot Plot in Google Sheets

Step 1: 

Create a basic REPT function next to the data, e.g. in cell F1:

=REPT("*",A1)

Step 2:

Next, turn this REPT formula into an array formula:

=ArrayFormula(REPT("*",A1:E1))

Step 3:

Then use the JOIN function and CHAR function to combine the array output. CHAR(10) creates a carriage return, which we use as the delimiter:

=ArrayFormula(JOIN(CHAR(10),REPT("*",A1:E1)))

Step 4 (optional):

Convert the * into circles with the CHAR function:

=ArrayFormula( JOIN(CHAR(10),REPT(CHAR(9679), A1:E1)))

Step 5 (optional):

Rotate the cell up:

Format > Rotation > Rotate up

Here’s an image showing the outputs for these 5 steps in column F:

Dot Plot workings

How To Create Multi-Colored Dot Plots In Google Sheets

Taking this idea one step further, we can add colored symbols to indicate the relative counts.

Here’s an example with green dots for large counts, then orange, and then red dots for the smallest counts:

Multi-Colored Dot Plot in Google Sheets

The formula is more complex and uses the IFS Function to categorize the inputs by relative size:

=ArrayFormula(JOIN(CHAR(10),REPT(IFS(A1:E1/MAX(A1:E1)>0.85,"🟢",A1:E1/MAX(A1:E1)>0.5,"🟠",TRUE,"🔴"),A1:E1)))

How does this formula work?

It’s an array formula that takes an input of the five numbers in columns A to E.

Inside the IFS function, the number (e.g. 7) is divided by the maximum number in the range (10 in this example) and compared to see if it’s bigger than the first threshold (0.85 in this example). If this is true, then the green dot is plotted, otherwise, the threshold is checked (0.5 in this example) If that’s true, then orange dot is used. If that is not true, then the red dot is used as the default.

The REPT function and the JOIN function perform the same way as step 3 above for the simpler single color example.

You can also replace the colored dots in this formula with their CHAR function equivalents, to keep it entirely formula driven:

=ArrayFormula(JOIN(CHAR(10),REPT(IFS(A1:E1/MAX(A1:E1)>0.85,CHAR(128994),A1:E1/MAX(A1:E1)>0.5,CHAR(128992),TRUE,CHAR(128308)),A1:E1)))

As a final step, don’t forget to rotate the cell text up, to get the dots plotted as columns rather than bars.

Notes

This Dot Plot technique first appeared in issue 188 of my weekly Google Sheets Tips newsletter. Signup here if you’d like to receive it!.

Thanks to reader Marcel L. for his sharing his idea for the multi-colored dot plot.

Slow Google Sheets? Here are 27 Ideas to Try Today 🐢

June 2024 update:

Google announced they’ve doubled the speed of calculations in Google Sheets! 🎉

So hopefully you won’t need as many of these ideas anymore 😉

Slow Google Sheets?

We’ve all been there, stuck watching the little loading bar creep slowly, frustratingly to its conclusion:

Slow Google Sheets loading bar

How can you speed up a slow Google Sheet?

First off, this is a difficult question to answer because there are so many factors that may or may not be causing you to have a slow Google Sheet.

What follows in this article is some suggested optimization strategies and some research into what causes slow Google Sheets.

 


Strategies to speed up Google Sheets

  1. How to recognize slow Google Sheets
  2. Know the size limits of Google Sheets
  3. Measure a Google Sheet’s size
  4. Measure a Google Sheet’s calculation speed
  5. Delete un-used cells
  6. Convert formulas to static values wherever possible
  7. Use closed range references
  8. Remove volatile functions or use with caution
  9. Vlookup strategies
  10. Index-Match strategies
  11. Query function strategies
  12. Array Formula strategies
  13. Import Formula strategies
  14. Google Finance function strategies
  15. Use IF statements to manage formula calls
  16. Manage expensive formulas with a control switch
  17. Use Filter, Unique and Array_Constrain functions to create smaller helper tables
  18. Avoid long calculation chains
  19. Reference data on the same Sheet
  20. Use helper columns
  21. Split your slow Google Sheet into separate Sheets
  22. Use Conditional Formatting sparingly
  23. Leverage the power of Apps Script
  24. Use custom formulas sparingly
  25. Other troubleshooting tips for slow Google Sheets
  26. Understand changes in the cloud can take time to propagate
  27. Know when it’s time to move to a database

Continue reading Slow Google Sheets? Here are 27 Ideas to Try Today 🐢

How To Set Default Values For Cells In Google Sheets

In this post, you’ll learn how to set default values for cells in Google Sheets, without using Google Apps Script code.

In the Sheet below, the cells in column B have default values of 100, 25, and 10 respectively. If a user types in a value (e.g. 200) it overwrites the default value. If a user deletes whatever value is in the cell already, then the default value of 100 is displayed again.

Default Values for cell in Google Sheets

Setting Default Values For Cells In Google Sheets

The key to make this technique work is to use Array Literals to create a formula which spills into the adjacent cell. This is a rather abstract concept, so let’s run through an example.

In a blank Sheet, write the value “Input” in cell A1. In cell B1, type this formula:

={"",100}

Your Sheet will look like this:

Default Value Setup Google Sheet

Try typing 200 in cell C1, over the top of the 100.

Cell C1 will show the 200, but cell B1 now displays a #REF! error.

Now, delete the value you just typed in cell C1. The error message disappears and the default value of 100 is displayed again.

Default cell Google Sheets

Finally, hide column B so that the #REF! error is never seen, and you have a default value of 100 set for cell C1.

Hidden column default value Google Sheets

🎩   Hat tip to my friend Scott Ribble for showing me this ingenious solution.

Advanced Default Values Without Hidden Column

The method above suffers from one drawback though: it necessitates a hidden column.

However, we can use a clever circular formula to address this.

In a new blank Sheet, add this formula in cell A1:

=IF(ISBLANK(B1),{"Input",100},"Input")

Initially, you may see this error message about a circular error (i.e. a formula that references itself):

Circular Error in Google Sheets

That is a problem, but we fix it by switching on iterative calculations and restricting them to a single iteration from the menu:

File > Settings

Go to “Calculation”.

Set “Iterative calculation” to “On” and the “Max number of iterations” to 1.

(The threshold can be left at 0.05 because it doesn’t apply in this case.)

Iterative Calculation Google Sheets

Now, you can enter any value you want in cell B1 and if you delete it, the default value of 100 will be shown.

How Does This Work?

The IF function checks whether cell B1 is blank.

If it is blank, then it outputs the array literal:

{"Input",100}

which displays “Input” in cell A1 and the value 100 in cell B1.

However, if cell B1 already has a value then the IF function output is just the string “Input” in cell A1.

Note: default values are not limited to numbers. It could be text, an image, or even another formula.

Default Values Checkbox Example

You can use default values to check or uncheck checkboxes. Here’s a cool illustration of how to create a select all checkbox in Google Sheets, using deafult values.

Thanks to one of the readers in the comments below for sharing this solution.

Default Values Formulas To Mimic Radio Buttons

Another interesting use case for these default values is to mimic radio buttons with formulas and checkboxes.

Radio button behavior with checkboxes and formulas

Column A contains array literal formulas that ensure a user can only select a single checkbox at a time.

2021 In Review And A Look Forward To 2022

First hike of 2022!
Ringing in 2022 with a family hike

This is Annual Review number seven!

I wrote the first annual review in the year my eldest son was born. He’ll be 7 this year. How time flies!

As always, I’m super grateful that I get to write this because it means I’m still working for myself and building this business for another year.

Let’s begin with a review of 2021:

Did I Meet My 2021 Goals?

2021 was of course the second year of the pandemic, so once again, work hours were more limited than normal, and there was an undercurrent of stress throughout the year.

Overall though, from a work perspective, 2021 was a great year.

I had my best year of revenue to date, of which 95% came from course sales. I launched and ran two amazing cohorts of my live Pro Sheets course, created one new online course, and finished updating my course catalog.

Outside of work, I finally saw (most of) my UK family again at the very end of 2021, after over two years of nothing but video calls. These few weeks with my UK family were a highlight of the year.

Aside from that, we had lots of great family adventures locally and I did tons of great hiking in our local mountains.

All in all, 2021 was a good year given the circumstances.

Each year, I take the goals that I wrote down at the beginning of 2021 and see how I fared:

2021 Work Goals

  • Run 3 cohorts of the new live cohort based course Pro SheetsYes, and no. I ran two cohorts!
  • Run SheetsCon 2021 in March – No, I realized early in 2021, with the pandemic ongoing, that I didn’t have the bandwidth to do this and create the new cohort course, so I paused SheetsCon for 2021.
  • Improve the SEO and site speed of benlcollins – Yes, and no. I did improve both, but there’s still work to do.
  • Publish 30 long-form blog posts – Not quite… I published 26 posts.
  • Publish a comprehensive guide to REGEX in Google Sheets – Yes, here it is.
  • Hit 60k newsletter subscribers – No, my list growth plateaud in the second half of 2022 and I finished the year around 45k subs.
  • Send a Google Sheets tip email every week for the next year – Yes, I sent my Google Sheets tips newsletter every Monday 🙂
  • Create one new on-demand video course – Yes, I created a dedicated REGEX course.
  • One technical project, related to Sheets/Apps Script/Data in some way. – Yes, I wrote a script to control my home Nest thermostats. I worked on a few other project ideas but didn’t complete them.

Other 2021 Goals

  • See my UK family! – Yes, finally, after 2+ years 🙂
  • Have another healthy year – Yes, thankfully
  • Exercise regularly: 4 hike or bikes each week, 2 yoga/strength – Yes, although I’ve no idea if I reached this cadence and frankly, it doesn’t matter. I felt like a did a solid amount of outdoor exercise. Yoga fell off my radar from Q3 onwards and I didn’t do as much biking as I’d hoped but I did a lot more hiking than I’ve ever done!
  • Go camping again! I used to do a lot of camping trips but it’s been a few years since I last went 🙁 – Technically, yes, because I managed 1 night, but not as much as I’d hoped, haha! Bring on 2022.
  • Take my boys out on lots of adventures and camping trips. – Yes, plenty of adventures, but only one camping trip
  • Read 30 books (same target as 2020) – No, and I need to lower my expectations 😉 I read 18 books in 2021

2021 Highlights

Let’s look at the highlights from 2021:

1) Pro Sheets

My biggest work goal for the year was to launch a live cohort training course, called Pro Sheets. I ran two cohorts in 2021, in April/May and November/December, and it was a hugely rewarding and enjoyable experience.

Pro Sheets is a 5-week long, live, online training course where we meet 3 times a week for instruction around data analysis and automation with Google Sheets and Apps Script.

I had 37 students in the first cohort and 42 students in the second cohort, which was a huge success.

Pro Sheets community

Running a cohort course is an enormous amount of work so I want to say thanks to a number of folks who helped me along the way:

  • Billy Broas’ Keystone Accelerator program in January was a huge help.
  • Jenny Sauer-Klein’s Scaling Intimacy training in February, which was really helpful for me in figuring out how to run successful and immersive online experiences
  • Katey, my wonderful teaching assistant for both cohorts
  • Jo, my amazing assistant behind the scenes who helps run my business

For a sense of what Pro Sheets is all about, have a listen to what the students from the first cohort had to say:

In 2022, I plan to run at least one more cohort of Pro Sheets — cohort 3 — and implement a number of improvements. Looking forward to this!

2) Other Online Courses

At the beginning of the year, I finally finished updating all my courses after re-recording the Automation With Apps Script course.

Over the summer, I created one new online video course:

This year I launched my guide to the powerful Google Sheets REGEX functions: The Google Sheets REGEX Formula Cookbook:

Google Sheets REGEX formulas cookbook

This course was a real joy to create, as it was technically interesting to research and teach.

3) Google Sheets Tips Newsletter

I sent my weekly Google Sheets newsletter every Monday, except for Christmas week.

It’s the backbone of my business and I love receiving responses from readers each week.

I plan to write a newsletter every week again this year.

4) Website Content

As you’ll see below, my website gets a mention under the challenges section of 2021 too.

But it’s still been a great year, although new post creation slowed down in the second half of the year.

This year, my favorite posts to research and write were:

5) Non-Work Highlights

Lots of non-work highlights this year, mostly on our local trails.

Undoubtedly THE highlight of the year was seeing my UK family again. From the surprise visit of my brother from Australia to the epic hikes we did together (3 peaks, Raven Rocks), and the joy of Christmas with grandparents reunited with grandkids, it was a wonderful three weeks!

Another highlight of the year was the summer road trip that Lexi, me, and the boys took around our home state of West Virginia. We did a big clockwise loop around the State, taking in the mountains, the new National Park, cute towns, cabins in the woods, and lots of history. It was a memorable way to spend 3 weeks this summer when most other options were still off the table because of the pandemic.

Other specific highlights that stand out from the year are all local adventures:

My brother Pete and me on the Appalachian Trail
My brother Pete and me on the Appalachian Trail
Lexi and me at White Rock overlook on the Appalachian Trail
Lexi and me at White Rock overlook on the Appalachian Trail

Challenges In 2021

It goes without saying that the ongoing coronavirus pandemic continued to be the major challenge of the year. Staying safe and sane, whilst growing the business and running a household, was one long risk-assessment-and-schedule-juggling-nightmare. But we got through it, and somehow came out the other side fitter, healthier, and in a better place than we were at the beginning of 2021.

I’m relieved to not have a “health” subheading under the challenges of 2021. Let’s see if I can keep it that way in 2022.

Of course, most of the challenges of 2021 were related to navigating covid, but there were a couple of big work challenges too:

Website Traffic Decline

This year, I’ve decided to list my website under “Challenges” as well as “Highlights”.

Yes, I did publish 26 posts in 2021 and my overall traffic figures were similar to 2020 (over 2 million unique visitors to this site and nearly 4 million page views!).

But… since the summer, when the traffic peaked at over 400k pageviews and 255k users a month, it has steadily declined back to around 200k pageviews/month. I believe this is partly because the frequency of my posts decreased, some of my popular posts are getting old (and thus losing ranking spots), and there’s much more competition in the Google Sheets space now than there ever has been.

benlcollins web traffic

Email List Growth Plateau

My goal at the beginning of 2021 was to hit 60k newsletter subscribers. A lofty goal to be sure, but not impossible.

I missed it and ended the year on around 45k subscribers.

So I’m keeping this same 60k goal for 2022 and dedicating more time to email list growth this year.

My email list grew at a steady clip for the first nine months of the year but plateaued for the last three months. I believe this is due to a combination of decreasing web traffic (see above) and higher unsubscribes during a couple of months where I did a lot of course launches (the additional sales emails result in higher unsubscribe rates for a short period).

Email List Growth

One of my big challenges for 2022 is to figure out how to grow my audience (see more below).

Other Challenges

Well, not really a challenge as such, but I really missed not attending any in-person conferences this year. The Google Next conference online is not a patch on the in-person event. I thoroughly enjoyed my trips to San Francisco in 2018 and 2019 and felt inspired for months afterward. Fingers crossed Next can happen in-person again this year!

Looking Forward To 2022

I’m excited and hopeful for 2022.

I’m hopeful that we’ll see an end to this wretched pandemic, although I thought this last year and look where we are (record cases! Thanks, Omicron! 😡)

With each passing year, I gain a better understanding of my business. What works and what doesn’t. Which levers make a difference and which ones don’t.

I’ve realized that growing my business boils down to two main levers: i) growing my email list, and ii) creating more courses.

With that in mind, my goals in 2022 are directly in line with increasing one or both of these levers. If I run a marketing campaign that results in hundreds or thousands of new subs, then that will correlate with increased revenues down the line. Similarly, if I can create great new courses for my existing audiences then I can increase my revenue.

2022 Work Goals

In no particular order:

  1. Create 3 new video courses (the first of which will be a dedicated QUERY function course 🤩)
  2. Run cohort 3 of Pro Sheets
  3. Send my Google Sheets Tips newsletter every Monday
  4. Hit 60k newsletter subscribers

That’s it.

You’ll notice that I’m not setting a goal for posts published this year or other technical projects etc. I’m sticking to fewer, bigger goals. Goals that fall into my two buckets of i) list growth, and/or ii) new courses.

Other 2022 Goals

  1. Complete a century bike ride (100 miles). It’s been a few years since my last century rides and I miss those long days out on the bike.
  2. Twelve challenge walks (walks that start and/or finish at home and are a challenge by virtue of their length or difficulty)
  3. Family trip to the UK this summer
  4. Have another healthy year
  5. 10 nights camping this year (at the very least, I want to beat the low target of 1 from last year!)
  6. Read 20 books
  7. Weekly brainstorming hike with my wife

2022 Plan

My plan this year is to be super-efficient with my time and ruthless with what projects I pursue.

My approach is to block my time by day. Previously, I’ve blocked my time into hour blocks, but eventually, the whole system breaks down and merges into one soup of activities with a large amount of associated context switching costs. This year, I want to stick to this weekly schedule as closely as possible and for as long as possible (provided it works!).

I’m sure it will help me get more done in the same or less amount of time.

So, Monday and Tuesday will be reserved for work on new courses.

Wednesday will be my admin and miscellaneous day, where I get stuff done.

And Thursday and Friday will be dedicated to marketing and list growth.

The simplicity of this approach is deeply appealing to me too.

2022 plan

Thank You

If you’ve read this far, thank you!

Thank you for being a supporter of my work. Thank you for being part of this weird little corner of the internet where I continue my mission to create the world’s best resources for learning Google Sheets and data analysis.

Best wishes to all of you for 2022!

Finally, a huge thank you to my wife, Alexis Grant, who has been my biggest supporter from day 1. I couldn’t do this without you!

Previous years

Three Benefits Of Cohort-Based Courses

The world of online education is very different today than it was 10 years ago.

We now live in an age of information abundance, with all of human knowledge only a click away.

And that means we can shift the focus of online courses from information-heavy lectures to a community-driven learning environment with interactive sessions, collaboration, and shared knowledge.

And right now, accelerated by the pandemic, community-driven online courses are having their moment in the sun.

Online creators are seeing incredible demand for their live courses. Top-tier VC firms are investing in companies that facilitate these live, cohort-based courses.

Here are three reasons why these cohort-based courses are the best way to learn:

1. Cohort-Based Courses Hold You Accountable

Cohort based course group

Hands up if you’ve bought an online course with good intentions, but then never got past the introduction video?

Yup! Guilty as charged…

I kid myself that I’ll get around to it one day, but, like all of us, life is busy.

What is there was a different way?

There is!

Join a cohort-based course — like Pro Sheets — and you learn with other people, at scheduled times, with defined and manageable goals.

Turns out that we’re not very good at making and, crucially, keeping promises we make with ourselves. Even if we start a venture with huge enthusiasm, it’s hard to sustain, especially when the journey gets hard or we hit the inevitable hurdles.

Being part of a group offloads some of this willpower burden. Once you become part of something greater than yourself, you don’t want to let the group down by not bringing your best self to the table.

We as humans care deeply about what our fellow humans think of us, even when we’re told not to, or even though we know other people are too busy with their own realities to care much about ours. And yet, this external influence remains very strong.

In other words, when you join a live, group course, you’re giving yourself much better odds at actually sticking through the course and completing it, reaching your goal, and reaping the benefits.

With dedicated time slots and friendly faces waiting to greet you, you’ll feel inspired to attend as many live sessions as possible.

And by simply turning up, again and again, you’ll see the results you’re after.

I was a student in a cohort-based course earlier this year, and I was pumped every time a live class rolled around. I couldn’t wait to join and catch up with everyone. There’s no way I would have stuck with a video-only version of this course on my own.

2. Learning Together Is Faster

Remember the game minesweeper?

It was a classic strategy game, with a very strong 90s PC desktop vibe, requiring players to make calculated decisions and educated guesses on where the mines lay on the board.

Minesweeper makes for a nice analogy with learning a new skill or deepening an existing skill.

You have your existing knowledge, represented in Minesweeper by the portion of the board that is uncovered.

Now, suppose you’ve reached an impasse with your learning. You don’t know how to proceed.

This is like one of those vexing 2-3-3-4-1 combinations on the Minesweeper board that eventually require an educated guess.

Continuing alone is possible, but it will be slow going and frustrating, and you will make mistakes — step on mines — along the way.

Minesweeper

If you learn with others though, whether they’re experts or just slightly ahead of you on their journey, they can show you the next move.

They can unlock the board for you, so whole new regions of knowledge open up in front of you.

Minesweeper

Your journey will be dramatically quicker with a guide, simply because you make fewer mistakes and better decisions.

3. It’s More Fun

Look at all these beautiful smiles in the final live session of Pro Sheets Accelerator earlier this year:

Pro Sheets cohort-based course community

When I launched Pro Sheets Accelerator, I expected students to say their favorite part was learning new formulas, scripts, or frameworks.

But by the end of the course, it wasn’t the formulas or scripts that students most appreciated, it was the community.

They loved learning with other spreadsheet enthusiasts!

One of the students, Jen, an educator from Massachusetts, summed it up well:

“It was really just nice to have other nerdy people to talk to and to share stories and ask questions to, who just really cared about talking through it in a high-quality conversation.”

And I was chatting recently with another student, Jim, a financial advisor from California, who said:

“Getting together with like-minded people who were really passionate about spreadsheets was just magic.”

By learning in a group, you meet like-minded people to share the highs and lows of the journey. You’ll laugh and have fun along the way, and your best learning happens when you’re happy and having fun.