Addresses and Ranges
Each cell in a worksheet has a unique address which specifies the row and the column that include the cell.
Basic Concepts​
Rows​
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 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:
| Ordinal | Row Label | SheetJS |
|---|---|---|
| First | 1 | 0 |
| Second | 2 | 1 |
| 26th | 26 | 25 |
| 420th | 420 | 419 |
| 7262nd | 7262 | 7261 |
| 1048576th | 1048576 | 1048575 |
Columns​
Spreadsheet applications typically use letters to represent columns.
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.
Some sample values, along with SheetJS column indices, are listed below:
| Ordinal | Column Label | SheetJS |
|---|---|---|
| First | A | 0 |
| Second | B | 1 |
| 26th | Z | 25 |
| 27th | AA | 26 |
| 420th | PD | 419 |
| 702nd | ZZ | 701 |
| 703rd | AAA | 702 |
| 7262nd | JSH | 7261 |
| 16384th | XFD | 16383 |