How to Go Beyond Z in Google Sheets

How-to basics · Updated December 1, 2026

By default, Google Sheets columns end at Z, then continue as AA, AB, and so on. But sometimes you need to reference or create columns beyond that—like when importing data with more than 26 columns or writing formulas that dynamically handle wide datasets. This guide shows you how to work with columns past Z using direct cell references, structured formulas, and a few built-in functions. No special add-ons are required.

What You’ll Need

  • A Google account and a Google Sheets document (free or Workspace).
  • Basic familiarity with typing cell references (e.g., A1, B2).
  • For dynamic formulas, a working knowledge of functions like ADDRESS, INDIRECT, and COLUMN.

Step-by-Step

  1. Understand column naming beyond Z. After column Z comes AA, AB, AC… up to AZ, then BA, BB, etc. The system is base-26 with A=1, B=2, …, Z=26, so AA=27, AB=28. You can type these references directly in any formula or cell address.
  2. Reference a specific column beyond Z directly. For example, to get the value in column AA, row 5, type =AA5 in any cell. To sum a range in columns AB and AC, use =SUM(AB1:AC10). This works exactly like referencing columns A–Z.
  3. Use the column letter in formulas. Suppose you have data in columns AA through AD (columns 27–30). To find the average of AA1:AD1, type =AVERAGE(AA1:AD1). Press Enter. The result is the average of those four cells.
  4. Generate column letters dynamically for flexible formulas. Use the ADDRESS function to get a cell reference as text. For instance, =ADDRESS(1,27) returns $AA$1. The syntax is ADDRESS(row, column, [absolute_relative_mode], [use_a1_notation], [sheet]). To get just the column letter, combine with SUBSTITUTE and COLUMN.
  5. Convert a column number to its letter. Use this formula, assuming the column number is in cell A1 (e.g., 27): =SUBSTITUTE(ADDRESS(1,A1,4),"1",""). This returns AA. The 4 makes the reference relative (no dollar signs).
  6. Reference a column beyond Z using INDIRECT. If you have a column number in a cell (say B1 = 27), you can build a range reference as text and use INDIRECT. For example, to sum column AA (column 27) from row 1 to 10, use =SUM(INDIRECT(SUBSTITUTE(ADDRESS(1,B1,4),"1","")&"1:"&SUBSTITUTE(ADDRESS(1,B1,4),"1","")&"10")). Simpler: =SUM(INDIRECT("AA1:AA10")) if you know the letter.
  7. Use COLUMN and ADDRESS to find the letter of the current column. In any cell, =SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","") returns the current column’s letter. Drag this across to see how letters progress past Z.
  8. Handle imported data that extends beyond Z. When you paste or import a CSV with more than 26 columns, Sheets automatically names them AA, AB, etc. You can reference them normally. To see all columns, scroll horizontally or use View > Freeze > Up to column to keep headers visible.
  9. Use structured references in formulas for wide ranges. Instead of typing AA:AD, you can use FILTER or QUERY with a range like A:AD to include all columns from A to AD. For example, =FILTER(A:AD, A:A<>"") returns all rows where column A is not empty.

Common Mistakes

  • Typing a single letter instead of the full column name. For column 27, typing Z is wrong; it must be AA. Double-check the letter sequence.
  • Using the wrong column number in ADDRESS. Remember that A=1, B=2, …, Z=26, AA=27. Off-by-one errors are common.
  • Forgetting to use quotes in INDIRECT. The range text must be in double quotes, e.g., INDIRECT("AA1:AA10"), not INDIRECT(AA1:AA10).
  • Assuming columns stop at Z. They don’t—Sheets supports up to column ZZZ (18,278 columns). You can reference any of them.

Tips

  • Use the column header to confirm. Click on a cell in column AA and look at the name box (top-left) to see the full reference like AA1.
  • Leverage SEQUENCE to generate column numbers. For a list of column letters for columns 1–30, use =ARRAYFORMULA(SUBSTITUTE(ADDRESS(1,SEQUENCE(30),4),"1","")). This spills the letters A through AD.
  • Use named ranges for clarity. If you frequently reference a far column, select the range and go to Data > Named ranges to give it a name like SalesData, then use that name in formulas.
  • For dynamic column selection in QUERY, use string concatenation. Example: =QUERY(A:AD, "select " & SUBSTITUTE(ADDRESS(1,27,4),"1","") & " where A is not null") selects column AA.

Troubleshooting

  • Formula returns #REF! error. This usually means the column reference is invalid. Check if you typed the correct letters (e.g., AA, AB). Also ensure the column exists—Sheets supports up to ZZZ, so it’s unlikely you’ve exceeded it.
  • ADDRESS returns a number instead of a letter. Make sure you used ADDRESS correctly. The second argument is the column number, not the letter. If you have a letter, convert it to a number with COLUMN(INDIRECT("AA1")).
  • INDIRECT doesn’t work with a dynamic range. Ensure the text you build is a valid range reference. For example, if you concatenate a column letter and row numbers, the result must look like AA1:AA10. Use & to join parts and check for missing colons or quotes.
  • Imported data seems truncated. If you pasted data beyond column Z, check that you didn’t accidentally paste into a limited selection. Select the entire destination area before pasting, or use File > Import to load the CSV properly.
  • Formulas not updating when you add columns. If you reference a range like A:Z and later add columns, the range doesn’t automatically extend. Use open-ended ranges like A:AD or A:ZZ to cover future columns.

Frequently Asked Questions

  1. How many columns can Google Sheets have? Google Sheets supports up to 18,278 columns (column ZZZ). So you can go far beyond Z.
  2. Can I rename columns to something other than letters? No, column headers are fixed letters. But you can use the first row as custom headers and freeze it.
  3. How do I get the column letter from a number in a cell? Use =SUBSTITUTE(ADDRESS(1,A1,4),"1","") where A1 contains the column number (e.g., 27 returns AA).
  4. Why does my formula show #NAME? when I type AA? That error usually means you typed a function name incorrectly or used a named range that doesn’t exist. For cell references, AA is valid. Check for typos like AA1 vs A1.
  5. Can I use R1C1 notation to reference columns beyond Z? Yes. Go to File > Settings > Calculation and enable R1C1 notation. Then column 27 is referenced as R1C27, and ranges like R1C27:R10C27. This can simplify dynamic references.
  6. Is there a way to automatically fill column letters beyond Z? Yes, use the ARRAYFORMULA example in Tips to generate a list of letters. Or simply type AA, AB, etc., manually—Sheets will auto-fill when you drag the fill handle.

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.