|
| 1 | +export const A1Docs = `# A1 Docs |
| 2 | +
|
| 3 | +Cell references in Quadratic are in A1 notation. |
| 4 | +
|
| 5 | +## Rectangular Ranges |
| 6 | +
|
| 7 | +Rectangular ranges are references to a range of cells in a sheet. They are referenced by the top left cell and the bottom right cell. For example, A1:C3 is a rectangular range that references the cells A1, B1, C1, A2, B2, C2, A3, B3, and C3. |
| 8 | +
|
| 9 | +### Rectangular Range Examples |
| 10 | +
|
| 11 | +- D5 - references the cell D5 |
| 12 | +- A1:C3 - references the cells A1, B1, C1, A2, B2, C2, A3, B3, and C3 |
| 13 | +- A1:A3 - references the cells A1, A2, and A3 |
| 14 | +- A1:C1 - references the cells A1, B1, and C1 |
| 15 | +
|
| 16 | +## Column and Row References |
| 17 | +
|
| 18 | +In A1 notation, when referencing an entire column or row, use the column or row name(s). |
| 19 | +
|
| 20 | +### Column and Row Examples |
| 21 | +
|
| 22 | +- B - references the entire column B |
| 23 | +- B3:B - references all rows in column B starting from row 3 |
| 24 | +- 10 - references the entire row 10 |
| 25 | +- C4:C - references all columns in row C starting from row 4 |
| 26 | +- D2:2 - references all columns in row 2 starting from column D |
| 27 | +
|
| 28 | +## Table References |
| 29 | +
|
| 30 | +**PREFERRED**: Always use table names (e.g., Table_Name) when working with entire tables or entire columns within tables. Use A1 notation only for non-table data or partial table selections. |
| 31 | +
|
| 32 | +Columns within tables may be referenced by their name in A1 notation, eg, Table1[Column Name]. To reference multiple columns within a table, you use Table1[[Name]:[Address]]. In tables, you can also reference parts of the table. If you only want the table names, you can reference it with Table1[#HEADERS]. If you want the data and the headers, you would use Table1[[#DATA],[#HEADERS]]. By default, tables are referenced as Table1[#DATA]. |
| 33 | +
|
| 34 | +If you need individual cells within a table, you need to use normal A1 reference. For example, if you want the first row of a table, you would reference it using its corresponding A1 reference. Remember that tables usually include a name row as the first row, and a column header row as the second row. (Although these may sometimes be hidden.) |
| 35 | +
|
| 36 | +### Table Examples |
| 37 | +
|
| 38 | +- Table1 - references the entire table's data |
| 39 | +- Table1[#HEADERS] - references the table headers |
| 40 | +- Table1[[#DATA],[#HEADERS]] - references the entire table including the headers |
| 41 | +- Table1[Column 2] - references a single column within Table1 |
| 42 | +- Table1[[Name]:[Address]] - references a range of columns |
| 43 | +
|
| 44 | +## Multiple Ranges |
| 45 | +
|
| 46 | + You can reference multiple ranges by combining ranges with commas. |
| 47 | +
|
| 48 | +### Multiple Range Examples |
| 49 | +
|
| 50 | +- A1:C3,D5:F7 |
| 51 | +- A1:C3,D5:F7,G9:I11 |
| 52 | +- Table1[Column 2], A1:C3 |
| 53 | +
|
| 54 | +## Other Sheets |
| 55 | +
|
| 56 | +You can reference cells in other sheets by using the sheet name as part of the reference. Note, table names do not need sheet names as table names are unique within the file. |
| 57 | +
|
| 58 | +### Other Sheet Examples |
| 59 | +
|
| 60 | +- Sheet1!A1:C3 |
| 61 | +- Sheet1!A1:C3,Sheet2!D5:F7 |
| 62 | +- Sheet1!A1:C3,Sheet2!D5:F7,Sheet3!G9:I11 |
| 63 | +- Table1[Column 2],Sheet2!A1:C3 |
| 64 | +
|
| 65 | +
|
| 66 | +
|
| 67 | + `; |
0 commit comments