地址和范围
工作表中的每个单元格都有一个唯一的地址,用于指定包含该单元格的行和列。
¥Each cell in a worksheet has a unique address which specifies the row and the column that include the cell.
基本概念
¥Basic Concepts
行数
¥Rows
电子表格应用通常显示序号行号,其中 1 是第一行,2 是第二行,依此类推。编号从 1 开始。
¥Spreadsheet applications typically display ordinal row numbers, where 1 is the
first row, 2 is the second row, etc. The numbering starts at 1.
SheetJS 遵循 JavaScript 计数约定,其中 0 是第一行,1 是第二行,依此类推。编号从 0 开始。
¥SheetJS follows JavaScript counting conventions, where 0 is the first row, 1
is the second row, etc. The numbering starts at 0.
下表列出了一些示例行标签:
¥The following table lists some example row labels:
| 序数 | 行标签 | SheetJS |
|---|---|---|
| First | 1 | 0 |
| Second | 2 | 1 |
| 26 日 | 26 | 25 |
| 第 420 期 | 420 | 419 |
| 第 7262 号 | 7262 | 7261 |
| 1048576 号 | 1048576 | 1048575 |
列
¥Columns
电子表格应用通常使用字母来表示列。
¥Spreadsheet applications typically use letters to represent columns.
第一列是 A,第二列是 B,第 26 列是 Z。Z 之后,下一列是 AA,并继续计数到 AZ。AZ 之后,计数从 BA 继续。ZZ 之后,计数从 AAA 继续。
¥The first column is A, the second column is B, and the 26th column is Z.
After Z, the next column is AA and counting continues through AZ. After
AZ, the count continues with BA. After ZZ, the count continues with AAA.
下面列出了一些示例值以及 SheetJS 列索引:
¥Some sample values, along with SheetJS column indices, are listed below:
| 序数 | 列标签 | SheetJS |
|---|---|---|
| First | A | 0 |
| Second | B | 1 |
| 26 日 | Z | 25 |
| 27 日 | AA | 26 |
| 第 420 期 | PD | 419 |
| 702 号 | ZZ | 701 |
| 第 703 期 | AAA | 702 |
| 第 7262 号 | JSH | 7261 |
| 16384 号 | XFD | 16383 |