Understanding Aggregation in Google Sheets

In the context of Google Sheets, aggregation is the process of summarizing tabular data. 

You can aggregate/summarize tabular data in Google sheets by calculating the sum, average, maximum, minimum, median, etc. of all the values of a field.

Consider the following data set from a Google Sheet:

3 1

Here is how this tabular data can be aggregated in Google Sheets:

Aggregation in Google Sheets
  • Total sales from all customers = $8,441.00
  • Average sales from all customers = $844.10
  • Highest sales from a customer = $2,130.00
  • Lowest sales from a customer = $380.00
  • Median sales = $738.50
  • Total number of orders = 10
  • Total number of customers = 8

Google Sheets provide many functions through which you can aggregate data. For example:

#1 SUM 

Use this function to calculate the sum/total of all values:

3 3

#2 AVERAGE 

Use this function to calculate the average of all values:

3 4
Get weekly practical tips on GA4 and/or BigQuery to accurately track and read your analytics data.

 

#3 MAX 

Use this function to find the maximum /highest value in a numeric field:

3 5

#4 MIN 

Use this function to find the minimum /lowest value in a numeric field:

3 6

#5 MEDIAN 

Use this function to find the median in a numeric field. 

A median is a middle number in a sorted list of numbers:

3 7

#6 COUNT 

Use this function to count the number of values in a field:

3 8

#7 COUNTUNIQUE 

Use this function to count the number of unique values in a field:

3 9
  1. How to use Google Data Studio with Google Sheets
  2. How to extract data from Excel or CSV file into Google Sheets
  3. How to extract data from Google Ads to Google Sheets
  4. How to use Supermetrics for Google Sheets Add-on
  5. Connect and transfer data from Google Sheets to BigQuery
  6. Sending data from Google Search Console to Google Sheets
  7. Supermetrics Queries for Google Sheets – Tutorial
  8. Google Sheets & Google Data Studio Timezone Conversion
  9. How to extract data from Google Analytics into Google Sheets
  10. Google Data Studio Date Format for Google Sheets – Tutorial
  11. Learn to export Facebook ads data to Google Sheets

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade