Pustakam Library

Free Productivity learning guide

Google Sheets for Data Analysis: A Beginner's Guide

Google Sheets for Data Analysis: A Beginner's Guide — a free beginner-level guide covering learn google sheets for data analysis. Learn with clear...

96 min read10 chaptersbeginner

What you will learn

  1. Getting Started with Google Sheets
  2. Essential Formulas and Cell References
  3. Cleaning and Preparing Data
  4. Making Decisions with Logical Functions
  5. Combining Data with Lookup Functions
  6. Sorting, Filtering, and Grouping
  7. Summarizing Data with Pivot Tables
  8. Visualizing Data with Charts
  9. Basic Statistical Analysis
  10. Sharing, Protecting, and Exporting Data

1. Getting Started with Google Sheets

Imagine you are handed a printed stack of 500 customer order receipts. Your boss asks you to figure out which products sold best last month and calculate the total revenue. If you are working with paper and a calculator, this task will take hours, and the chances of making a mathematical mistake are incredibly high. This exact scenario is why spreadsheet software exists. A spreadsheet takes that jumbled pile of information and turns it into a structured, organized grid where a computer can handle the repetitive math for you. Google Sheets is a free, web-based spreadsheet tool that allows you to store, organize, and analyze data right from your internet browser. Before you can unlock its power to calculate sums or build charts, you have to learn how to speak its language. That means understanding the physical layout of the screen, knowing how to type information into it, and learning how to make that information visually readable. The Google Sheets Interface When you open a new Google Sheet for the first time, you are presented with a vast grid of empty rectangles. This grid is the canvas where your data will live. To use Sheets effectively, you need to know the specific names for the different parts of this canvas. Cells, Rows, and Columns The fundamental building block of a spreadsheet is a cell. A cell is a single rectangle where data—like a name, a dollar amount, or a date—is entered. Cells are organized vertically and horizontally: Columns: These run vertically (up and down) across the screen. Columns are labeled with letters starting at A on the far left, followed by B, C, D, and so on. After Z, the labels become two letters (AA, AB, AC). Rows: These run horizontally (left to right) across the screen. Rows are labeled with numbers starting at 1 at the very top, going down to 2, 3, 4, and continuing potentially into the thousands. Every cell has a specific cell address (also called a cell reference) based on where its column and row intersect. The very first cell at the top-left of the screen is where Column A and Row 1 meet, so its address is A1. The cell directly to the right of it is B1. The cell directly below A1 is A2. When you click on a cell, it becomes the active cell. You can always identify the active cell because it will have a thick blue or black border around it. The active cell is simply the cell that is currently selected and ready for you to type into. The Formula Bar Just below the main toolbar at the top of the screen, you will see a long white box. …

2. Essential Formulas and Cell References

The Calculator Hidden in Your Spreadsheet Imagine you are managing a budget for a small community event. You have a list of two hundred expenses, and you need to calculate the 8% sales tax for every single item. If you were working with a physical calculator, you would have to type two hundred individual calculations, write down the results, and hope you didn’t accidentally transpose a digit. Google Sheets eliminates this tedious process. By learning to write a simple formula for just one row, you can instruct the spreadsheet to do the math for the remaining 199 rows in a fraction of a second. In the previous chapter, we explored how to enter and format Data within a worksheet. Now, we will unlock the analytical power of Google Sheets by performing mathematical calculations on that data. To do this, we need to understand how to communicate with the spreadsheet using formulas. Your First Mathematical Formulas Every calculation in Google Sheets begins with a formula. A formula is an instruction you give to the spreadsheet to perform a calculation and return a result. To tell Google Sheets that you are writing a formula and not just entering a string of text, you must always start with an equals sign (=). If you type 5 + 5 into a cell and press Enter, the spreadsheet will treat it as a string and display exactly what you typed. If you type =5 + 5 and press Enter, the spreadsheet calculates the math and displays 10. Basic Arithmetic Operators You can perform basic math using the standard operators found on your keyboard: Plus sign (+) for addition Hyphen (-) for subtraction Asterisk () for multiplication Forward slash (/) for division Caret (^) for exponents (e.g., =3 ^ 2 calculates three squared, returning 9) Calculating with Cell Addresses While typing =5 + 5 works, it defeats the purpose of using a spreadsheet. The true power of formulas comes from using cell addresses (like A2 or B2) instead of raw numbers. When you use a cell address in a formula, you are telling Google Sheets, "Look at the value inside this cell, and use it for my calculation." Let’s look at a practical example. Imagine you are tracking inventory costs. In cell A2, you have the quantity of an item: 50 In cell B2, you have the price per unit: $3.50 To calculate the total cost, click on cell C2 to make it the active cell. Click into the formula bar at the top of the screen and type: =A2 B2 Press Enter (or Return on a Mac). The cell C2 will display 175. By using cell addresses instead of typing =50 3.50, your formula is …

3. Cleaning and Preparing Data

Imagine you are analyzing a list of 500 customer orders to find out which product is your bestseller. You run your calculations, and the results tell you that "Widget A" sold 50 times, while "widget a" sold 20 times, and "Widget A " sold 15 times. Why does your spreadsheet think these are three different products? Because to a computer, extra spaces and different capitalizations make completely different strings. Raw data is almost always messy. It arrives with accidental double-spaces, inconsistent capitalization, duplicated entries, and typos. If you try to analyze messy data, your results will be skewed and unreliable. In this module, we will focus on data cleaning: the process of fixing or removing incorrect, formatted, and duplicate data to ensure your analysis is accurate. Removing Duplicate Rows When data is collected manually—say, by a sales team typing customer orders into a shared Google Sheet—it is incredibly easy for the same transaction to be entered twice. If you don't catch this, your total revenue will be artificially inflated. Google Sheets provides a built-in tool to instantly scan your dataset and remove duplicate rows. A duplicate row is an exact match of another row across all selected columns. How to Remove Duplicates To use this feature, you will use the Data menu located in the top menu bar. 1. Highlight the range of cells you want to check for duplicates. If you want to check your entire sheet, click the blank rectangle in the top-left corner (above the row "1" and to the left of column "A") to select all cells. 2. Go to the top menu and click Data. 3. Select Remove duplicates from the dropdown menu. 4. A dialog box will appear. It will ask if your data has a header row. If the first row of your selected data contains column titles (like "Customer Name" or "Order Date") rather than actual data, check the box that says "Data has header row." This prevents Google Sheets from accidentally deleting a column title just because it matches another column title. 5. Click the Remove duplicates button. Google Sheets will process the request and give you a brief summary, telling you how many duplicate rows were found and removed, and how many unique rows remain. If you make a mistake, remember that you can always press Ctrl + Z (or Cmd + Z on a Mac) to undo the action. Standardizing Text with UPPER, LOWER, and PROPER One of the most common causes of messy data is inconsistent capitalization. You might have a column of names where some people typed in ALL CAPS, others used all lowercase, and others used a mix. In Chapter 2, you learned how to write …

4. Making Decisions with Logical Functions

The Power of Automated Categorization Imagine you are managing a list of 500 recent sales transactions. You need to flag every transaction over $500 as a "High Value" sale for the marketing team, categorize payments as either "Paid" or "Pending," and calculate the total revenue generated from a specific product line. Doing this manually by reading each row would take hours, and the risk of making a mistake grows with every click. Google Sheets can perform these exact tasks in a fraction of a second. By using logical functions—formulas that test whether a condition is true or false—you can teach your spreadsheet to make decisions on its own. Instead of manually categorizing data, you write a rule once, and Google Sheets applies it to your entire dataset. Making True/False Decisions with IF The foundation of all logical functions in Google Sheets is the IF function. It evaluates a specific condition and returns one value if the condition is true, and a completely different value if the condition is false. Every IF function requires three parts, separated by commas: 1. The condition: A statement that Google Sheets can evaluate as either TRUE or FALSE (e.g., is the number in cell B2 greater than 50?). 2. The value if true: What the formula should output if the condition is met. 3. The value if false: What the formula should output if the condition is not met. The basic syntax (the specific structure of the formula) looks like this: =IF(condition, valueiftrue, valueiffalse) Writing Your First IF Statement Let’s say you have a list of student test scores in column B. A passing grade is 60 or higher. You want column C to automatically display "Pass" or "Fail" based on the score. If the first score is in cell B2, you would click into cell C2, type the following into the formula bar, and press Enter: =IF(B2=60, "Pass", "Fail") Let’s break down what happens: B2=60: Google Sheets looks at the number in cell B2 and checks if it is greater than or equal to 60. "Pass": If the score is 60 or above, the condition is TRUE, and the cell will display the word Pass. Notice that text strings must be wrapped in quotation marks, just as we covered when formatting data in earlier chapters. "Fail": If the score is 59 or below, the condition is FALSE, and the cell displays the word Fail. Once you press Enter (or Return on a Mac), you can click back onto cell C2, grab the small blue square in the bottom right corner of the active cell, and drag it down the column. Google Sheets will apply the same logic to every student's score, adjusting the cell …

5. Combining Data with Lookup Functions

Imagine you manage a spreadsheet of customer orders. You have one table with 500 orders listed by Customer ID, and a completely separate table that matches those Customer IDs to actual names and email addresses. If you want to send an email to everyone who placed an order today, how do you get the names and emails onto the same sheet as the orders without copying and pasting them one by one? In the real world, data is rarely stored all in one place. Sales records, employee directories, and product inventories are often kept in separate sheets or systems. To analyze that data, you need a way to automatically search for a specific piece of information—like a Customer ID—and pull matching details—like an email address—into your current table. This process is called a lookup. Google Sheets provides specialized functions to do this heavy lifting for you. By combining data with lookup functions, you can merge separate tables in seconds, no matter how many rows they contain. The Classic Approach: VLOOKUP The most famous lookup function in spreadsheet history is VLOOKUP (the "V" stands for Vertical). It searches down the first column of a table to find a specific value, and then returns a piece of data from another column in that same row. To understand how VLOOKUP works, it helps to think of a restaurant menu. You look down the left side of the menu (the first column) to find the name of a dish. Once you find it, you look across that same row to the right to see the price. VLOOKUP does exactly this. Understanding the VLOOKUP Syntax Whenever you type a function into the formula bar, you provide it with instructions, called arguments, enclosed in parentheses. The syntax for VLOOKUP looks like this: =VLOOKUP(searchkey, range, index, [issorted]) Let’s break down what each of these arguments means: searchkey: The value you want to search for. This is usually a cell address (like A2) containing an ID number or a specific string of text. range: The block of cells you are searching through. VLOOKUP will only look for your searchkey in the very first column of this range. index: The column number within your range that contains the data you want to bring back. The first column of your range is column 1, the next is column 2, and so on. [issorted]: This tells the function if your data is sorted alphabetically or numerically. For exact matches (like finding a specific Customer ID), you should always type FALSE. If you leave it blank, Sheets assumes the data is sorted, which can cause incorrect results. A Practical VLOOKUP Scenario Let’s say you have two tables on the same worksheet. Your …

6. Sorting, Filtering, and Grouping

Imagine you have just exported a massive list of 5,000 customer orders from your company’s database into Google Sheets. The data is perfectly accurate, but it is entirely unorganized. Orders from 2023 are mixed with orders from 2024, canceled orders are jumbled together with completed ones, and customers from different regions are scattered randomly across thousands of rows. Looking at this wall of data is overwhelming. To make sense of it, you need to rearrange it into a logical order, hide the data you don't currently need, and isolate the specific subsets of information that matter. In this module, we will look at the tools Google Sheets provides to do exactly that: sorting, filtering, and grouping. Sorting Data Alphabetically and Numerically Sorting is the process of rearranging your rows based on the values in one or more specific columns. When you sort data, you don't change the actual information—“Apple” remains “Apple”—but you change the order in which the rows appear so that the data tells a clearer story. Single-Column Sorting The simplest way to sort is by a single column. Google Sheets looks at the values in that column and rearranges the entire rows based on those values. If you sort a column of customer names alphabetically from A to Z, the rest of the data in those rows (like their email addresses and order totals) moves with the names. There are two primary ways to sort a single column: 1. Sort Range: This option allows you to select a specific block of cells and sort just that selection. 2. Sort Sheet: This option sorts the entire worksheet based on a selected column. Every row in the sheet is rearranged, ensuring that related data across different columns stays together. A crucial warning about sorting: When you sort data, you must ensure that all corresponding columns are included in the sort. If you select only the "Customer Name" column and sort it, the names will rearrange, but the "Order Total" column next to it will stay exactly where it is. Suddenly, John Doe’s name will be paired with Sarah Smith’s order total, permanently corrupting your data. To avoid this, always use Sort Sheet when working with a connected dataset, or ensure you have highlighted the entire range before using Sort Range. To sort an entire sheet by a single column: 1. Click any cell inside the column you want to sort by. 2. In the top menu, click Data. 3. Hover over Sort sheet. 4. Select Sort sheet by column [X] (A to Z) or Sort sheet by column [X] (Z to A). Sorting A to Z will arrange text alphabetically, numbers from smallest to largest, and dates from oldest to …

7. Summarizing Data with Pivot Tables

Imagine you have just exported a year’s worth of sales records from your company’s database into Google Sheets. The dataset has 5,000 rows. Each row represents a single transaction and includes columns for the Date, Salesperson, Region, Product Category, and Revenue. Your manager asks a seemingly simple question: "Which salesperson generated the most revenue in the West region last quarter?" You could try to answer this using the skills from previous chapters. You might recall the sorting and filtering tools covered in Chapter 6, and try to filter the data by region, then sort by salesperson, and use a SUM formula at the bottom of the sheet. But what if you want to compare all salespeople at the same time? What if you then need to break down their sales by product category? Manually filtering, sorting, and writing formulas for each combination would take hours. This is exactly the kind of problem pivot tables are built to solve. What is a Pivot Table? A pivot table is an interactive tool in Google Sheets that allows you to extract the significance from a large, detailed dataset. Instead of manually writing formulas to calculate totals, averages, or counts, a pivot table automatically groups, aggregates, and summarizes your data based on how you arrange it. Think of a pivot table as a remote control for your data. With a few clicks, you can "pivot" your perspective—moving columns to rows, grouping data into categories, and calculating totals—without ever altering your original raw dataset. When should you use a pivot table? When you need to compare subsets of data (e.g., revenue by region, or units sold by product category). When you want to count occurrences (e.g., how many orders each customer placed). When you need to find averages, minimums, or maximums across different categories. When your dataset is too large to easily summarize with basic formulas and manual sorting. The Anatomy of a Pivot Table Before we build one, it helps to understand the basic components. When you create a pivot table, you will work with four main areas: Rows: The categories you want to list vertically down the left side of your table. For example, if you put "Salesperson" in Rows, each salesperson's name will appear on its own row. Columns: The categories you want to list horizontally across the top of your table. If you put "Region" in Columns, each region (East, West, North, South) will become a column header. Values: The data you want to do the math on. This is usually numerical data, like revenue or units sold. The pivot table will automatically sum this data based on the intersections of your Rows and Columns. Filters: An optional area to restrict …

8. Visualizing Data with Charts

Why Visualize Data? Imagine you have just finished summarizing a year of sales data using a pivot table. You have 12 rows representing the months of the year and 5 columns representing different product categories. The numbers are perfectly accurate, but as you scan down the columns, your eyes start to glaze over. Is "Product A" trending upward or downward over the year? Did "Product C" have a sudden spike in July, or was that August? The human brain is remarkably good at processing visual patterns, but it struggles to extract meaning from grids of raw numbers. This is where data visualization comes in. By translating numbers into visual shapes, colors, and positions, we can instantly spot trends, identify outliers, and tell a compelling story with our data. In this chapter, we will transform the data you cleaned, sorted, and summarized in previous chapters into clear, visual charts. Choosing the Right Chart for Your Data Before we click any buttons, we need to talk about chart selection. In Google Sheets, you have access to dozens of chart types, but most data stories can be told using just three foundational charts: the bar chart, the line chart, and the pie chart. Choosing the wrong chart type can confuse your audience or, worse, mislead them. Here is how to decide which one to use. Bar Charts for Comparing Categories A bar chart uses horizontal or vertical rectangular bars to show the size of different categories. The length of the bar represents the value. Use a bar chart when you want to compare different groups or track changes over a small number of time periods. Example: Imagine you have a worksheet tracking your company's total sales across four regions: North, South, East, and West. A bar chart allows you to instantly see which region has the tallest bar (highest sales) and which has the shortest. Vertical vs. Horizontal: If your category names are long (like product names or full month names), a horizontal bar chart prevents the labels from squishing together. If you have many categories, a vertical bar chart (sometimes called a column chart) is usually easier to read. Line Charts for Tracking Trends Over Time A line chart connects individual data points with a continuous line. Use a line chart when you want to show a trend over a continuous period of time. Line charts are excellent for showing the direction of data—whether it is rising, falling, or fluctuating. Example: If you want to see how your total daily website traffic changes over the course of a month, a line chart is the perfect tool. It will clearly show peaks and valleys, helping you identify if traffic is generally growing or …

9. Basic Statistical Analysis

Finding the Center of Your Data Imagine you are managing a small retail store, and you want to know how much money your customers typically spend per visit. You could look at your daily sales total, but that doesn't tell you about individual transactions. You could look at a massive list of individual receipt totals, but staring at a column of 500 numbers doesn't give you an intuitive sense of the "typical" customer. In Module 8: Visualizing Data with Charts, we learned how to turn columns of numbers into graphs. But sometimes, you just need a single number to summarize your data. In statistics, finding this single number is called finding the measure of center. In previous modules, we relied heavily on the AVERAGE function to find the center. While the average (or mean) is useful, it has a blind spot: it is easily skewed by extreme values. If nine customers spend $10, and one customer spends $1,000, the average jumps to $109. But $109 doesn't really represent the "typical" customer at all. To get a clearer picture, we need to calculate the median and the mode. Calculating the Median The median is the middle value of a dataset when the numbers are sorted from smallest to largest. If you have an odd number of data points, the median is the exact middle number. If you have an even number, it is the average of the two middle numbers. Because the median relies on position rather than arithmetic, it is immune to extreme outliers. If Bill Gates walks into your coffee shop, the average customer net worth skyrockets, but the median customer net worth barely changes. Let’s look at a realistic scenario. You have a list of employee salaries in column B, from B2 down to B21. To find the median salary: 1. Click an empty cell to make it your active cell. 2. Type =MEDIAN( into the formula bar. 3. Highlight the range of salaries (B2:B21) or type it manually. 4. Press Enter (or Return on a Mac). Google Sheets will instantly sort the data behind the scenes and return the middle salary. Finding the Mode The mode is the value that appears most frequently in your dataset. This is particularly useful for categorical data or data that repeats. For example, if you want to know the most common shoe size sold in your store, or the most frequent number of days a project is late, the mode is your best tool. Google Sheets offers three variations of this function to handle different scenarios: - =MODE(): Returns the most frequently occurring number. If there is a tie (multiple values appear the same number of times), it returns the first …

10. Sharing, Protecting, and Exporting Data

You have spent nine modules learning how to transform raw, messy data into clean, logical, and insightful analysis. You have built complex formulas, generated pivot tables, and created compelling charts. But an analysis is only valuable if the right people can see it and act on it—and if the wrong people cannot accidentally break it. Imagine you have just finished a massive monthly sales report. You need your manager to review your findings, your teammate to verify the underlying formulas, and the broader marketing team to read the final conclusions. If you simply hand over full editing rights to everyone, someone might accidentally delete a crucial formula or alter a number. Google Sheets is built for real-time collaboration, but successful collaboration requires controlling exactly who can do what. Sharing Your Spreadsheet When you share a Google Sheet, you aren’t sending a static copy of your data. You are granting access to a single, live document that lives in the cloud (Google’s servers). This means everyone you share it with is looking at the exact same file. If you change a number in cell B4, your collaborators see that change instantly. To control how others interact with your data, Google Sheets provides three distinct access levels. Understanding Access Levels Before you invite anyone to your spreadsheet, you need to decide what they should be allowed to do. Viewer: Viewers can look at the spreadsheet and scroll through the data, but they cannot change any numbers, formulas, or text. They also cannot leave comments. This is ideal for broad distribution, like sending a final report to your marketing team. Commenter: Commenters can do everything a Viewer can do, plus they can leave comments attached to specific cells. This is incredibly useful for the review process. Your manager might use a comment to say, "Can you double-check this revenue calculation?" without altering your actual data. Editor: Editors have full control. They can add data, delete rows, change formulas, and even share the file with other people. You should reserve this permission for trusted teammates, like the colleague verifying your underlying data setup. The Sharing Process To share your spreadsheet, look to the top-right corner of the screen and click the blue Share button. This opens the sharing dialog box, which is divided into two main sections. The top section is for inviting specific individuals. 1. Type the email address of the person you want to share the file with. 2. Next to their email address, a dropdown menu will appear. Choose Viewer, Commenter, or Editor. 3. If you want to send them an automated email letting them know the file has been shared, check the box that says "Notify people" and type a …

Continue learning