Google Sheets Range Syntax: A Complete Guide

How-to basics · Updated November 23, 2026

Google Sheets range syntax is a way to reference a group of cells, written as the top-left cell, a colon, and the bottom-right cell (e.g., A1:B10). This simple notation is the foundation for nearly every formula, chart, and data operation in Sheets, and mastering it lets you write cleaner, more powerful formulas.

What Is a Range in Google Sheets?

A range is any rectangular block of one or more cells. In Google Sheets, you refer to a range by its endpoints separated by a colon. The range includes every cell between those two corners. For example, A1:C3 includes A1, A2, A3, B1, B2, B3, C1, C2, and C3. A single cell is also a range (e.g., B2), and a whole row or column can be a range too: 2:2 refers to all of row 2, and B:B refers to all of column B.

Ranges are used in formulas like =SUM(A1:A10), in functions like =COUNTIF(B2:B100, "yes"), and in features like conditional formatting and charts. Understanding range syntax is essential for building anything beyond a basic spreadsheet.

Basic Range Syntax: Cells, Rows, and Columns

The core syntax is always StartCell:EndCell. Here are the common forms:

  • Single cell: A1 – just one cell.
  • Rectangular block: A1:B10 – from A1 to B10, a 2-column by 10-row area.
  • Full column: A:A – all of column A.
  • Full row: 2:2 – all of row 2.
  • Multiple columns: A:C – columns A, B, and C.
  • Multiple rows: 1:3 – rows 1, 2, and 3.
  • Partial column: A2:A – from row 2 to the bottom of column A.
  • Partial row: B2:2 – from column B to the end of row 2.

You can also use ranges across sheets. For example, Sheet2!A1:B5 refers to cells A1:B5 on a sheet named “Sheet2”. If the sheet name contains spaces, you must put single quotes around it: 'My Sheet'!A1:B5.

How to Use Ranges in Formulas

Ranges are the arguments to most functions. For instance, to sum all values from A1 to A10, you write =SUM(A1:A10). To count how many cells in B2:B100 contain the word “done”, you write =COUNTIF(B2:B100, "done"). You can also use ranges in arithmetic, but you need array formulas for that. For example, =A1:A5*2 in Google Sheets will automatically spill results into adjacent cells (this is called dynamic arrays, and it works in Google Sheets by default).

When you type a range into a formula, Google Sheets often color-codes the referenced cells with a colored border, making it easy to see exactly what you’ve selected. You can also click and drag directly on the sheet to build the range, and Sheets will insert the correct syntax for you.

Named Ranges: Giving Your Range a Name

Instead of remembering that C2:C100 holds sales data, you can name that range “Sales” and then use =SUM(Sales). Named ranges make formulas far more readable and reduce errors when your data moves. To create one:

  1. Select the cells you want to name.
  2. Go to Data > Named ranges (or right-click and choose “Define named range”).
  3. Type a name (e.g., “SalesData”) and click Done.

Named ranges are absolute by default (they don’t change when you copy a formula), and they can be used anywhere a range is expected. You can also edit or delete them later via the same menu.

Relative vs. Absolute References in Ranges

When you copy a formula that contains a range, Google Sheets adjusts the range automatically unless you use dollar signs ($) to lock parts of it. For example, if you have =SUM(A1:A10) in cell B1 and copy it to B2, it becomes =SUM(A2:A11) – the row numbers shift. To keep the range fixed, use $A$1:$A$10 (absolute), or lock only the column ($A1:A10) or only the row (A$1:A10). This is crucial when you’re dragging formulas across rows or columns, and it’s a common source of errors for beginners.

In Google Sheets, you can also use the F4 key (on Windows) or Cmd+Shift+4 (on Mac) to cycle through relative, absolute, and mixed references while editing a formula.

Common Mistakes and How to Avoid Them

Several range syntax errors trip up users:

  • Wrong colon: Using a comma instead of a colon (e.g., =SUM(A1, A10) sums only two cells, not a range).
  • Sheet name typos: If you type Sheet1!A1:B2 but the sheet is actually named “Sheet 1” (with a space), you’ll get a #REF! error. Use quotes: 'Sheet 1'!A1:B2.
  • Accidentally including headers: If your data starts in row 2, but you reference A1:A100, you might include a header text in a sum, which causes a #VALUE! error. Always check the range boundaries.
  • Whole-column references slowing down your sheet: Using A:A in a formula like =SUM(A:A) is convenient, but it can slow down large sheets because Sheets processes all 1,048,576 rows. It’s better to limit to the actual data range, e.g., A1:A1000.

Another common problem is mixing up row and column order. Always write the top-left cell first, then the bottom-right. B2:A1 is technically valid (it refers to the same range as A1:B2), but it’s confusing and can lead to mistakes.

Advanced Range Techniques

Google Sheets supports several advanced range features that go beyond simple rectangles:

  • Union: Use a semicolon (;) to combine multiple ranges into one argument, e.g., =SUM(A1:A5; C1:C5) sums both ranges.
  • Intersection: Use a space to find the intersection of two ranges, e.g., =SUM(A1:C5 B2:D4) sums only the overlapping cells (B2:C4).
  • Ranges with OFFSET: You can create dynamic ranges with =OFFSET(A1,0,0,COUNTA(A:A),1) to refer to a range that grows as you add data.
  • Ranges in array formulas: Functions like FILTER and ARRAYFORMULA often use ranges as inputs and return entire ranges as output. For example, =FILTER(A1:B10, C1:C10>10) returns all rows where column C is greater than 10.

Also, you can use ranges in conditional formatting. For instance, to highlight cells in A1:A10 that are greater than 100, you select the range, go to Format > Conditional formatting, and set the rule to “Greater than” with value 100.

Frequently Asked Questions

Q: What does the colon (:) mean in Google Sheets?
The colon is the range operator. It tells Sheets to include all cells between the two endpoints. For example, A1:B2 includes A1, A2, B1, and B2.

Q: How do I reference a range on another sheet?
Use the sheet name followed by an exclamation mark. For example, =SUM(Sheet2!A1:A10). If the sheet name has spaces, put single quotes around it: =SUM('My Sheet'!A1:A10).

Q: Why does my formula show #REF! when I copy it?
This usually happens when the range extends beyond the sheet’s edge. For example, if you copy a formula that references A1:A10 from row 1 to row 2, it becomes A2:A11 – that’s fine. But if you copy a formula that references A1:A10 from row 1 to row 1048570, it might try to go beyond the last row, causing #REF!. Use absolute references ($A$1:$A$10) if you don’t want it to change.

Q: Can I use a range in a chart?
Yes. When you create a chart, you can specify the data range directly, or you can use a named range. For example, in the chart editor, under “Data range”, you can type A1:B10 or SalesData.

Q: What is the difference between a range and an array in Google Sheets?
A range is a contiguous block of cells on a sheet. An array is a more general concept – it can be a range, but it can also be a list of values created by a formula, like {1,2,3}. Functions like ARRAYFORMULA work with arrays, which may come from ranges or from calculations.

Q: How do I select a range with the keyboard?
Click the first cell, then hold Shift and click the last cell. Or, click the first cell, then hold Shift and use the arrow keys to expand the selection. You can also type the range directly into the formula bar.

Alternatives and Related Tools

If you’re coming from Microsoft Excel, note that Excel uses the same colon syntax for ranges, but the way dynamic arrays work differs. In Excel, you often need to press Ctrl+Shift+Enter for array formulas, while Google Sheets handles them automatically. Also, Excel uses commas to separate function arguments, while Google Sheets uses commas in most locales, but some European locales use semicolons. For cross-sheet references, Excel uses exclamation marks too, but sheet names with spaces require single quotes in both.

For more complex data manipulation, you might use Google Sheets’ QUERY function, which accepts a range as its first argument, or you might use Apps Script to work with ranges programmatically. But for everyday tasks, mastering the basic range syntax is the most valuable skill you can learn.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.