{"id":6679,"date":"2021-12-21T10:00:00","date_gmt":"2021-12-21T01:00:00","guid":{"rendered":"https:\/\/blog.synnex.co.jp\/?p=6679"},"modified":"2023-11-07T09:59:39","modified_gmt":"2023-11-07T00:59:39","slug":"gas_get_and_write_data_of_spreadsheet","status":"publish","type":"post","link":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/","title":{"rendered":"GAS\u3067\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066"},"content":{"rendered":"\n<p>GoogleAppsScript\u3067\u6271\u3046\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u6982\u8981\">\u6982\u8981<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#%E6%A6%82%E8%A6%81\"><\/a><\/h2>\n\n\n\n<p>GAS\u3067Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u308a\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3059\u308b\u5834\u9762\u304c\u591a\u3005\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br><a href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-select-range-of-spreadsheet\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u7bc4\u56f2\u9078\u629e\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<br>\u4eca\u56de\u306f\u3001\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u65b9\u6cd5\u3068\u30c7\u30fc\u30bf\u5f62\u5f0f\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u3059\u308bGAS\u53ca\u3073\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306f\u524d\u56de\u306e\u3082\u306e\u3092\u4f7f\u7528\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u306f\u9069\u5f53\u306a\u30c7\u30fc\u30bf\u3092\u5165\u308c\u3066\u304a\u304d\u3001\u30b7\u30fc\u30c8\u540d\u306f\u305d\u306e\u307e\u307e\u300c\u30b7\u30fc\u30c81\u300d\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"373\" height=\"231\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/001_sheet-range.png\" alt=\"\" class=\"wp-image-7002\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/001_sheet-range.png 373w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/001_sheet-range-300x186.png 300w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5\">1\uff0e\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#1%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E5%8F%96%E5%BE%97%E6%96%B9%E6%B3%95\"><\/a><\/h2>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306e\u30bb\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u306b\u306f\u8272\u3005\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<br>\u307e\u305a\u306f\u57fa\u672c\u306e<code>\u7bc4\u56f2\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/code>\u306b\u5bfe\u3057\u3066\u3001\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u3092\u884c\u3046\u3082\u306e\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-1-\uff11\u3064\u306e\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97getvalue\">1-1. \uff11\u3064\u306e\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3000getValue()<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#1-1-%EF%BC%91%E3%81%A4%E3%81%AE%E3%82%BB%E3%83%AB%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%8F%96%E5%BE%97getvalue\"><\/a><\/h3>\n\n\n\n<p><code>getValue()<\/code>\u3067\u306f<code>\uff11\u3064\u306e\u30bb\u30eb<\/code>\u306b\u5165\u529b\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br>\u3064\u307e\u308a\u3001\u8907\u6570\u306e\u30bb\u30eb\uff08\u7bc4\u56f2\uff09\u3092\u9078\u629e\u3057\u305f<code>\u7bc4\u56f2\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/code>\u306b\u5bfe\u3057\u3066\u306f\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u3010\u4f8b\u3011A2\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\uff1a\u300c\u308a\u3093\u3054\u300d<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function getValue() {\n  \/\/ \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff06\u30b7\u30fc\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A2\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A2&#39;);\n  \/\/ \u30bb\u30eb\u306e\u5024\u3092\u53d6\u5f97\n  var value = range.getValue();\n\n  \/\/ \u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u5b9f\u884c\u30ed\u30b0\u306b\u8868\u793a\n  console.log(value);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"148\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/001_sheet-values.png\" alt=\"\" class=\"wp-image-7003\"\/><\/figure>\n\n\n\n<p>\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306f\u305d\u306e\u307e\u307e\u306e\u30c7\u30fc\u30bf\u578b\u3067\u53d6\u5f97\u3055\u308c\u307e\u3059\u3002<br>\u6570\u5024\u304c\u5165\u529b\u3055\u308c\u305f\u30bb\u30eb\u3067\u3042\u308c\u3070\u6570\u5024\u578b\u30c7\u30fc\u30bf\u3001\u65e5\u4ed8\u304c\u5165\u529b\u3055\u308c\u305f\u30bb\u30eb\u3067\u3042\u308c\u3070Date\u578b\u30c7\u30fc\u30bf\u3067\u53d6\u5f97\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306e\u5834\u5408\u306f<code>\u6587\u5b57\u5217\u578b\u30c7\u30fc\u30bf<\/code>\u304c\u53d6\u5f97\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5165\u529b\u3055\u308c\u305f\u5185\u5bb9\u3092\u30c7\u30fc\u30bf\u578b\u554f\u308f\u305a\u8868\u793a\u3055\u308c\u305f\u6587\u5b57\u306e\u5f62\u3067\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u306b\u3064\u3044\u3066\u306f\u5225\u9014\u5f8c\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-2-\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97getvalues\">1-2. \uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3000getValues()<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#1-2-%EF%BC%91%E3%81%A4%E4%BB%A5%E4%B8%8A%E3%81%AE%E3%82%BB%E3%83%AB%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%8F%96%E5%BE%97getvalues\"><\/a><\/h3>\n\n\n\n<p><code>getValues()<\/code>\u3067\u306f<code>\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb<\/code>\u306b\u5165\u529b\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb<\/code>\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u90fd\u5408\u4e0a\u3001\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306e\u683c\u7d0d\u65b9\u6cd5\u304c\u5c11\u3057\u8907\u96d1\u3067\u30012\u6b21\u5143\u914d\u5217\u3068\u3044\u3046\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<br>2\u6b21\u5143\u914d\u5217\u3068\u306f\u914d\u5217\u306e\u4e2d\u306b\u914d\u5217\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306e\u4f8b\u3092\u898b\u306a\u304c\u3089\u6bb5\u968e\u7684\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\uff11a2\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u308a\u3093\u3054\">\u3010\u4f8b\uff11\u3011A2\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\uff1a\u300c\u308a\u3093\u3054\u300d<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#%E4%BE%8B%EF%BC%91a2%E3%82%BB%E3%83%AB%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E5%A0%B4%E5%90%88%E3%82%8A%E3%82%93%E3%81%94\"><\/a><\/h4>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function getValues() {\n  \/\/ \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff06\u30b7\u30fc\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A2\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A2&#39;);\n  \/\/ \uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\uff08\u4eca\u56de\u306f\uff11\u3064\u306e\u30bb\u30eb\uff09\u306e\u5024\u3092\u53d6\u5f97\n  var values = range.getValues();\n\n  \/\/ \u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u5b9f\u884c\u30ed\u30b0\u306b\u8868\u793a\n  console.log(values);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"325\" height=\"147\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/002_sheet-values.png\" alt=\"\" class=\"wp-image-7004\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/002_sheet-values.png 325w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/002_sheet-values-300x136.png 300w\" sizes=\"auto, (max-width: 325px) 100vw, 325px\" \/><\/figure>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c\u304c<code>[['\u308a\u3093\u3054']]<\/code>\u3068\u306a\u308a\u307e\u3057\u305f\u3002<br>\u3053\u308c\u306f\u53d6\u5f97\u3057\u305f\u7bc4\u56f2\u306e\u4e2d\u306e\uff11\u884c\u76ee\uff11\u5217\u76ee\u306b&#8217;\u308a\u3093\u3054&#8217;\u3068\u3044\u3046\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<br>\u56f3\u89e3\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"568\" height=\"232\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003_sheet-values.png\" alt=\"\" class=\"wp-image-7005\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003_sheet-values.png 568w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003_sheet-values-300x123.png 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/figure>\n\n\n\n<p>\u30c7\u30fc\u30bf\u306e\u53d6\u308a\u51fa\u3057\u65b9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function getValues() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A2\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A2&#39;);\n  var values = range.getValues();\n\n  console.log(&#39;1\u884c\u76ee 1\u5217\u76ee = &#39; + values[0][0]);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"358\" height=\"146\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003-2_sheet-values-1.png\" alt=\"\" class=\"wp-image-7009\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003-2_sheet-values-1.png 358w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003-2_sheet-values-1-300x122.png 300w\" sizes=\"auto, (max-width: 358px) 100vw, 358px\" \/><\/figure>\n\n\n\n<p>\u307e\u3060\u5c11\u3057\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u6b21\u306b\u53d6\u5f97\u3059\u308b\u5217\u3092\u5897\u3084\u3057\u3066\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\uff12a2c2\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u308a\u3093\u3054\u304f\u3060\u3082\u306e\u8d64\">\u3010\u4f8b\uff12\u3011A2\uff5eC2\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\uff1a\u300c\u308a\u3093\u3054\u300d\u300c\u304f\u3060\u3082\u306e\u300d\u300c\u8d64\u300d<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#%E4%BE%8B%EF%BC%92a2c2%E3%82%BB%E3%83%AB%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E5%A0%B4%E5%90%88%E3%82%8A%E3%82%93%E3%81%94%E3%81%8F%E3%81%A0%E3%82%82%E3%81%AE%E8%B5%A4\"><\/a><\/h4>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function getValues() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A2\uff5eC2\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A2:C2&#39;);\n  var values = range.getValues();\n\n  console.log(values);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"451\" height=\"149\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/004_sheet-values-1.png\" alt=\"\" class=\"wp-image-7010\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/004_sheet-values-1.png 451w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/004_sheet-values-1-300x99.png 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/figure>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c\u304c<code>[['\u308a\u3093\u3054', '\u304f\u3060\u3082\u306e', '\u8d64']]<\/code>\u3068\u306a\u308a\u307e\u3057\u305f\u3002<br>\u3053\u308c\u306f\u53d6\u5f97\u3057\u305f\u7bc4\u56f2\u306e\u4e2d\u306e\uff11\u884c\u76ee\u306e\uff11\u5217\u76ee\uff5e\uff13\u5217\u76ee\u306b\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<br>\u56f3\u89e3\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"241\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005_sheet-values-1.png\" alt=\"\" class=\"wp-image-7011\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005_sheet-values-1.png 576w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005_sheet-values-1-300x126.png 300w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n\n\n\n<p>\u5185\u306e\u914d\u5217\u306e\u8981\u7d20\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u3002<br>\u30c7\u30fc\u30bf\u306e\u53d6\u308a\u51fa\u3057\u65b9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function getValues() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A2\uff5eC2\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A2:C2&#39;);\n  var values = range.getValues();\n\n  console.log(&#39;1\u884c\u76ee 1\u5217\u76ee = &#39; + values[0][0]);\n  console.log(&#39;1\u884c\u76ee 2\u5217\u76ee = &#39; + values[0][1]);\n  console.log(&#39;1\u884c\u76ee 3\u5217\u76ee = &#39; + values[0][2]);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"354\" height=\"214\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005-2_sheet-values.png\" alt=\"\" class=\"wp-image-7012\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005-2_sheet-values.png 354w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005-2_sheet-values-300x181.png 300w\" sizes=\"auto, (max-width: 354px) 100vw, 354px\" \/><\/figure>\n\n\n\n<p>\u6b21\u306f\u53d6\u5f97\u3059\u308b\u884c\u3092\u5897\u3084\u3057\u3066\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\uff13a2c2\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u308a\u3093\u3054\u304f\u3060\u3082\u306e\u8d64\u306b\u3093\u3058\u3093\u91ce\u83dc\u30aa\u30ec\u30f3\u30b8\">\u3010\u4f8b\uff13\u3011A2\uff5eC2\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\uff1a\u300c\u308a\u3093\u3054\u300d\u300c\u304f\u3060\u3082\u306e\u300d\u300c\u8d64\u300d\u3001\u300c\u306b\u3093\u3058\u3093\u300d\u300c\u91ce\u83dc\u300d\u300c\u30aa\u30ec\u30f3\u30b8\u300d<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#%E4%BE%8B%EF%BC%93a2c2%E3%82%BB%E3%83%AB%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E5%A0%B4%E5%90%88%E3%82%8A%E3%82%93%E3%81%94%E3%81%8F%E3%81%A0%E3%82%82%E3%81%AE%E8%B5%A4%E3%81%AB%E3%82%93%E3%81%98%E3%82%93%E9%87%8E%E8%8F%9C%E3%82%AA%E3%83%AC%E3%83%B3%E3%82%B8\"><\/a><\/h4>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function getValues() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A2\uff5eC3\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A2:C3&#39;);\n  var values = range.getValues();\n\n  console.log(values);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"149\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/006_sheet-values.png\" alt=\"\" class=\"wp-image-7013\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/006_sheet-values.png 685w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/006_sheet-values-300x65.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/figure>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c\u304c<code>[['\u308a\u3093\u3054', '\u304f\u3060\u3082\u306e', '\u8d64'], [ '\u306b\u3093\u3058\u3093', '\u91ce\u83dc', '\u30aa\u30ec\u30f3\u30b8' ]]<\/code>\u3068\u306a\u308a\u307e\u3057\u305f\u3002<br>\u3053\u308c\u306f\u53d6\u5f97\u3057\u305f\u7bc4\u56f2\u306e\u4e2d\u306e\uff11\u884c\u76ee\u306e\uff11\u5217\u76ee\uff5e\uff13\u5217\u76ee\u3068\uff12\u884c\u76ee\u306e\uff11\u5217\u76ee\uff5e\uff13\u5217\u76ee\u306b\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<br>\u56f3\u89e3\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"332\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/007_sheet-values.png\" alt=\"\" class=\"wp-image-7014\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/007_sheet-values.png 697w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/007_sheet-values-300x143.png 300w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p>\u884c\u304c\u5897\u3048\u308b\u3068\u5185\u306e\u914d\u5217\uff08=\u5916\u306e\u914d\u5217\u306e\u8981\u7d20\uff09\u304c\u5897\u3048\u307e\u3059\u3002<br>\u30c7\u30fc\u30bf\u306e\u53d6\u308a\u51fa\u3057\u65b9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function getValues() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A2\uff5eC3\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A2:C3&#39;);\n  var values = range.getValues();\n\n  console.log(&#39;1\u884c\u76ee 1\u5217\u76ee = &#39; + values[0][0]);\n  console.log(&#39;1\u884c\u76ee 2\u5217\u76ee = &#39; + values[0][1]);\n  console.log(&#39;1\u884c\u76ee 3\u5217\u76ee = &#39; + values[0][2]);\n\n  console.log(&#39;2\u884c\u76ee 1\u5217\u76ee = &#39; + values[1][0]);\n  console.log(&#39;2\u884c\u76ee 2\u5217\u76ee = &#39; + values[1][1]);\n  console.log(&#39;2\u884c\u76ee 3\u5217\u76ee = &#39; + values[1][2]);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"371\" height=\"312\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/008_sheet-values.png\" alt=\"\" class=\"wp-image-7015\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/008_sheet-values.png 371w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/008_sheet-values-300x252.png 300w\" sizes=\"auto, (max-width: 371px) 100vw, 371px\" \/><\/figure>\n\n\n\n<p>\u307e\u305f\u3001\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u5185\u306b\u30c7\u30fc\u30bf\u306e\u306a\u3044\u30bb\u30eb\u304c\u3042\u3063\u305f\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"359\" height=\"160\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/009_sheet-values.png\" alt=\"\" class=\"wp-image-7016\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/009_sheet-values.png 359w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/009_sheet-values-300x134.png 300w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"344\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/010_sheet-values.png\" alt=\"\" class=\"wp-image-7017\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/010_sheet-values.png 676w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/010_sheet-values-300x153.png 300w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"329\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/011_sheet-values.png\" alt=\"\" class=\"wp-image-7018\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/011_sheet-values.png 657w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/011_sheet-values-300x150.png 300w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/figure>\n\n\n\n<p>\u30c7\u30fc\u30bf\u306e\u306a\u3044\u30bb\u30eb\u306f\u7a7a\u767d\u306e\u6587\u5b57\u5217<code>''<\/code>\u3068\u3057\u3066\u6271\u308f\u308c\u3001\u914d\u5217\u306e\u8981\u7d20\u6570\u306f\u4fdd\u6301\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2\u76f4\u63a5\u6307\u5b9a\u3067\u306e\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5\">2\uff0e\u76f4\u63a5\u6307\u5b9a\u3067\u306e\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#2%E7%9B%B4%E6%8E%A5%E6%8C%87%E5%AE%9A%E3%81%A7%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E5%8F%96%E5%BE%97%E6%96%B9%E6%B3%95\"><\/a><\/h2>\n\n\n\n<p>\u5148\u307b\u3069\u306e\u4f8b\u3067\u306f<code>\u7bc4\u56f2\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/code>\u306b\u5bfe\u3057\u3066\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u3092\u884c\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u5ea6\u306f<code>\u7bc4\u56f2\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/code>\u3092\u7528\u3044\u306a\u3044\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97getsheetvaluesstartrow-startcolumn-numrows-numcolumns\">\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3000getSheetValues(startRow, startColumn, numRows, numColumns)<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#%EF%BC%91%E3%81%A4%E4%BB%A5%E4%B8%8A%E3%81%AE%E3%82%BB%E3%83%AB%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%8F%96%E5%BE%97getsheetvaluesstartrow-startcolumn-numrows-numcolumns\"><\/a><\/h3>\n\n\n\n<p><code>getSheetValues(startRow, startColumn, numRows, numColumns)<\/code>\u3067\u306f\u53d6\u5f97\u7bc4\u56f2\u306e\u6307\u5b9a\u3092\u3057\u306a\u304c\u3089<code>\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb<\/code>\u306b\u5165\u529b\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>startRow<\/code>\u306f\u7bc4\u56f2\u306e\u958b\u59cb\u884c\uff1a2\u884c\u76ee\u304b\u3089\u306a\u30892&nbsp;<code>startColumn<\/code>\u306f\u7bc4\u56f2\u306e\u958b\u59cb\u5217\uff1aA\u5217\u304b\u3089\u306a\u30891&nbsp;<code>numRows<\/code>\u306f\u7bc4\u56f2\u306e\u884c\u6570\uff1a2\u884c\u5206\u306a\u30892&nbsp;<code>numColumns<\/code>\u306f\u7bc4\u56f2\u306e\u5217\u6570\uff1b3\u5217\u5206\u306a\u30893<\/p>\n\n\n\n<p>\u53d6\u5f97\u3059\u308b\u30c7\u30fc\u30bf\u306f\u524d\u9805\u3068\u540c\u3058\u304f2\u6b21\u5143\u914d\u5217\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3010\u4f8b\u3011A2\uff5eC2\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\uff1a\u300c\u308a\u3093\u3054\u300d\u300c\u304f\u3060\u3082\u306e\u300d\u300c\u8d64\u300d\u3001\u300c\u306b\u3093\u3058\u3093\u300d\u300c\u91ce\u83dc\u300d\u300c\u30aa\u30ec\u30f3\u30b8\u300d<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function getSheetValues() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A2\uff5eC3\u30bb\u30eb\u3092\u9078\u629e\n  var values = sheet.getSheetValues(2, 1, 2, 3);\n\n  console.log(values);\n\n  console.log(&#39;1\u884c\u76ee 1\u5217\u76ee = &#39; + values[0][0]);\n  console.log(&#39;1\u884c\u76ee 2\u5217\u76ee = &#39; + values[0][1]);\n  console.log(&#39;1\u884c\u76ee 3\u5217\u76ee = &#39; + values[0][2]);\n\n  console.log(&#39;2\u884c\u76ee 1\u5217\u76ee = &#39; + values[1][0]);\n  console.log(&#39;2\u884c\u76ee 2\u5217\u76ee = &#39; + values[1][1]);\n  console.log(&#39;2\u884c\u76ee 3\u5217\u76ee = &#39; + values[1][2]);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"346\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/012_sheet-values.png\" alt=\"\" class=\"wp-image-7019\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/012_sheet-values.png 676w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/012_sheet-values-300x154.png 300w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3\u8868\u793a\u6587\u5b57\u5217\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5\">3\uff0e\u8868\u793a\u6587\u5b57\u5217\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#3%E8%A1%A8%E7%A4%BA%E6%96%87%E5%AD%97%E5%88%97%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E5%8F%96%E5%BE%97%E6%96%B9%E6%B3%95\"><\/a><\/h2>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u306e\u4f8b\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304c\u81ea\u52d5\u7684\u306b\u51e6\u7406\u3057\u305f\u30c7\u30fc\u30bf\u578b\u306e\u307e\u307e\u3067\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u3092\u884c\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br>\u3068\u306f\u3044\u3048\u3053\u308c\u307e\u3067\u306e\u4f8b\u306f\u5168\u3066<code>\u6587\u5b57\u5217\u578b\u30c7\u30fc\u30bf<\/code>\u3060\u3063\u305f\u306e\u3067\u30d4\u30f3\u3068\u6765\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br>\u4e0b\u8a18\u306e\u4f8b\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u3010\u4f8b\u3011\u30c7\u30fc\u30bf\u578b\u3067\u306e\u53d6\u5f97<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u300c\u30b7\u30fc\u30c83\u300d\u3092\u4f5c\u6210\u3057\u3001\u3053\u306e\u3088\u3046\u306b\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"274\" height=\"193\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/013_sheet-values.png\" alt=\"\" class=\"wp-image-7020\"\/><\/figure>\n\n\n\n<p><code>getValues()<\/code>\u3067\u53d6\u5f97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function testGetValues() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c83&#39;);\n\n  \/\/ A1\uff5eB4\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A1:B4&#39;);\n  var values = range.getValues();\n\n  console.log(values[0][0] + &#39; : &#39; + values[0][1]);\n  console.log(values[1][0] + &#39; : &#39; + values[1][1]);\n  console.log(values[2][0] + &#39; : &#39; + values[2][1]);\n  console.log(values[3][0] + &#39; : &#39; + values[3][1]);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"679\" height=\"244\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/014_sheet-values.png\" alt=\"\" class=\"wp-image-7021\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/014_sheet-values.png 679w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/014_sheet-values-300x108.png 300w\" sizes=\"auto, (max-width: 679px) 100vw, 679px\" \/><\/figure>\n\n\n\n<p>\u6587\u5b57\u5217\u3084\u6570\u5024\u578b\u306e\u30c7\u30fc\u30bf\u306f\u305d\u306e\u307e\u307e\u3067\u3082\u554f\u984c\u306a\u3055\u305d\u3046\u3067\u3059\u304c\u3001\u65e5\u4ed8\u3084\u30d1\u30fc\u30bb\u30f3\u30c8\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3068\u660e\u3089\u304b\u306b\u8868\u793a\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<br>\u203b\u30d1\u30fc\u30bb\u30f3\u30c8\u306f\u30c7\u30fc\u30bf\u578b\u3067\u306f\u306a\u304f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u3088\u308b\u5909\u63db\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u65e5\u4ed8\u306a\u3069\u306fDate\u578b\u30c7\u30fc\u30bf\u3068\u306a\u308b\u305f\u3081\u3001\u65e5\u6570\u8a08\u7b97\u306b\u4f7f\u7528\u3059\u308b\u5834\u9762\u3067\u306f\u5b9f\u306f\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002<br>\u3057\u304b\u3057\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306b\u8868\u793a\u3055\u308c\u305f\u6587\u5b57\u5217\u306e\u307e\u307e\u4f7f\u3044\u305f\u3044\u5834\u9762\u3067\u306f\u9006\u306b\u4e0d\u4fbf\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u969b\u306b\u306f<code>getDisplayValue()<\/code>\u3068<code>getDisplayValues()<\/code>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br><code>getDisplayValue()<\/code>\u3068<code>getDisplayValues()<\/code>\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306b\u8868\u793a\u3055\u308c\u305f\u6587\u5b57\u5217\u306e\u307e\u307e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>getDisplayValue()<\/code>\u306f\uff11\u3064\u306e\u30bb\u30eb\u306b\u5bfe\u3057\u3066\u7528\u3044\u3001<code>getDisplayValues()<\/code>\u306f\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u306b\u5bfe\u3057\u3066\u7528\u3044\u307e\u3059\u3002<br>\u305d\u308c\u305e\u308c\u306e\u4f7f\u3044\u5206\u3051\u306f<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"table table-striped\"><thead><tr><th><\/th><th>\u30c7\u30fc\u30bf\u578b\u3067\u53d6\u5f97<\/th><th>\u8868\u793a\u6587\u5b57\u5217\u3067\u53d6\u5f97<\/th><\/tr><\/thead><tbody><tr><td>\uff11\u3064\u306e\u30bb\u30eb<\/td><td>getValue()<\/td><td>getDisplayValue()<\/td><\/tr><tr><td>\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb<\/td><td>getValues()<\/td><td>getDisplayValues()<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u3010\u4f8b\u3011\u8868\u793a\u6587\u5b57\u5217\u3067\u306e\u53d6\u5f97<\/p>\n\n\n\n<p><code>getDisplayValues()<\/code>\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function testGetValues() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c83&#39;);\n\n  \/\/ A1\uff5eB4\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A1:B4&#39;);\n  var values = range.getDisplayValues();\n\n  console.log(values[0][0] + &#39; : &#39; + values[0][1]);\n  console.log(values[1][0] + &#39; : &#39; + values[1][1]);\n  console.log(values[2][0] + &#39; : &#39; + values[2][1]);\n  console.log(values[3][0] + &#39; : &#39; + values[3][1]);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"361\" height=\"248\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/015_sheet-values.png\" alt=\"\" class=\"wp-image-7022\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/015_sheet-values.png 361w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/015_sheet-values-300x206.png 300w\" sizes=\"auto, (max-width: 361px) 100vw, 361px\" \/><\/figure>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u306e\u8868\u793a\u3068\u540c\u3058\u5f62\u3067\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4-\u30c7\u30fc\u30bf\u306e\u66f8\u304d\u8fbc\u307f\u65b9\u6cd5\">4. \u30c7\u30fc\u30bf\u306e\u66f8\u304d\u8fbc\u307f\u65b9\u6cd5<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#4-%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E6%96%B9%E6%B3%95\"><\/a><\/h2>\n\n\n\n<p>\u30c7\u30fc\u30bf\u306e\u66f8\u304d\u8fbc\u307f\u306b\u306f<code>setValue(value)<\/code>\u3068<code>setValues(values)<\/code>\u306e2\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u9055\u3044\u306f\u53d6\u5f97\u306e\u969b\u3068\u540c\u3058\u3067\u3001<code>setValue(value)<\/code>\u306f<code>\uff11\u3064\u306e\u30bb\u30eb<\/code>\u306b\u5bfe\u3057\u3066\u306e\u307f\u3001\u76f4\u63a5\u5024\u3092\u66f8\u304d\u8fbc\u307f\u3001<br><code>setValues(values)<\/code>\u306f\uff11\u3064\u4ee5\u4e0a\u306e<code>\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb<\/code>\u306b\u5bfe\u3057\u3066\u30012\u6b21\u5143\u914d\u5217\u306e\u5f62\u3067\u5024\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u305e\u308c\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4f8b\uff11\uff11\u3064\u306e\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u307f\">\u3010\u4f8b\uff11\u3011\uff11\u3064\u306e\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u307f<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#%E4%BE%8B%EF%BC%91%EF%BC%91%E3%81%A4%E3%81%AE%E3%82%BB%E3%83%AB%E3%81%AB%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF\"><\/a><\/h3>\n\n\n\n<p>\u300c\u30b7\u30fc\u30c81\u300d\u306eA7\u30bb\u30eb\u306b\u300c\u30b3\u30fc\u30d2\u30fc\u300d\u3068\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"206\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/016_sheet-values.png\" alt=\"\" class=\"wp-image-7023\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/016_sheet-values.png 362w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/016_sheet-values-300x171.png 300w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>function setValue() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A7\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A7&#39;);\n  var values = range.setValue(&#39;\u30b3\u30fc\u30d2\u30fc&#39;);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"204\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/017_sheet-values.png\" alt=\"\" class=\"wp-image-7024\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/017_sheet-values.png 362w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/017_sheet-values-300x169.png 300w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4f8b\uff12\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u307f\">\u3010\u4f8b\uff12\u3011\uff11\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u307f<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#%E4%BE%8B%EF%BC%92%EF%BC%91%E3%81%A4%E4%BB%A5%E4%B8%8A%E3%81%AE%E3%82%BB%E3%83%AB%E3%81%AB%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF\"><\/a><\/h3>\n\n\n\n<p>\u300c\u30b7\u30fc\u30c81\u300d\u306eA7\uff5eC8\u30bb\u30eb\u306b\u300c\u30b3\u30fc\u30d2\u30fc\u300d\u300c\u98f2\u307f\u7269\u300d\u300c\u9ed2\u300d\u3001\u300c\u62b9\u8336\u300d\u300c\u98f2\u307f\u7269\u300d\u300c\u7dd1\u300d\u3068\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function setValues() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  \/\/ A7\u30bb\u30eb\u3092\u9078\u629e\n  var range = sheet.getRange(&#39;A7:C8&#39;);\n  var values = range.setValues([[&#39;\u30b3\u30fc\u30d2\u30fc&#39;, &#39;\u98f2\u307f\u7269&#39;, &#39;\u9ed2&#39;], [&#39;\u62b9\u8336&#39;, &#39;\u98f2\u307f\u7269&#39;, &#39;\u7dd1&#39;]]);\n}<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"205\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/018_sheet-values.png\" alt=\"\" class=\"wp-image-7025\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/018_sheet-values.png 363w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/018_sheet-values-300x169.png 300w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/figure>\n\n\n\n<p>\u914d\u5217\u306e\u8981\u7d20\u6570\u304c\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u3068\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306a\u3069\u306b\u306f\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u307e\u305f\u3001<code>setValues(values)<\/code>\u306e\u5834\u5408\u306f\uff11\u3064\u306e\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u3080\u5834\u5408\u3067\u3082<code>[['\u30b3\u30fc\u30d2\u30fc']]<\/code>\u306e\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u3082\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/sheet-values.html#%E3%81%BE%E3%81%A8%E3%82%81\"><\/a><\/h2>\n\n\n\n<p>GAS\u3067\u884c\u3046\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u64cd\u4f5c\u3067\u809d\u5fc3\u3068\u306a\u308b\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br><code>getValues()<\/code>\u3084<code>setValues(values)<\/code>\u306f\u6271\u3046\u30c7\u30fc\u30bf\u304c2\u6b21\u5143\u914d\u5217\u3068\u306a\u308b\u70b9\u3067\u3001\u521d\u5fc3\u8005\u306b\u306f\u6700\u521d\u306e\u96e3\u95a2\u306b\u306a\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001<br>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u56de\u6570\u30fb\u66f8\u304d\u8fbc\u3080\u56de\u6570\u304c\u5c11\u306a\u3051\u308c\u3070\u5c11\u306a\u3044\u307b\u3069\u51e6\u7406\u306b\u304b\u304b\u308b\u6642\u9593\u306f\u77ed\u7e2e\u3067\u304d\u308b\u306e\u3067\u3001<br>\u8907\u6570\u306e\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u969b\u3084\u66f8\u304d\u8fbc\u3080\u969b\u306b\u306f\u662f\u975e\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"p-3 mb-4 bg-light rounded-3\">    <div class=\"container-fluid\">\n      <h4 class=\"display-6 fw-bold\"><span id=\"Google_workspace\">Google Cloud\u306e\u5c0e\u5165\u306f\u5f53\u793e\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044<\/span><\/h4>\n      <p class=\"col-md-12\">IT\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3067\u3042\u308bTD SYNNEX\u306fGoogle Cloud\u2122 Partner Award \u3092\u53d7\u8cde\u3059\u308b\u306a\u3069\u3001\u9577\u5e74\u306b\u308f\u305f\u308aGoogle\u2122\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u8a8d\u5b9a\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3068\u3057\u3066\u3001\u7dcf\u5408\u7684\u306a Google\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u304a\u5ba2\u69d8\u306b\u3068\u3063\u3066\u6700\u9069\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u63d0\u6848\u3084\u5c0e\u5165\u3001\u6d3b\u7528\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n      <a href=\"https:\/\/www.synnex.co.jp\/vender\/google\/inquiry\/\"><button class=\"btn btn-primary btn-lg\" type=\"button\">\u304a\u554f\u3044\u5408\u308f\u305b<\/button><\/a>\n    <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>GoogleAppsScript\u3067\u6271\u3046\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002 \u6982\u8981 GAS\u3067Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u308a\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3059\u308b\u5834\u9762\u304c\u591a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9769,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[169],"tags":[161],"class_list":["post-6679","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google","tag-gas"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GAS\u3067\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066 &#8211; TD SYNNEX BLOG<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3067Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u3001\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u308a\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3059\u308b\u65b9\u6cd5\u3084\u30c7\u30fc\u30bf\u5f62\u5f0f\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GAS\u3067\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066 &#8211; TD SYNNEX BLOG\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3067Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u3001\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u308a\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3059\u308b\u65b9\u6cd5\u3084\u30c7\u30fc\u30bf\u5f62\u5f0f\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/\" \/>\n<meta property=\"og:site_name\" content=\"TD SYNNEX BLOG\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-21T01:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-07T00:59:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/12\/gas_spreadsheet-jpg.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TD SYNNEX K.K.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"TD SYNNEX K.K.\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"21\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/\",\"name\":\"GAS\u3067\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066 &#8211; TD SYNNEX BLOG\",\"isPartOf\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/12\/gas_spreadsheet-jpg.webp\",\"datePublished\":\"2021-12-21T01:00:00+00:00\",\"dateModified\":\"2023-11-07T00:59:39+00:00\",\"author\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/001c8dcd84e98df520975ae4cfe82053\"},\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3067Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u3001\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u308a\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3059\u308b\u65b9\u6cd5\u3084\u30c7\u30fc\u30bf\u5f62\u5f0f\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#primaryimage\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/12\/gas_spreadsheet-jpg.webp\",\"contentUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/12\/gas_spreadsheet-jpg.webp\",\"width\":1280,\"height\":675},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"GAS\u3067\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/\",\"name\":\"TD SYNNEX BLOG\",\"description\":\"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/001c8dcd84e98df520975ae4cfe82053\",\"name\":\"TD SYNNEX K.K.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a8f5827738602e2a74ad1b31e261ecc21785df535840a4363d1eb974fc63b3a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a8f5827738602e2a74ad1b31e261ecc21785df535840a4363d1eb974fc63b3a6?s=96&d=mm&r=g\",\"caption\":\"TD SYNNEX K.K.\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GAS\u3067\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066 &#8211; TD SYNNEX BLOG","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3067Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u3001\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u308a\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3059\u308b\u65b9\u6cd5\u3084\u30c7\u30fc\u30bf\u5f62\u5f0f\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/","og_locale":"ja_JP","og_type":"article","og_title":"GAS\u3067\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066 &#8211; TD SYNNEX BLOG","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3067Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u3001\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u308a\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3059\u308b\u65b9\u6cd5\u3084\u30c7\u30fc\u30bf\u5f62\u5f0f\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002","og_url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/","og_site_name":"TD SYNNEX BLOG","article_published_time":"2021-12-21T01:00:00+00:00","article_modified_time":"2023-11-07T00:59:39+00:00","og_image":[{"width":1280,"height":675,"url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/12\/gas_spreadsheet-jpg.webp","type":"image\/jpeg"}],"author":"TD SYNNEX K.K.","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"TD SYNNEX K.K.","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"21\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/","url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/","name":"GAS\u3067\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066 &#8211; TD SYNNEX BLOG","isPartOf":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#primaryimage"},"image":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#primaryimage"},"thumbnailUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/12\/gas_spreadsheet-jpg.webp","datePublished":"2021-12-21T01:00:00+00:00","dateModified":"2023-11-07T00:59:39+00:00","author":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/001c8dcd84e98df520975ae4cfe82053"},"description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3067Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u3001\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u308a\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3059\u308b\u65b9\u6cd5\u3084\u30c7\u30fc\u30bf\u5f62\u5f0f\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#primaryimage","url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/12\/gas_spreadsheet-jpg.webp","contentUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/12\/gas_spreadsheet-jpg.webp","width":1280,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas_get_and_write_data_of_spreadsheet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/jp.tdsynnex.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Google","item":"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/"},{"@type":"ListItem","position":3,"name":"GAS\u3067\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u3064\u3044\u3066"}]},{"@type":"WebSite","@id":"https:\/\/jp.tdsynnex.com\/blog\/#website","url":"https:\/\/jp.tdsynnex.com\/blog\/","name":"TD SYNNEX BLOG","description":"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/001c8dcd84e98df520975ae4cfe82053","name":"TD SYNNEX K.K.","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a8f5827738602e2a74ad1b31e261ecc21785df535840a4363d1eb974fc63b3a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a8f5827738602e2a74ad1b31e261ecc21785df535840a4363d1eb974fc63b3a6?s=96&d=mm&r=g","caption":"TD SYNNEX K.K."}}]}},"_links":{"self":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/comments?post=6679"}],"version-history":[{"count":5,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6679\/revisions"}],"predecessor-version":[{"id":9770,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6679\/revisions\/9770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media\/9769"}],"wp:attachment":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media?parent=6679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/categories?post=6679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/tags?post=6679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}