@@ -224,45 +224,46 @@ Note: The grammar in my implementation is different from theirs. My implementati
224
224
];
225
225
```
226
226
227
- - Formula data types in JavaScript
228
- - Number (date uses number): `1234`
229
- - String: `' some string' `
230
- - Boolean: `true`, `false`
231
- - Array: `[[1, 2, true, ' str' ]]`
232
- - Range Reference: (1-based index)
233
- ```js
234
- const ref = {
235
- sheet: String,
236
- from: {
237
- row: Number,
238
- col: Number,
239
- },
240
- to: {
241
- row: Number,
242
- col: Number,
243
- },
244
- }
245
- ```
246
- - Cell Reference: (1-based index)
247
- ```js
248
- const ref = {
249
- sheet: String,
250
- row: Number,
251
- col: Number,
252
- }
253
- ```
254
- - [Union (e.g. (A1:C3, E1:G6))](https://github.com/LesterLyu/fast-formula-parser/blob/master/grammar/type/collection.js)
255
- - [FormulaError](https://lesterlyu.github.io/fast-formula-parser/FormulaError.html)
256
- - `FormulaError.DIV0`: `#DIV/0!`
257
- - `FormulaError.NA`: `#N/A`
258
- - `FormulaError.NAME`: `#NAME?`
259
- - `FormulaError.NULL`: `#NULL!`
260
- - `FormulaError.NUM`: `#NUM!`
261
- - `FormulaError.REF`: `#REF!`
262
- - `FormulaError.VALUE`: `#VALUE!`
227
+ ### Formula data types in JavaScript
228
+ > The following data types are used in excel formulas and these are the only valid data types a formula or a function can return.
229
+ - Number (date uses number): `1234`
230
+ - String: `' some string' `
231
+ - Boolean: `true`, `false`
232
+ - Array: `[[1, 2, true, ' str' ]]`
233
+ - Range Reference: (1-based index)
234
+ ```js
235
+ const ref = {
236
+ sheet: String,
237
+ from: {
238
+ row: Number,
239
+ col: Number,
240
+ },
241
+ to: {
242
+ row: Number,
243
+ col: Number,
244
+ },
245
+ }
246
+ ```
247
+ - Cell Reference: (1-based index)
248
+ ```js
249
+ const ref = {
250
+ sheet: String,
251
+ row: Number,
252
+ col: Number,
253
+ }
254
+ ```
255
+ - [Union (e.g. (A1:C3, E1:G6))](https://github.com/LesterLyu/fast-formula-parser/blob/master/grammar/type/collection.js)
256
+ - [FormulaError](https://lesterlyu.github.io/fast-formula-parser/FormulaError.html)
257
+ - `FormulaError.DIV0`: `#DIV/0!`
258
+ - `FormulaError.NA`: `#N/A`
259
+ - `FormulaError.NAME`: `#NAME?`
260
+ - `FormulaError.NULL`: `#NULL!`
261
+ - `FormulaError.NUM`: `#NUM!`
262
+ - `FormulaError.REF`: `#REF!`
263
+ - `FormulaError.VALUE`: `#VALUE!`
263
264
264
- - Types Definition
265
- > Comming soon
265
+ ### Types Definition
266
+ > Comming soon
266
267
267
268
### Thanks
268
269
- [](https://www.jetbrains.com/?from=fast-formula-parser)
0 commit comments