Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
dorssar authored Oct 30, 2020
1 parent 99e2e34 commit 22ae4eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ ws.range(0, 0, 10, 10).style().shadeRows(Color.GRAY2, 5).set();

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

### Additional worksheet features
Expand Down

0 comments on commit 22ae4eb

Please sign in to comment.