From 22ae4eb1923ec84ff7305032037fc835173d753a Mon Sep 17 00:00:00 2001 From: Doria Date: Fri, 30 Oct 2020 17:15:40 +0100 Subject: [PATCH] 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) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2366b754..050df3f9 100644 --- a/README.md +++ b/README.md @@ -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