class SpreadsheetApp method .getA1Notation()

SpreadsheetApp is the Apps Script service.

.getA1Notation() is the method name you will see after a dot in your code.

What it does

Returns the A1-style address of a range, like B2:D10.

Why it's used

  • Log or email the exact address of a problem cell.
  • Pass a range reference to another function or API.

Common errors

  • Forgetting parentheses on getA1Notation. Write SpreadsheetApp.getA1Notation(), not SpreadsheetApp.getA1Notation or getA1Notation by itself.
  • Skipping dots between chained calls. Each step needs a dot, like SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Data').getA1Notation().
  • Adding spaces where they do not belong. Write SpreadsheetApp.getA1Notation(), not SpreadsheetApp .getA1Notation(), SpreadsheetApp.getA1Notation (), or SpreadsheetApp . getA1Notation().
  • Wrong capitalization. Use SpreadsheetApp and getA1Notation, not spreadsheetapp or geta1notation.

Explore

Related methods

  • .getRange()

    Returns a range of cells by A1 notation or row and column numbers.

  • .getActive()

    Returns the range the user currently has selected.

  • .getRow()

    Returns the starting row index of a range.

  • .getColumn()

    Returns the starting column index of a range.

  • .offset()

    Returns a range shifted by a number of rows and columns.

Better Sheets tutorials

Americano Tournament Template With Four Automations

Americano Tournament Template With Four Automations

Created a tournament template with 4 automations. So tabs can be copied ...
Better Sheets Videos Checklist

Better Sheets Videos Checklist

How to create a video checklist. Create a sheet with check boxes that yo...

Related blog posts

Written guides about SpreadsheetApp.getA1Notation().

Browse the blog
Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.Plan all of 2027 on one Google Sheet, free.

Copy it to your Google Drive.

Free. No password, no card. The sheet link shows up right here.