[Excel] How Many Columns? The Limit is 16,384 | You Can Use Up to the Final Column “XFD”

目次

Introduction

When creating large, database-like tables in Excel, have you ever wondered, “How far do these columns actually go?”

I investigated the column limits when I needed to handle a massive amount of data in Excel, so I will share my findings in this article.

The Excel Column Limit is “16,384 Columns”

To give you the conclusion first: Excel columns can be used up to a maximum of “16,384 columns”.

This specification applies to Excel versions 2007 and later.

  • Start Column: Column A
  • Final Column: Column XFD

In other words, it starts from “A, B, C…Z”, continues to “AA, AB…AZ, BA…ZZ”, and finally ends at “XFD”.

Excel Specifications (Max Columns and Rows)

ItemMaximum Number
Max Columns16,384 columns (A to XFD)
Max Rows1,048,576 rows
Available VersionsExcel 2007 and later

Supplement: Older Excel Versions were limited to 256 Columns

In older versions like Excel 2003 and earlier, you could only use up to 256 columns (A to IV).

If you are currently using Excel 2007 or later, you essentially have access to “16,384 columns.”

What is the Final Point “XFD”?

“XFD” is the alphabetic representation of the very last column usable in Excel.

  • “XFD” is the final column name represented by 3 letters.

If you want to get the last column number using VBA, you can write it as follows:

Dim lastCol As Long
lastCol = Cells(1, Columns.Count).End(xlToLeft).Column

By doing this, it is possible to retrieve the last column where data actually exists.

Summary

  • The number of Excel columns is 16,384 maximum (A to XFD).
  • Available in Excel 2007 and later versions.
  • Older Excel (2003 and earlier) is limited to 256 columns (A to IV).

When handling large amounts of data or performing column operations with programming (such as VBA), it is reassuring to be aware of this “16,384 columns” specification.

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

この記事を書いた人

私が勉強したこと、実践したこと、してることを書いているブログです。
主に資産運用について書いていたのですが、
最近はプログラミングに興味があるので、今はそればっかりです。

目次