These blog posts are part of research I’m doing for a potential new book, hopefully allowing me to further my love for spreadsheets. Theses posts are hoping to provide a practical cookbook of examples to the reader and allow me to learn what people are interested in and how to approach different subjects working with Google Sheets.
TLDR: When we start collecting data, its time we start to work through the results and start extracting and collating information, so we can start presenting it. You can find the complete spreadsheet for this post at the following link:
https://docs.google.com/spreadsheets/d/16drGn-dGo4K-D-JKBMViYyDbF9MgpYUau7tfWOPGRNI/copy
In our previous post, we started working with Forms to allow us to quickly gather information for us. In this post, we are going to start looking through our data and extracting and preparing our information so that we can start to present our data as some nice looking dashboards to our users.
In our last post we started working with our Forms, and if you did not get to that post and want to jump in quickly, don’t worry, you can start with the sample data we have set up and collected ready to be worked on.
If you want to checkout Part 1 of this series, head over to the following link first:
@strava2hive/getting-started-with-forms-and-dashboards-part-1
As we mentioned before, we are doing to start extracting and preparing our data from the responses we have received from our Forms. In the following, it will give us a chance to look through the data we have collected and work out the important information we want to present to our user. Although, we are using simple data collected on someones run training, this can be done with anything and is probably the first logical step after you have received responses, you would then want to see what makes sense, and see what data can then be presented as dashboards and graphs.
A lot of the work we are doing in this post is going to be carried out by functions. In this post we will be using the following functions as part of our formulas:
To find a reference and explanation of the functions used as part of this post, checkout our previous post here:
@strava2hive/my-google-sheets-function-reference
We could create a dashboard on all the data we’ve collect. This could be something we would do later on to provide an overall view. Instead, we are doing to focus our data to only display one week of data. As we saw in our previous post, Forms adds all our data into a new spreadsheet ready for us to use. We can start working with this sheet, but for our purposes, we are going to create a new sheet and extract one weeks worth of data from our responses.
=QUERY('Form Responses 1'!A2:I33," where B >= date '"&TEXT(A1-7,"yyyy-mm-dd")&"' and B <= date '"&TEXT(A1,"yyyy-mm-dd")&"' ")So hopefully you should see something similar to the image below.
Now we have some more focused data that we can now start to work with, let’s get three key values from our data. For me personally, the kind of information I want to see from a weeks worth of training data are the total number of runs done, the total time spent running, and the total distance run.
=COUNT(B:B)=SUM(INDIRECT(CONCATENATE("F2:F", 2 + L1)))=SUM(INDIRECT(CONCATENATE("E2:E", 2 + $L$1)))Using the data we have in our responses, we can summarise and collate extra totals. Specifically, we can use the selection of running shoes to summarise and calculate the number of times each week, we use each pair of shoes.
=QUERY(H1:H20, "select H, count(H) where H <> '' group by H label count(H) 'Shoe Count'", 0)Although just sitting in the middle in our screen below, the chart can be adjusted and moved around the screen to be fit where ever it is needed.
We haven’t worked for a long time and been able to extract some good values from our data. I always use this type of method to extract key values before I start setting up my visualisations. We did this by extracting a subset of our data based on the date, we calculated the time, distance and time being run. Then we created a nice function to count the number of times I have been wearing each of my running shoes. We then used this data to create a Pie Chart representing these values.
In our next post, we are going to take this a little further and make what will hopefully be a nice looking dashboard representing a number of different items from the data we have collected.
The post is written by Vincent Sesto, a Aussie Software Engineer, living and working in Auckland, New Zealand. If you are interested in my authors page on Amazon, feel free to checked it out at the following link:
https://us.amazon.com/stores/author/B073R3VW2G