Google Sheets for Data Analysis: Formulas, Charts and Real-World Examples

Imagine receiving a spreadsheet containing several hundred fictional learning-resource sessions. You want to discover which subjects attract the most recorded visits, how many sessions are marked complete, whether study activity changes over time and how to work with a classmate without overwriting the analysis. A long sheet of rows cannot answer those questions clearly on its own. This Google Sheets for data analysis tutorial demonstrates how to transform those rows into formulas, filtered subsets, QUERY summaries, genuine PivotTables and useful charts.

Our project, Analysing Global Learning Resources Data Using Google Sheets, uses a fixed-seed fictional dataset from January to December 2025. It contains 246 raw usage entries with six deliberately invalid examples; after documented cleaning, 240 valid sessions remain. There are 40 invented learner codes, 36 educational resources and eight subjects. No real student names, contact details, grades or private school records are included, making the sample appropriate for practicing without exposing anyone’s information.

By the end you can organize a shared spreadsheet, use mathematical and logical functions, perform conditional calculations, combine lookup tables, clean inconsistent values, use FILTER, SORT, UNIQUE, ARRAYFORMULA and QUERY, create actual Google Sheets PivotTables, design five charts and report findings responsibly. You can work from the downloadable starter file, the complete workbook or the connected native Google Sheets practice version. Some Google-only functions are not faithfully represented in an exported Excel workbook, so their execution has been checked in the native file separately.

Verified dataset baseline: 240 valid sessions, 152 completed, 63.33% completion, 13,615 recorded study minutes, 233 sessions with measured durations, and a 58.43-minute mean among measured sessions. Seven valid sessions have missing durations; they are not zero-minute sessions. These figures were independently recomputed, and the native Google Sheets Validation tab also returned the matching results.

What is Google Sheets and why learn it?

Google Sheets is a spreadsheet application that supports entering records, formulas, transformations, charts, PivotTables, sharing and concurrent work. It is commonly accessed in a web browser and has supported mobile applications, although not every web authoring feature is available through mobile interfaces. A spreadsheet resides in the user’s Google Drive and can be renamed, organized and shared according to access permissions.

Google Sheets is useful for accessible data-literacy projects because students can see raw observations alongside calculations, annotate findings and collaborate on a common analysis. Teachers can prepare an exercise tab, protect reference formulas against accidental modification and let learners make their own copies. Researchers and small teams can inspect survey categories, counts or time series using clear methods without needing to write software.

Its limitations include complicated spreadsheet formulas, computational cost from too many repeated whole-column expressions, data source permissions and less specialized modelling than a relational database or BI platform. A sheet with a beautiful chart may still contain duplicated rows, malformed dates or a misleading average. The tool does not replace statistical reasoning or responsible data management.

Google Sheets versus Excel, SQL and Python

ToolTypical strengthImportant caution
Google SheetsBrowser-based collaborative spreadsheets, QUERY, formula arrays and chartsVersion, locale, formulas and sharing permissions matter
Microsoft ExcelSpreadsheet modelling, formulas and supported desktop Power Query/PivotTablesNot every Excel feature transfers identically to Sheets
SQLRelational querying, joins and aggregationRequires correct database structure and query syntax
PythonScripted cleaning, statistics and reproducible automationRequires programming and environment management

For example, Excel may be more convenient when an existing school project relies on advanced Windows desktop features, while Google Sheets may be helpful when participants need browser-based collaboration. SQL and Python can prepare data that later enters a spreadsheet. No option is universally superior. If you want a more detailed analysis of visualization software choices, read our Power BI, Tableau and Excel comparison.

Create your first spreadsheet and recognize its parts

Open Google Sheets using an eligible Google account and create a blank spreadsheet. Rename the file with a descriptive project title. The tabs along the lower area represent individual sheets inside that one file; rename them README, Raw_Sessions, Resources and the others used below. Enter descriptive column labels, format the header row and freeze row 1 so the field names remain visible when you scroll through the 246 source records. Google Sheets normally saves changes automatically in Drive; you do not need to rely on a separate manual save command for ordinary editing.

A cell is one location such as A2, and a range is a group of cells such as A2:A20. Relative references normally move when copied; absolute references use dollar signs to hold positions. For instance $A$2 fixes both the column and the row, while $A2 fixes only the column and A$2 fixes only the row. If a lookup table should remain fixed when a formula is filled down, absolute range references help prevent the lookup window from drifting.

Educational examples of A2 relative, absolute and mixed cell references.
These are A1-reference teaching diagrams, not screenshots of a live Sheets interface.

Formulas begin with an equals sign, as in =A2+B2 or =SUM(G2:G20). Functions have arguments separated by commas in the US locale used in this tutorial. Other spreadsheet locales may use semicolons; date interpretation and decimal separators may also vary. Check File → Settings and the spreadsheet’s locale before copying expressions if the results or error messages differ from the examples.

Project dataset and twelve-tab workbook layout

TabPrimary purpose
READMEDefinitions, dataset and permissions
Raw_SessionsAll 246 unchanged fictional source entries
Resources36 catalog records keyed by ResourceID
Clean_SessionsRaw rows with lookup fields, dates and validity status
Analysis_DataExactly 240 accepted session records
Formula_GuideFunction examples and expected outputs
Query_AnalysisNative QUERY, FILTER and UNIQUE calculations
Pivot_AnalysisThree native pivot summaries plus reference checks
ChartsFive native charts and a SPARKLINE example
Practice and Answer_Key20 original tasks and solutions
ValidationIndependent target values and live formulas

The raw nine-column layout is fixed: A SessionID, B LearnerCode, C ResourceID, D SessionDate, E StudyLevel, F Region, G MinutesSpent, H Completed and I Rating. Clean and analysis sheets extend it through O: J Subject, K ResourceTitle, L ResourceType, M Difficulty, N MonthStart and O DataStatus. Keep this structure consistent; a QUERY expression using column J will not suddenly refer to Subject if a new column is inserted ahead of it without updating the formula.

Diagram of cleaning data then calculating QUERY summaries PivotTables and charts.
The project steps are illustrated conceptually; the actual calculations are in the practice files.

SUM, AVERAGE, COUNT, COUNTA and statistical summaries

SUM adds numeric recorded durations, AVERAGE computes the arithmetic mean of numeric durations, and COUNT counts cells containing numbers. COUNTA instead counts nonempty cells, so it can count text SessionID values. Using the accepted Analysis_Data rows only, SUM returns 13,615, COUNT on G returns 233, and COUNTA on A returns 240. AVERAGE is 13,615 divided by 233, approximately 58.43 minutes. Do not replace missing minutes with zero solely to make the mean appear easier to calculate.

=SUM(Analysis_Data!G2:G241)
=AVERAGE(Analysis_Data!G2:G241)
=COUNT(Analysis_Data!G2:G241)
=COUNTA(Analysis_Data!A2:A241)

MIN and MAX identify the shortest and longest recorded durations in the valid numeric observations: 10 and 110 minutes. MEDIAN finds the middle observed duration, 60 minutes; unlike a mean, it is less sensitive to exceptionally long sessions. ROUND controls reported precision without changing the stored observations. STDEV.S gives the sample standard deviation, approximately 30.93 minutes in this example, indicating variability without making a claim about student achievement.

=MIN(Analysis_Data!G2:G241)
=MAX(Analysis_Data!G2:G241)
=MEDIAN(Analysis_Data!G2:G241)
=ROUND(AVERAGE(Analysis_Data!G2:G241),2)
=STDEV.S(Analysis_Data!G2:G241)

SUMPRODUCT multiplies corresponding numeric values and sums the products. A simple weighted project might use =SUMPRODUCT(B2:B5,C2:C5) to combine four category counts with four assigned weights of the same length. In the engagement example, it can also sum measured minutes for rows where Completed is 1, if the numeric arrays are correctly prepared and blank durations are handled responsibly. The common mistake is multiplying ranges of unequal lengths or confusing the resulting weighted sum with a mean.

Logical formulas: IF, AND, OR, IFS, IFERROR and IFNA

Logical functions convert a numerical or textual condition into a decision. IF checks one condition and returns one result if true and another if false. In a classroom exercise, you might label a measured session of at least 30 minutes as Long. But =IF(G2>=30,"Long session","Short session") is not safe if the cell may be blank or malformed. Preserve missingness explicitly before classifying durations, and explain that 30 minutes is an illustrative threshold rather than a scientifically validated learning standard.

=IF(G2="","Missing",IF(G2>=30,"Long session","Short session"))
=AND(G2>=30,H2=1)
=OR(E2="First-year",E2="Secondary")
=IFS(G2="","Missing",G2>=60,"Long",G2>=30,"Medium",TRUE,"Short")

AND requires all supplied conditions to be true, whereas OR is true when at least one condition holds. IFS checks conditions in sequence and returns the first matching result; include a final default when the categories should cover all valid cases. IFERROR handles many formula failures, but overusing it can conceal genuine data problems. Prefer IFNA when you specifically want to handle an unmatched lookup without masking unrelated errors such as a malformed range.

Conditional analysis: COUNTIF, COUNTIFS, SUMIF, SUMIFS and averages

COUNTIF answers a one-condition question: how many accepted sessions have Completed = 1? Our result is 152. COUNTIFS accepts several matching conditions and can identify Biology events marked complete: 21. The criteria ranges must contain the same number of rows, and the Completed field must be numeric 1 or 0. Counting the word “Yes” would return a different result because this dataset intentionally uses integer flags.

=COUNTIF(Analysis_Data!H2:H241,1)
=COUNTIFS(Analysis_Data!J2:J241,"Biology",Analysis_Data!H2:H241,1)
=COUNTIFS(Analysis_Data!J2:J241,"Physics",Analysis_Data!H2:H241,1)

SUMIF sums recorded minutes within one subject, while SUMIFS can require both Mathematics and completed status. Use the G duration range as sum_range and the Subject and Completed columns as criteria ranges. That is different from counting the sessions: five ten-minute events and five one-hundred-minute events have the same count but very different totals. Missing durations remain blank, which SUM ordinarily ignores.

=SUMIF(Analysis_Data!J2:J241,"Biology",Analysis_Data!G2:G241)
=SUMIFS(Analysis_Data!G2:G241,Analysis_Data!J2:J241,"Mathematics",Analysis_Data!H2:H241,1)

AVERAGEIF and AVERAGEIFS compute means for matching groups, such as all Lesson sessions or completed Biology sessions. Use the numeric duration field as the average range and retain matching criteria lengths. If no matching numeric durations exist, a division or averaging function may return an error. Investigate the empty group rather than substituting a zero and claiming that the missing subgroup genuinely studied for no time.

COUNTUNIQUE can count distinct learner codes. Use the bounded B2:B241 range so an empty full-column value cannot complicate the interpretation, and confirm that every accepted learner code is nonblank. There are 40 distinct fictional learners and 36 accessed resources. Neither value equals 240 because one learner can record multiple sessions and one resource can be used repeatedly. This distinction is fundamental when writing research conclusions.

Conditional formula examples including 21 completed Biology sessions and 13615 recorded minutes.
Verified values from the synthetic CSV, not a screenshot of application interface controls.

Combine tables with XLOOKUP, VLOOKUP and INDEX/MATCH

The Resources tab lists 36 resources identified by unique ResourceID values. On Clean_Sessions, cell C2 contains a ResourceID from the session. To retrieve the corresponding Subject from Resources column B, use XLOOKUP with the key, lookup range and return range; the fourth argument supplies an explicit fallback when the key is not found. In the first valid row, RES-003 maps to Biology. Copying the formula down should retrieve catalog data rather than trusting a manually typed subject.

=XLOOKUP(C2,Resources!$A$2:$A$37,Resources!$B$2:$B$37,"Not found")
=VLOOKUP(C2,Resources!$A$2:$F$37,2,FALSE)
=INDEX(Resources!$B$2:$B$37,MATCH(C2,Resources!$A$2:$A$37,0))

VLOOKUP searches the first column of its table range; the numeric 2 selects the second column within A:F. Passing FALSE ensures exact matching. MATCH finds the exact row position when its third argument is zero; INDEX then returns the corresponding Subject. The INDEX/MATCH combination is useful for understanding older spreadsheet techniques, even when XLOOKUP is clearer. Verify that resource keys are unique and that the two XLOOKUP ranges have compatible lengths.

Missing lookups are not harmless cosmetic errors. The fictional raw data deliberately contain a ResourceID absent from the catalog. Silently treating that row as a valid resource would misstate subject and resource-type totals. The correct educational response is to flag the unmatched record, investigate it and exclude it under the documented validity rules, preserving the raw entry for audit. These lookup checks are a practical example of joining data without accidentally multiplying rows.

Conceptual ResourceID matching from session code to resource catalog Subject.
RES-003 maps to Biology; the two-table lookup is verifiable in the practice workbook.

Clean messy data: preserve, standardize, validate

Begin by keeping Raw_Sessions unchanged and performing transformations on a separate sheet or copy. Inspect duplicate SessionIDs, invalid calendar dates, missing resource keys, negative minutes and completion flags outside the accepted 0/1 range. A duplicate identifier does not automatically prove two legitimate events are the same; inspect whether a record repeats exactly or conflicts. Here six deliberately invalid examples are excluded, leaving 240 accepted records. Seven otherwise valid sessions have blank study durations and are retained because a missing duration is not itself proof that the event did not occur.

TRIM removes ordinary unnecessary whitespace; CLEAN removes many nonprinting characters, while SUBSTITUTE can replace a specified unwanted character, including nonbreaking spaces when explicitly detected. LOWER, UPPER and PROPER can standardize display text, but may corrupt identifiers with meaningful capitalization. For example, transforming a case-sensitive code without checking its intended format can make matching worse.

=TRIM("  RES-003  ")
=TRIM(SUBSTITUTE(A2,CHAR(160)," "))
=CLEAN(A2)
=LOWER(B2)
=UPPER(B2)
=PROPER(E2)

SPLIT separates a predictable compound value, such as an intentionally generated label containing a delimiter. REGEXREPLACE replaces text matching a regular expression, while REGEXEXTRACT retrieves a matching substring. These are powerful for controlled code patterns, not guaranteed validators for every human name, date or arbitrary text. VALUE converts a valid text representation of a number, but decimal separators depend on locale. Review converted output rather than trusting a mass conversion that could misinterpret many records.

=SPLIT("Biology|Lesson","|")
=REGEXREPLACE("RES - 003","\s+","")
=REGEXEXTRACT("SES-0024","\d+")
=VALUE("35")

A good cleaning log records each rule, how many records fail it, what happens to incomplete measurements, and whether the transformation can be reproduced. Keep the original value so that later researchers can inspect a disputed choice. If a value is missing, do not invent an observation merely to avoid a formula error. Use DataStatus to mark Accepted or Excluded, and ensure Analysis_Data contains only the eligible 240 rows.

Dates must be genuine values, not merely text that resembles dates

Google Sheets stores recognized dates as numbers with date formatting. This matters because a text value that looks like a date might sort alphabetically instead of chronologically. DATE constructs a valid date from year, month and day numbers, while YEAR, MONTH and DAY extract components from a typed date. TEXT creates readable labels such as a year-month string, but the resulting label is text and should not replace the original date for calculations.

=DATE(2025,3,8)
=YEAR(Analysis_Data!D2)
=MONTH(Analysis_Data!D2)
=DAY(Analysis_Data!D2)
=TEXT(Analysis_Data!D2,"yyyy-mm")
=EOMONTH(Analysis_Data!D2,0)

EOMONTH finds the month-end date for a date with a specified offset. TODAY reports a dynamic current date, useful for an ongoing workflow but inappropriate as a fixed benchmark for our historical dataset. The project covers January through December 2025, so the monthly chart must use those twelve chronological months, not the day this tutorial was published. Compare date serial types and actual formatted dates after importing a CSV; text and date types should not be mixed within the calculation range.

Dynamic arrays: FILTER, SORT, UNIQUE, SORTN and ARRAYFORMULA

Google Sheets can return several results from a single formula and place them into neighbouring empty cells. This behavior is called array spilling. It is one of the platform’s most useful teaching features because one expression can produce an entire table of matching records, rather than requiring students to copy and paste a filter result. Leave enough blank space to the right and below the formula: otherwise Google Sheets displays a #REF! error explaining that the array cannot expand into occupied cells.

For example, FILTER returns the rows from A:O where J is Biology. The real native practice workbook produced 33 matching sessions after the spill region was cleared. If no rows match, FILTER typically returns #N/A rather than an invented zero-row result; handle that case in your reporting logic. The condition and data ranges must cover the same number of rows. Filtering column A2:O241 against only J2:J20 would not be a valid like-for-like row filter.

=FILTER(Analysis_Data!A2:O241,Analysis_Data!J2:J241="Biology")
=SORT(Analysis_Data!A2:O241,7,FALSE)
=SORT(UNIQUE(Analysis_Data!J2:J241))

SORT arranges rows by a specified column; position 7 in the A:O range means MinutesSpent, not the seventh column of the current screen. Setting ascending to FALSE sorts the larger values first. UNIQUE removes repeated subject labels to produce a list of eight distinct subjects. A combination of SORT and UNIQUE creates a readable alphabetical category list. SORTN can return a limited number of sorted rows and supports options affecting ties; do not use it to claim a definitive top ten without documenting how tied values are handled.

ARRAYFORMULA applies supported expressions across a range. In this project it can generate Completed or Incomplete labels for 240 session records with one formula. The most important safeguards are a blank destination column, a clearly bounded source, consistent types and a row-level blank check. Some modern Sheets functions already spill results without wrapping ARRAYFORMULA, so adding it everywhere can make formulas longer without improving the result.

=ARRAYFORMULA(IF(Analysis_Data!A2:A241="","",IF(Analysis_Data!H2:H241=1,"Completed","Incomplete")))
Dynamic array diagram showing FILTER Biology returns 33 rows and UNIQUE returns eight subjects.
The actual Google Sheets QUERY and FILTER ranges were executed and checked; the diagram explains their behavior.

QUERY for beginners: spreadsheet analysis with SQL-like clauses

QUERY allows a sheet to select, filter, sort and aggregate records with a query expression. Its signature is QUERY(data,query,headers): the first argument defines the source range, the second is a string written in the Google Visualization API Query Language, and the third describes how many header rows the source has. This language resembles SQL but it is not SQLite, does not implement every SQL database capability and handles data types differently.

A beginner can first select the SessionID and Subject columns with select A,J, then add where J is not null to ignore blank labels. Adding order by J sorts by subject. Use limit 5 to return a short preview, but remember that limiting an unsorted dataset does not mean the result is the five most important sessions. Use exact column letters for A:O in this workbook; another sheet layout requires a new query.

=QUERY(Analysis_Data!A1:O241,"select A,J where J is not null limit 5",1)

The most powerful beginner pattern is group by, which combines all records with the same value into an aggregate row. Here column J identifies Subject and column A contains unique session IDs, so count(A) returns event counts. The query sorts by the count descending and changes the output labels to Subject and Sessions. This exact expression was run in the native Google Sheets workbook: it returned eight subject groups, led by Physics with 37 sessions, and all eight counts sum to 240.

=QUERY(Analysis_Data!A1:O241,"select J,count(A) where J is not null group by J order by count(A) desc label J 'Subject',count(A) 'Sessions'",1)
SubjectVerified sessions
Physics37
Chemistry36
Biology33
Mathematics33
Economics31
Computer Science28
Astronomy22
Geography20

QUERY can also sum the measured minutes by study level. StudyLevel is in E, and MinutesSpent is in G. The native formula uses select E,sum(G) and groups on E; the results are First-year 5,260 minutes, Secondary 2,630 and Upper-secondary 5,725, totaling 13,615. This total matches SUM over all valid session durations, so two independent approaches support the result.

=QUERY(Analysis_Data!A1:O241,"select E,sum(G) where E is not null group by E label E 'Study level',sum(G) 'Minutes'",1)

In QUERY, the header argument matters: passing 1 for a range with one header row avoids treating its labels as observations. The query engine may treat values of a minority data type as null when a column mixes types; clean dates, completion numbers and duration values before interpreting missing results. Date expressions in QUERY also use the visualization query language’s date-literal conventions, so database SQL snippets cannot always be pasted unchanged.

The two live native QUERY examples were checked against independent source results. During the initial native setup, formula arrays displayed #REF! because apparently empty neighbouring cells still blocked their spills; clearing those cells and re-entering the formulas resolved the issue. This is a real practical lesson: investigate where the output should expand before changing a correct query. For a deeper foundation in relational querying, see our SQL for Data Science Beginners tutorial.

Educational diagram explaining QUERY aggregation by Subject with Physics 37 sessions.
QUERY results were verified in the native Google Sheet; the diagram is not an application screenshot.

IMPORTRANGE: connecting another spreadsheet responsibly

IMPORTRANGE retrieves a range from another Google spreadsheet for which you have appropriate access. The formula takes a source spreadsheet URL or identifier and a range string. A student might import an approved teacher-prepared summary, but this creates an additional dependency: the source must be accessible, the destination may require an initial Allow access action, and changes or outages can affect the imported result.

=IMPORTRANGE("PASTE_AN_AUTHORIZED_SPREADSHEET_URL","Summary!A1:C20")

The placeholder above is intentionally not a live private URL. No external spreadsheet connection was created, and no user data were imported from an unrelated account. An imported range becomes part of the destination spreadsheet; if the destination is broadly shared, the imported values may also become visible to people who could not access the source directly. Minimize imported columns, avoid chains of many linked sheets and inspect permissions before sharing.

An access error can indicate missing authorization, an invalid range string or an unavailable source. Request access through the owner’s approved workflow rather than making a private file public just to make a formula work. For a reproducible student project, the provided resource catalog is already within the same workbook, so IMPORTRANGE is an optional learning extension rather than a requirement.

Sort, filters and filter views in shared projects

Use standard Sort commands to order rows alphabetically or numerically, but check whether only one column or the whole table is selected. Sorting only SessionID while leaving the other fields unmoved destroys the association between events and measurements. A standard sheet filter helps hide rows matching criteria without deleting them; a FILTER formula, by contrast, returns a separate dynamically calculated result table. Filter views allow separate analytical views for collaborators where supported, reducing the chance that one person’s temporary filtering disrupts another person’s work.

Data validation and conditional formatting

Data validation can provide a dropdown for StudyLevel, Region, Difficulty or the numeric completion flag, helping users enter consistent permitted values. Choose an appropriate list of accepted values and determine whether invalid entries generate a warning or are rejected. A dropdown is a guardrail, not proof that a resource code exists or that a date falls in the intended year. Lookup and date checks remain necessary.

Conditional formatting can highlight negative durations, blank required IDs, completion status or duplicate SessionIDs. For example, a custom formula using COUNTIF can identify a repeated SessionID across the accepted range. Apply rules to a clearly bounded selection and keep labels visible, because red-versus-green color alone can exclude users with color-vision differences. A conditional format flags an issue; it does not automatically repair a wrong date or invalid lookup.

Keep the workbook responsive and analytical

When a spreadsheet grows, repeated whole-column QUERY, FILTER and regex expressions can become unnecessarily expensive. Prefer a defined valid data range, reuse one cleaned dataset, document complex expressions in the Formula_Guide, and avoid long IMPORTRANGE chains. A volatile TODAY function is sensible for a real current-date report but can distract from a historical exercise. The speed of any workbook depends on its formulas, connected data and calculation environment; do not infer a universal row-count performance threshold from this small example.

Build three genuine Google Sheets PivotTables

A PivotTable summarizes records by placing fields into Rows, Columns, Values and optional Filters. From the 240-row Analysis_Data range, use the current Google Sheets menu path to insert a PivotTable, then inspect the PivotTable editor. The first project PivotTable uses Subject as Rows and COUNTA of SessionID as Values. Each Subject has a number of matching session identifiers, and the grand total must equal 240. Never use SUM of text identifiers, and avoid accidentally including all 246 raw rows.

The second PivotTable groups by StudyLevel and sums MinutesSpent, returning 5,260 First-year, 2,630 Secondary and 5,725 Upper-secondary minutes. The third groups Subject in Rows and Completed in Columns, counting SessionID for each combination of subject and 0/1 completion. Its overall incomplete column totals 88 and completed column totals 152. All three are **genuine native Google Sheets PivotTable objects** in the connected practice file; the exported XLSX companion uses ordinary summary tables and must not be mistaken for an equivalent native pivot implementation.

Diagram of native Google Sheets PivotTable fields and 240-session source.
PivotTable design guide; the three actual pivot objects live in the native Google Sheets practice document.

Create five meaningful charts and verify their totals

A chart is a selected visual representation of one analytical question, not proof that the underlying data were cleaned correctly. Start with the validated summary ranges, select the chart source, choose Insert → Chart and set the chart type in the editor. Use the source categories and numeric totals, not arbitrary decorative values. The native practice file contains five genuine Google Sheets chart objects; the downloadable completed XLSX also includes five ordinary spreadsheet charts for portability.

For subject usage, use a horizontal bar chart with all eight subjects and a count axis. Physics has 37 sessions, followed by Chemistry with 36; Biology and Mathematics both have 33. For the time series, make a line chart showing January through December 2025 in chronological order. The largest month in this fictional log is March with 30 events, while December has 12. These events describe generated usage, not measured subject popularity or academic performance.

Actual source-data bar chart with Physics 37 and total session count 240.
Source-derived chart, not an imitation Google Sheets application screenshot.
Source-derived chronological monthly activity across all twelve months of 2025.
The monthly totals reconcile to 240 accepted sessions.

The third chart compares measured study minutes by level; use a column chart with a visible minutes axis. The fourth compares resource types: Lesson 95 sessions, Quiz 56, Worksheet 54 and Video 35. The fifth shows 152 completed versus 88 incomplete sessions. Label each chart with its measure and unit, keep the colors consistent and avoid a distracting 3D effect. Different study-level minute totals partly reflect different numbers of recorded sessions; a raw total does not identify individual learning outcomes.

Source-derived resource type comparison including 95 Lesson sessions.
Four resource-type groups sum to 240 accepted sessions.
Verified 152 completed and 88 incomplete fictional session events.
Completion describes the generated flag, not mastery of a subject.

SPARKLINE creates a miniature chart directly inside a cell, useful for compact reporting alongside a full-size line chart. In the native workbook, the monthly count range on Charts is E2:E13 in chronological order. An expression such as =SPARKLINE(E2:E13) can show the pattern without embedding a large floating chart. It does not replace proper x-axis labels or a description of what is measured when interpreting the trend.

Collaborate safely: permissions, filters and protected ranges

A spreadsheet owner can share a document with named collaborators as Viewer, Commenter or Editor, as appropriate. Viewers can inspect authorized content; commenters can provide feedback; editors may change values and formulas. For a group project, protect important formula ranges from accidental editing and keep raw data separate from each student’s working analysis. Protected ranges are a convenience to prevent mistakes, not a security boundary that hides private records from everyone permitted to view the sheet.

Use comments and version history to explain changes, and use separate filter views when two people investigate different categories. Before granting broad link access, check whether a workbook includes hidden columns, copied source data or values imported from another private spreadsheet. The project’s native Google Sheet remains restricted by default, and no public link-sharing or public publishing permissions were granted. The WordPress downloads intentionally include only fictional observations.

Google Sheets access distinctions for Viewer Commenter Editor and restricted documents.
Privacy and collaboration illustration; never assume cell protection makes underlying data confidential.

Ten-question capstone: from raw records to findings

After completing the preceding lessons, use Analysis_Data, QUERY, a native PivotTable or carefully verified conditional formulas to answer ten linked research questions. The objective is not merely to copy the listed reference result. For each result, record your calculation, the denominator or field being summarized, a short interpretation and at least one limitation. If a different formula produces the same answer, explain why the approaches are equivalent.

QuestionMethodVerified answer
1. Valid sessionsCOUNTA of accepted SessionID240
2. Completed sessionsCOUNTIF H = 1152
3. Completion rate152 / 24063.33%
4. Recorded minutesSUM numeric G13,615 minutes
5. Mean measured durationAVERAGE numeric G58.43 minutes
6. Most-used subjectQUERY / PivotTablePhysics, 37 sessions
7. Most-used resource typeQUERY group LLesson, 95 sessions
8. Monthly patternChronological line chartMarch 30; December 12
9. Highest study-level completion rateConditional counts per levelFirst-year, 68.75%
10. Report three defensible findingsCounts, rates and caveats240 sessions, 63.33% completion, Physics 37; fictional data

The capstone can be adapted into a short research report using the companion Word template. A good conclusion might state that Physics appears most frequently in these generated records, that nearly two-thirds of accepted session events were marked complete and that recorded minutes differ by study level. It should also clarify that the events were artificially generated, the dataset does not measure exam performance, and a completed session need not mean the learner understood the material.

Common errors: diagnose the cause instead of hiding the message

Common spreadsheet failures include the wrong comma-or-semicolon formula separator, an unexpected locale, a number imported as text, a text date sorted alphabetically, and relative lookup references that drift when filled down. #REF! often indicates a blocked array output; #N/A can signal an unmatched lookup or a FILTER returning no results; #VALUE! may indicate an incompatible type, while #DIV/0! requires a denominator check. Each message is a clue about the calculation and source.

QUERY mistakes frequently involve using the wrong column letter, failing to supply the correct header count, copying database SQL syntax that Sheets QUERY does not implement, or mixing text and numeric values. IMPORTRANGE adds possible authorization and performance problems. PivotTables may omit records when the selected source range excludes new rows, and charts can retain misleading source labels after a change. Overwritten formulas or inappropriate Anyone-with-the-link sharing can be more serious than a visible formula error.

For performance and reliability, use bounded ranges where practical, separate raw from cleaned data and avoid duplicating expensive formulas across thousands of cells. Validate the important totals independently before trusting a chart. An error-handling function should help a learner understand a legitimate no-match case, not suppress a serious invalid source value. Successful analysis is reproducible, transparent and cautious about what the observations can support.

Twenty original Google Sheets student exercises

Each question tests an analytical habit, not just the spelling of a function. The first five cover spreadsheet fundamentals, the second five conditional analysis, the third five cleaning and dynamic arrays, and the final five QUERY and visual reporting. Try the task in the native Google Sheet or a personal copy before expanding the answer. All numerical examples below refer to the same 240 valid fictional sessions.

1. Explain A2 and A2:A8.

Objective: Understand cell references. Hint: Count the rows in the range. Answer: A2 is one cell; A2:A8 spans seven cells. Common mistake: treating a range as an entire row.

2. Find the total recorded minutes with SUM.

Objective: Sum numeric durations. Hint: Use column G of Analysis_Data. Answer: =SUM(Analysis_Data!G2:G241) returns 13,615. Mistake: summing the 246 raw rows.

3. Calculate average measured duration.

Objective: Handle missing values correctly. Hint: Count recorded durations, not all sessions. Answer: =AVERAGE(Analysis_Data!G2:G241) is 58.43 minutes. Mistake: dividing by 240 rather than 233.

4. Count nonblank numeric durations.

Objective: Distinguish COUNT from COUNTA. Hint: Column G has seven blanks. Answer: =COUNT(Analysis_Data!G2:G241) returns 233. Mistake: claiming all 240 sessions were measured.

5. Classify a recorded session using IF.

Objective: Add a safe categorical helper. Hint: Handle blank G2 first. Answer: =IF(G2="","Missing",IF(G2>=30,"Long","Short")). The first session is Long. Mistake: treating a blank as an observed zero.

Level 2 — Conditional calculations (6–10)

6. Count all completed sessions.

Objective: Use COUNTIF. Hint: Completed is numeric 1. Answer: =COUNTIF(Analysis_Data!H2:H241,1) returns 152. Mistake: searching for text Yes.

7. Count completed Biology sessions.

Objective: Combine conditions. Hint: Use J and H. Answer: =COUNTIFS(Analysis_Data!J2:J241,"Biology",Analysis_Data!H2:H241,1) returns 21. Mistake: using criteria ranges of different lengths.

8. Sum minutes for completed Mathematics sessions.

Objective: Use SUMIFS. Hint: Sum G when J=Mathematics and H=1. Answer: =SUMIFS(Analysis_Data!G2:G241,Analysis_Data!J2:J241,"Mathematics",Analysis_Data!H2:H241,1). Mistake: adding counts rather than minutes.

9. Average completed Biology durations.

Objective: Use AVERAGEIFS. Hint: Average G within completed Biology records. Answer: =AVERAGEIFS(Analysis_Data!G2:G241,Analysis_Data!J2:J241,"Biology",Analysis_Data!H2:H241,1). Mistake: forcing blanks to zero.

10. Count unique learners.

Objective: Distinguish visits from individuals. Hint: Count distinct B values. Answer: =COUNTUNIQUE(Analysis_Data!B2:B241) returns 40. Mistake: reporting 240 students.

Level 3 — Data cleaning and arrays (11–15)

11. Remove padding from a ResourceID.

Objective: Use TRIM. Hint: Test a deliberately padded code. Answer: =TRIM(" RES-003 ") returns RES-003. Mistake: assuming ordinary TRIM removes every possible Unicode whitespace character.

12. Look up a resource’s subject.

Objective: Match two sheets. Hint: Match ResourceID in column A. Answer: =XLOOKUP(C2,Resources!$A$2:$A$37,Resources!$B$2:$B$37,"Not found") maps RES-003 to Biology. Mistake: using a shifted lookup range.

13. Extract Biology sessions with FILTER.

Objective: Use a dynamic array. Hint: J must equal Biology. Answer: =FILTER(Analysis_Data!A2:O241,Analysis_Data!J2:J241="Biology") spills 33 rows. Mistake: occupying cells needed by the spill.

14. List distinct subjects in alphabetical order.

Objective: Combine SORT and UNIQUE. Hint: Subject is in J. Answer: =SORT(UNIQUE(Analysis_Data!J2:J241)) returns eight categories. Mistake: counting repeated rows as new categories.

15. Generate completion labels with ARRAYFORMULA.

Objective: Fill a helper column. Hint: Test H for 1 and A for blanks. Answer: =ARRAYFORMULA(IF(A2:A241="","",IF(H2:H241=1,"Completed","Incomplete"))). Mistake: placing formula where the output cannot spill.

Level 4 — QUERY, pivots and charts (16–20)

16. Select two columns using QUERY.

Objective: Learn the query expression. Hint: Use A and J with one header. Answer: =QUERY(Analysis_Data!A1:O241,"select A,J where J is not null limit 5",1) returns five ID–Subject pairs. Mistake: confusing the header row with data.

17. Group session counts by Subject.

Objective: Use GROUP BY. Hint: Count A grouped by J. Answer: select J,count(A) where J is not null group by J order by count(A) desc inside QUERY; Physics has 37. Mistake: using SQLite syntax without checking QUERY rules.

18. Construct a genuine native PivotTable.

Objective: Configure rows and values. Hint: Source is Analysis_Data!A1:O241. Answer: Rows Subject, Values COUNTA of SessionID; the eight groups total 240. Mistake: calling manually painted summary cells a native pivot.

19. Plot the 2025 monthly trend.

Objective: Create a chronological chart. Hint: Sort by YearMonth. Answer: Twelve months total 240, with March 30 and December 12. Mistake: alphabetical month ordering.

20. Write three cautious analytical findings.

Objective: Communicate evidence and uncertainty. Hint: Cite totals and denominators. Answer: 240 sessions, 152 completed (63.33%) and Physics 37. Mistake: claiming these fictional visits prove learning improvement.

Four-week learning roadmap

WeekLearning outcome
Week 1Understand worksheets, references, SUM, COUNT, AVERAGE and IF; reproduce basic totals.
Week 2Clean source records, preserve missing values, practice COUNTIFS, SUMIFS and lookups.
Week 3Run FILTER, UNIQUE and QUERY; create real PivotTables and five charts.
Week 4Complete the ten-question capstone, compare Validation results and prepare a short report.

Four weeks provides a practical starting structure rather than guaranteed mastery. Take longer when a calculation is unclear, especially if the date, row count or denominator differs from the verified reference. Each independent exercise should demonstrate an understanding of what the formula measures, not merely produce a matching screenshot.

Download practice files and project materials

Use the starter spreadsheet (.xlsx) or completed portable workbook (.xlsx). Download the Google Sheets formulas guide, QUERY practice guide, 20 exercises and capstone, student answer guide, editable Word report template, and validation checklist. The full companion ZIP and raw CSV are supplied separately in the project completion report because the WordPress media endpoint did not accept every archive or data format.

A genuine twelve-tab Google Sheets practice workbook was also created in the connected Google Drive. It includes actual Google Sheets QUERY and FILTER results, three native PivotTables and five embedded charts. It has not been changed to Anyone with the link or publicly embedded, because an external Google Drive sharing action requires separate permission. Its link is available to the connected account; the public WordPress page instead uses downloadable fictional-data workbooks.

Optional spreadsheet courses: Coursera and Udemy

Optional courses are useful for deeper practice, not required to complete the free project. Approved Notes for SHS affiliate tracking was unavailable for confirmation, so the course links are ordinary destinations without invented tags, prices or discount promises. Choose a current course only after checking its syllabus, duration, access requirements and reviews.

Learn Google Sheets

Coursera: Explore Google Sheets fundamentals and spreadsheet productivity, then practice the functions against this free dataset.

Google Sheets course information

Expand Spreadsheet Skills

Udemy: Google Sheets for Data Analysis & Business Intelligence introduces spreadsheet formulas, PivotTables and charts; check current enrollment details.

Explore Google Sheets courses

Frequently asked questions

Is Google Sheets suitable for real data analysis?

Yes, for appropriately scoped data cleaning, conditional aggregation, QUERY summaries, PivotTables and charts. Results still require validation and appropriate privacy controls.

Is Google Sheets free to learn?

Many personal spreadsheet features can be used without purchasing an enterprise plan, subject to account and product conditions. Collaboration permissions must still be managed.

Is Google Sheets better than Excel?

Neither is universally better. Google Sheets offers a browser-centred collaboration experience; Excel provides powerful desktop features in supported editions.

What does Google Sheets QUERY do?

QUERY selects, filters, sorts and groups a spreadsheet range using the Google Visualization API Query Language; it is not a complete SQL database engine.

Can QUERY calculate a group’s total minutes?

Yes. With numeric G durations and E study levels, use select E,sum(G) group by E with one correctly defined header row.

Can I use XLOOKUP in Google Sheets?

Yes. XLOOKUP matches a key in one row or column and returns the corresponding result; a missing-value argument can handle unmatched IDs.

Why does FILTER display #REF!?

The result may be blocked by values in cells where the array would spill. Clear the destination area and check whether the ranges are compatible.

Are Google Sheets PivotTables real interactive summaries?

Yes when created as native pivot objects. The connected practice file has three; plain summary tables in exported Excel files are not equivalent objects.

How does IMPORTRANGE handle private sources?

It requires an accessible source and may need initial permission approval. Do not import confidential columns into a broadly shared destination.

How do I protect my Google Sheets workbook?

Keep sharing restricted, give only needed viewer/commenter/editor roles, and use protected ranges to prevent accidental changes; range protection alone does not hide confidential data.

Explore the verified Notes for SHS articles Excel for Data Analysis, Excel Dashboard Tutorial, Power BI for Beginners, Power BI vs Tableau vs Excel, SQL for Data Science Beginners and Clean and Analyze CSV Files with Python. These are published articles on the connected staging site.

Primary references: Google Sheets function list, QUERY, FILTER, XLOOKUP, PivotTables, IMPORTRANGE and collaboration guidance. Interface labels and limits may change, so consult Google Help for the version and account you use.

Conclusion: build formulas you can explain and results you can reproduce

You have progressed from individual cells and simple arithmetic to cleaned datasets, multiple conditions, lookups, date analysis, dynamic arrays, QUERY, native PivotTables and charts. Each step contributes to one goal: transforming rows into a small set of findings that a student can check, reproduce and communicate clearly. The verified references allow you to identify whether an incorrect result comes from a formula, source range, invalid record or different denominator.

The strongest projects also respect collaboration and privacy. The sample data are entirely invented; the six exclusions and seven missing durations are documented rather than hidden. Use a copy of the workbook to complete the capstone, compare your results to the native Validation tab, and explain the limitations of the fictional usage log. Your next natural skill is a deeper study of how to clean messy data in Excel and Google Sheets—Topic 71—so that future analysis begins with trustworthy observations.