ValueRenderOption
Determines how values should be rendered in the output.
Enums |
FORMATTED_VALUE |
Values will be calculated & formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if A1 is 1.23 and A2 is =A1 and formatted as currency, then A2 would return "$1.23" . |
UNFORMATTED_VALUE |
Values will be calculated, but not formatted in the reply. For example, if A1 is 1.23 and A2 is =A1 and formatted as currency, then A2 would return the number 1.23 . |
FORMULA |
Values will not be calculated. The reply will include the formulas. For example, if A1 is 1.23 and A2 is =A1 and formatted as currency, then A2 would return "=A1" . Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see About date & time values. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[null,null,["Last updated 2024-09-03 UTC."],[[["`FORMATTED_VALUE` returns values calculated and formatted according to the cell's formatting based on the spreadsheet's locale."],["`UNFORMATTED_VALUE` returns calculated values without formatting."],["`FORMULA` returns the formulas within cells without calculating them, representing date and time as decimal values for arithmetic operations."]]],["The content defines three ways values are rendered in output: `FORMATTED_VALUE`, `UNFORMATTED_VALUE`, and `FORMULA`. `FORMATTED_VALUE` calculates and formats values based on the spreadsheet's locale. `UNFORMATTED_VALUE` calculates values but omits formatting. `FORMULA` returns the formula itself, without calculation; date and time values can be treated as decimal values and can be used in formulas.\n"]]