What replaces the Cells object in Google Sheets?
Excel VBA often uses Cells(row, column) for numeric addressing. In Apps Script, call getRange(row, column) or getRange('A1') on a sheet instead. Named ranges and A1 notation stay the most readable options for collaborators.
When to use it
Use getRange(row, column) when porting Cells-based loops from VBA.
When to skip it
Skip numeric addressing when A1 notation or a named range makes the script easier to audit.
Better Sheets resources
Related Tutorials
Watch how Cells object works
Convert Google Sheets into a REST API
Email Yourself a Cell from a Google Sheet, Every Day
Embed a Number in a Website from a Google Sheet
How to Merge Cells in Google Sheets
Related blog posts
Guides that explain Cells object in more depth.
How to Use Google Sheets as a Website Database
Did you know you can use Google Apps Script to turn a Google Sheet into a free, auto-syncing database for your website? This guide shows you exactly how to set it up. You’ll prepare your spreadsheet, write a few lines of code and publish your site. Don’t worry if you’re not a developer, we’ll walk you through it. Why Use Google Sheets as a Database? For small projects, Google Sheets offers many advantages over traditional databases: * Free hosting and storage * Easy to edit data without...
Read post →Explore Coding in Google Sheets
Did you know you can actually code in Google Sheets?
Read post →What's Better Than Google Sheets?
Nothing is better than Google Sheets. You just need to learn more about the unlimited power of Google Sheets. Functions, Formulas, Apps Script and more.
Read post →Related terms
Range object
Excel's Range object represents cells you read or write in VBA. Apps Script uses Range too, returned by spreadsheet.getRange(), getActiveRange(), or getRangeByName(). Methods like getValue, setValues, and getValues map closely to common VBA Range calls.
Read guide →getRange
getRange returns a Range object pointing at one or more cells on a sheet. You call it on a Sheet to read with getValue or getValues and write with setValue or setValues. Correct range targeting is the foundation of almost every Sheets script.
Read guide →A1 notation
A1 notation names cells with letters for columns and numbers for rows, like C5. R1C1 notation names cells by row and column index instead. Google Sheets shows and accepts A1 style in the formula bar for almost all work.
Read guide →Named range
A named range gives a block of cells a readable label like Revenue or ValidStatuses instead of only B2:B500. Define names from Data > Named ranges. Formulas, charts, pivot tables, and validation rules can reference the name, which makes models easier to audit and safer when rows shift inside the named block.
Read guide →Done reading about Cells object?
Membership unlocks 637+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.