In this article:

How to Make Histogram Charts in Google Sheets

Unsure which chart type to use? Click here to find the right chart for your data and the ideas that you want to convey. 


A histogram chart, commonly known simply as a histogram, is often used to give a visual representation of data distribution. It groups the numeric data within  specific intervals, displaying how many individual values fall in each interval. Each of these intervals is shown in terms of ‘buckets’ or ‘bins.’ 

 

The histogram may look like a column chart because of the use of bins. However, these two charts are different in terms of their applications. The histogram shows continuous data and is used to understand the distribution of a data set. In contrast, column charts are used to compare categorical data.

 

In this tutorial, we will learn how to use Google Sheets to make a histogram for our data. 

How to format data for a histogram  

There are two ways to format the data when creating a histogram, either a column list or a row list. However, it is often better to use a column list with a header for  good data visualization. 

Consider this hypothetical example of the waiting time of 20 customers. Each data point represents the time that a customer waited for a customer service representative. 

Image: Sample data set to be visualized


Following the recommended format above, we simply put all the data into 1 column:

Image: The data set formatted for use by the histogram

How to add a histogram 

Step 1. Select the table of values. 

Image: The selected dataset. 

Step 2. Go to Insert, then click Chart.

Image: Insert menu selected. The chart option is highlighted.

Another option is to click the chart icon at the end of the main toolbar.

Image: Insert chart icon. It is located near the right end of the main toolbar.  


Step 3. Google sheets will automatically create a chart based on your data. If the chart is not yet a histogram, go to the Chart Editor, which pops out at the right side of your Google Sheet. Select Setup. Under chart type, click the drop-down menu, then scroll down and look for the histogram located under the subsection Other.

Image: Given our sample dataset, Google Sheets automatically create a histogram. If it does not automatically create a histogram, you must select the histogram on the Chart editor under Chart type. 

If you accidentally closed the Chart editor, you can still open it by selecting the chart on your sheet. Click on  the vertical ellipsis icon located at the upper right of your chart. Select Edit chart. 

Image: Edit chart option to open the chart editor. 

Step 4. You now have a histogram with a recommended title, some axis headings, and ranges. 

Image: Histogram of our data set.

If you hover your cursor to any bins on your histogram, you will see the interval and its corresponding count. 

Image: The count for an interval is displayed by hovering the cursor over one of the buckets. 

Note: The interval for the first bucket is 10.00 - 19.00 seconds and for the second bucket is 19.00-28.00 seconds. If your data consists of 19, the count for that value of 19 will be added to the first bin.  

How to customize the histogram

 

Most of the time, the histogram created by Google Sheets is enough. You can also customize some of the details of your histogram, such as intervals, titles and headings, and bucket color, for better presentation. 

Changing the size of the intervals

To change the size of the intervals, go to the Customize tab of the Chart Editor. Select the Histogram, then under bucket size, choose your desired interval. 

Image: Customize tab of the Chart editor. Bucket size selected under the histogram option


Image: Histogram of the data set when bucket size is set to 5.  

Changing the chart and axis titles and their formats

By default, there is no vertical axis title. The column heading you have in your data will be the horizontal axis title, and adding the phrase “Histogram of” before your column heading will be the chart title. 

 

You can add and change the chart and axis titles by going to the Customize tab of the Chart Editor. Under the Chart and axis titles tab, choose which title you would like to edit using the Title Type selector drop-down menu. You can also modify the corresponding font size, font style, format, and color of the titles.

Image: Customize tab of the Chart Editor. Under chart and axis titles, you can also edit the font, font size, format, and text color. 


Image: Histogram after adding the vertical axis title, formatting the font style and position of the titles. 


Changing the bucket color

 

If you wish to change the color of the buckets, go to the Series section of the Customize Tab under Chart Selector. You can also do this by double-clicking on one bucket on your chart. 

 

Image: Changing the bucket color via the fill color option of the series section under the Customize tab. 


Sample Sheet for Histogram

You can try creating your own histogram using this sample sheet


Automate repetitive tasks with Lido

Save hours on repetitive and tedious work. Lido is a new spreadsheet that connects your spreadsheets, forms, PDFs, and email inbox.

Trigger
Action
Select trigger
When a cell value in Google Sheets changes
Check Google Sheets for today's date
When a new row is added to Google Sheets
On new Google Form submission
Send me a daily reminder
On new Typeform submission
When a cell value in database changes
Check database for today's date
When a new row is added in database
When a new HubSpot customer is created
Select action
ADDCALENDAREVENT
Creates a one- or multiple-day calendar event with optional attendees
ADDHUBSPOT
Adds an object to Hubspot
ADDSLACKCHANNEL
Create a Slack channel, and optionally add a topic or members
CALLURL
Makes any HTTP request
CREATEGOOGLEDOC
Replaces [@column_name] values in a Google Doc with the corresponding table row's values
CREATEPDF
Replaces [@column_name] values in a Google Doc with the corresponding table row's values, then export it as a PDF
FETCH
Makes any HTTP request and returns the response
INSERTROWS
Inserts given array below defined values in given worksheet
SENDGMAIL
Sends an email using your Google account
SENDOUTLOOK
Sends an email using your Microsoft Outlook account
SENDSLACK
Sends a Slack message
SENDSMS
Sends an SMS message using your Twilio account
UPDATECELL
Updates cells with given values
UPDATEHUBSPOT
Updates a property of a Hubspot object
Trigger is required
Action is required
Get started