Google Sheets formulas reference
Google Sheets shares most of its formula language with Excel, but it also ships a small set of extremely powerful functions you won't find anywhere else. QUERY brings SQL to spreadsheets. ARRAYFORMULA lets a single formula fill an entire column. IMPORTRANGE connects workbooks live. And a family of regex helpers makes text cleaning genuinely pleasant.
This section focuses on the Sheets-specific patterns and the everyday functions that behave differently from Excel. Each guide covers exact syntax, worked examples, common pitfalls (quoting strings, mixed column types, permission errors on IMPORTRANGE), and the best-practice patterns that keep Sheets fast even with thousands of rows. If you're moving from Excel to Sheets, or trying to replace a fragile chain of helper columns with a single dynamic formula, start here.
What you'll learn
Core concepts covered across guides in this section.
- SQL-like filtering and aggregation with QUERY
- Auto-expanding formulas via ARRAYFORMULA
- Cross-workbook data with IMPORTRANGE
- Dynamic FILTER, SORT, UNIQUE without helper columns
- Regex helpers: REGEXMATCH, REGEXEXTRACT, REGEXREPLACE
- External data: IMPORTHTML, IMPORTXML, GOOGLEFINANCE
- When to reach for Apps Script instead of a formula
- Performance tips for large Sheets and shared workbooks
Featured Learning Guides
Master Excel, Google Sheets, VBA and business automation through practical tutorials, real-world examples and downloadable resources.
- Guides
- 250+
- Cadence
- Updated Weekly
- Skill range
- Beginner → Advanced
- Access
- Free + Pro
- QUERYIntermediate
Google Sheets
QUERY
Learn SQL-style filtering, grouping, sorting and advanced data analysis inside Google Sheets.
4.912,500 readersPopular8 min read25 ExamplesUpdated Jul 16, 2026Read Guide - ARRAYFComing Next
Google Sheets
ARRAYFORMULA
Apply a formula down an entire column automatically, no drag required.
Learn:
- Dynamic arrays
- Column automation
- Performance tips
7 min read14 ExamplesUpdated RecentlyExpected: August 2026
- IMPORTComing Next
Google Sheets
IMPORTRANGE
Pull live data from another Google Sheet with permissions handled.
Learn:
- Cross-sheet linking
- Permissions
- Refresh behaviour
5 min read10 ExamplesUpdated RecentlyExpected: August 2026
- FILTERComing Next
Google Sheets
FILTER & SORT
Dynamic filtering and sorting without helper columns or scripts.
Learn:
- Nested conditions
- Sort keys
- Combining with QUERY
5 min read12 ExamplesUpdated RecentlyExpected: August 2026
- UNIQUEComing Next
Google Sheets
UNIQUE & COUNTUNIQUE
Extract distinct values and count them in one formula.
Learn:
- Distinct values
- Cross-column uniqueness
- Combining with FILTER
4 min read9 ExamplesUpdated RecentlyExpected: September 2026
- REGEXM ProPro
Google Sheets
REGEXMATCH, REGEXEXTRACT, REGEXREPLACE
Sheets-only regex helpers for cleaning messy text.
- Download workbook files
- Sample datasets included
- Guided exercises
- AI walkthrough
- GOOGLEEarly Access
Google Sheets
GOOGLETRANSLATE & GOOGLEFINANCE
Translate strings and pull market data straight into a sheet.
Learn:
- Language codes
- Market symbols
- Refresh cadence
5 min read8 ExamplesUpdated RecentlyExpected: August 2026
- IMPORT ProPro
Google Sheets
IMPORTHTML & IMPORTXML
Scrape tables and structured data from public web pages.
- Download workbook files
- Sample datasets included
- Guided exercises
- AI walkthrough
- APPSSC ProPro
Google Sheets
Apps Script basics
Automate Sheets with lightweight JavaScript and custom functions.
- Download workbook files
- Sample datasets included
- Guided exercises
- AI walkthrough
Need a custom formula instead?
Generate Excel, Google Sheets or VBA code instantly using XLFormula AI.
Generate with AIWho is this for?
- Teams that collaborate in Google Workspace
- Analysts who need SQL-style transforms without leaving a sheet
- Educators, students, and non-profits on Sheets by default
- Excel users learning the Sheets-specific formula language
Why it matters
Sheets is built for collaboration and integration. Formulas like QUERY and ARRAYFORMULA let a single owner maintain a report that hundreds of people read live — no exports, no stale copies, no manual refresh.
Learning the Sheets-native patterns is what turns a spreadsheet from a static file into a small, dependable data application.
Frequently asked questions
- Are Google Sheets formulas the same as Excel?
- Most core functions match, but Sheets adds QUERY, ARRAYFORMULA, IMPORTRANGE, and regex helpers that Excel doesn't have.
- Do I need Apps Script to automate Sheets?
- Not for most tasks. QUERY, ARRAYFORMULA, and FILTER cover the vast majority of automation. Apps Script is for triggers, external APIs, and complex logic.
- Why does my QUERY return #VALUE!?
- Usually a column letter that doesn't exist in the data range, or mixed data types in a column. See the full QUERY guide for a complete debug checklist.
- How large a dataset can Sheets handle?
- A single sheet supports 10 million cells. QUERY and FILTER handle tens of thousands of rows comfortably; for millions of rows use BigQuery instead.
- Can XLFormula AI write QUERY or ARRAYFORMULA for me?
- Yes. Describe the transformation in plain English on the homepage and get a Google Sheets formula tailored to your data.
Explore related sections
Need a custom formula right now?
Describe what you need in plain English and get a ready-to-paste formula or script in seconds.
Generate a formula with XLFormula AI