ValueRenderOption
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
กำหนดวิธีแสดงผลค่าในเอาต์พุต
Enum |
FORMATTED_VALUE |
ระบบจะคํานวณและจัดรูปแบบค่าในการตอบกลับตามการจัดรูปแบบของเซลล์ การจัดรูปแบบจะอิงตามภาษาของสเปรดชีต ไม่ใช่ภาษาของผู้ใช้ที่ส่งคำขอ เช่น หาก A1 เป็น 1.23 และ A2 เป็น =A1 และจัดรูปแบบเป็นสกุลเงิน A2 จะแสดงผลเป็น "$1.23" |
UNFORMATTED_VALUE |
ระบบจะคํานวณค่า แต่ไม่จัดรูปแบบในการตอบกลับ เช่น หาก A1 เป็น 1.23 และ A2 เป็น =A1 และจัดรูปแบบเป็นสกุลเงิน A2 จะแสดงผลตัวเลข 1.23 |
FORMULA |
ระบบจะไม่คํานวณค่า การตอบกลับจะมีสูตรรวมอยู่ด้วย เช่น หาก A1 เป็น 1.23 และ A2 เป็น =A1 และจัดรูปแบบเป็นสกุลเงิน A2 จะแสดงผลเป็น "=A1" ชีตจะถือว่าค่าวันที่และเวลาเป็นค่าทศนิยม ซึ่งช่วยให้คุณทําการคํานวณตัวเลขในสูตรได้ ดูข้อมูลเพิ่มเติมเกี่ยวกับการตีความค่าวันที่และเวลาได้ที่เกี่ยวกับค่าวันที่และเวลา |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-22 UTC
[null,null,["อัปเดตล่าสุด 2025-03-22 UTC"],[],[],null,["# ValueRenderOption\n\nDetermines how values should be rendered in the output.\n\n| Enums ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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\"`. |\n| `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`. |\n| `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](https://developers.google.com/workspace/sheets/api/guides/formats#about_date_time_values). |"]]