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, andCOLUMN.
Step-by-Step
- 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.
- Reference a specific column beyond Z directly. For example, to get the value in column AA, row 5, type
=AA5in any cell. To sum a range in columns AB and AC, use=SUM(AB1:AC10). This works exactly like referencing columns A–Z. - 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. - Generate column letters dynamically for flexible formulas. Use the
ADDRESSfunction to get a cell reference as text. For instance,=ADDRESS(1,27)returns$AA$1. The syntax isADDRESS(row, column, [absolute_relative_mode], [use_a1_notation], [sheet]). To get just the column letter, combine withSUBSTITUTEandCOLUMN. - 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 returnsAA. The4makes the reference relative (no dollar signs). - 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. - 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. - 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.
- Use structured references in formulas for wide ranges. Instead of typing AA:AD, you can use
FILTERorQUERYwith a range likeA:ADto 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
Zis wrong; it must beAA. 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"), notINDIRECT(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
SEQUENCEto 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
ADDRESScorrectly. The second argument is the column number, not the letter. If you have a letter, convert it to a number withCOLUMN(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:Zand later add columns, the range doesn’t automatically extend. Use open-ended ranges likeA:ADorA:ZZto cover future columns.
Frequently Asked Questions
- How many columns can Google Sheets have? Google Sheets supports up to 18,278 columns (column ZZZ). So you can go far beyond Z.
- 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.
- 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). - 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.
- 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.
- 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
- Excel Time Duration Format: Display Hours Beyond 24
- Beyond Compare for Excel: Compare Workbooks and Sheets
- Beyond Compare for Excel: How Spreadsheet Comparison Works
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Show Print Area Lines: View Page BoundariesTo see where Excel’s printed pages end, choose View > Page Break Preview; the blue lines show page…
- Center in Excel Without Merging Cells: A Step-by-Step GuideTo center a heading across several Excel columns without merging them, select the cells in one row, open…
- Excel Time Between: Calculate Hours and MinutesTo calculate time between two times in Excel, subtract the start time from the end time: with a…
- Gold Data in Excel: Build a PivotTableYes. To analyze gold data in an Excel PivotTable, put each observation in a separate row, keep dates…
- Out of Office in New Outlook: Set It Up and Schedule ItTo set up an out-of-office reply in New Outlook, open Settings, go to Accounts > Automatic replies, choose…
- Google Sheets: Transfer Data Between SheetsYes, Google Sheets lets you transfer data between sheets in several ways: you can reference cells from another…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.