Skip to content

Commit 22ae4eb

Browse files
authored
Update README.md
I believe the formula examples should not contain the leading "=" e.g., ws.formula(10, 0, "SUM(A1:A10)") instead of ws.formula(10, 0, "=SUM(A1:A10)") (Google Sheet is doubling = sign which results in formula cells containing an #ERROR! instead of evaluated expression)
1 parent 99e2e34 commit 22ae4eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ ws.range(0, 0, 10, 10).style().shadeRows(Color.GRAY2, 5).set();
101101

102102
Note the cells with a formula do not have a value in the generated workbook.
103103
```java
104-
ws.formula(10, 0, "=SUM(A1:A10)");
104+
ws.formula(10, 0, "SUM(A1:A10)");
105105
// With Range.toString():
106-
ws.formula(10, 0, "=SUM(" + ws.range(0, 0, 9, 0).toString() + ")");
106+
ws.formula(10, 0, "SUM(" + ws.range(0, 0, 9, 0).toString() + ")");
107107
```
108108

109109
### Additional worksheet features

0 commit comments

Comments
 (0)