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

Browse more tutorials
5 Ways To Use Google Sheets for Advanced Project Management

5 Ways To Use Google Sheets for Advanced Project Management

Here are 5 advanced ways to manage projects inside of Google Sheets Man...
Convert Google Sheets into a REST API

Convert Google Sheets into a REST API

How to use Google Sheets as a database by turning it into a REST API wit...
Email Yourself a Cell from a Google Sheet, Every Day

Email Yourself a Cell from a Google Sheet, Every Day

Learn how to email yourself a cell from a Google sheet every day in just...
Embed a Number in a Website from a Google Sheet

Embed a Number in a Website from a Google Sheet

Ever wanted to display some data from a google sheet on your site? Witho...
How to Merge Cells in Google Sheets

How to Merge Cells in Google Sheets

A master class on merging cells. How to merge two cells. How to merge mu...

Related blog posts

Guides that explain Cells object in more depth.

Browse the blog

Related terms

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.