{"id":3814,"date":"2021-07-11T23:37:46","date_gmt":"2021-07-11T14:37:46","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=3814"},"modified":"2021-07-11T23:37:46","modified_gmt":"2021-07-11T14:37:46","slug":"post-3814","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=3814","title":{"rendered":"\u3010GAS\u3011\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u8868\u793a\u5f62\u5f0f\u3067\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5(setNumberFormat)"},"content":{"rendered":"<p>Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u6570\u5024\u3092\u66f8\u304d\u8fbc\u3080\u969b\u306b\u3001\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u3092\u30d1\u30fc\u30bb\u30f3\u30c8\u3084\u901a\u8ca8\u306a\u3069\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092GAS\u3067\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30bb\u30eb\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092GAS\u3067\u8a2d\u5b9a\u3057\u305f\u3044<\/h2>\n<p>Google Apps Script(GAS)\u3067\u306f\u69d8\u3005\u306a\u51e6\u7406\u7d50\u679c\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u6642\u306b\u66f8\u304d\u8fbc\u3093\u3060\u5024\u3092\u9069\u5207\u306a\u6570\u5024\u5f62\u5f0f\u3067\u8868\u793a\u3057\u305f\u3044\u30cb\u30fc\u30ba\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u5272\u5408\u3092\u5c0f\u6570\u70b9\u3067\u51fa\u529b\u3057\u305f\u5834\u5408\u306b\u306f\u3001\u30d1\u30fc\u30bb\u30f3\u30c8(%)\u8868\u793a\u306b\u3057\u305f\u3044\u3067\u3059\u3057\u3001\u624b\u6570\u6599\u306e\u91d1\u984d\u3084\u5408\u8a08\u91d1\u984d\u3092\u7b97\u51fa\u3057\u305f\u7d50\u679c\u306e\u5834\u5408\u306b\u306f\u3001\u91d1\u984d\u3092\u8868\u3059\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u300c\\\u25cb\u25cb\u300d\u3068\u3044\u3063\u305f\u5f62\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u8fbc\u3080\u306e\u306f\u6570\u5b57\u3060\u3051\u3069\u3001\u6570\u5024\u578b\u3068\u3057\u3066\u3067\u306f\u306a\u304f\u3001\u6587\u5b57\u5217\u3068\u3057\u3066\u8a8d\u8b58\u3057\u3066\u307b\u3057\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3093\u306a\u30b1\u30fc\u30b9\u3067\u306f\u3001\u5148\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u5074\u306e\u51fa\u529b\u5148\u306e\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u3092\u3001\u5e0c\u671b\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u3042\u3089\u304b\u3058\u3081\u5909\u63db\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u5b9f\u306fGAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3082\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u3092\u4efb\u610f\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>GAS\u306esetNumberFormat\u3067\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u8a2d\u5b9a<\/h2>\n<p>Google Apps Script(GAS)\u3067\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u3092\u8a2d\u5b9a\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u3001\u300csetNumberFormat\u300d\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><em><strong>Range.setNumberFormat(&#8220;\u8a2d\u5b9a\u3057\u305f\u3044\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8&#8221;)<\/strong><\/em><\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30b7\u30fc\u30c8\u306b\u5bfe\u3057\u3001getRange\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u3067\u53d6\u5f97\u3067\u304d\u308b\u30bb\u30eb\u7bc4\u56f2\u3092\u8868\u3059Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067setNumberFormat\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u969b\u306b\u306f\u3001\u8a2d\u5b9a\u3057\u305f\u3044\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8868\u3059\u6587\u5b57\u5217(\u5f8c\u8ff0)\u3092\u5f15\u6570\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u4ee3\u8868\u4f8b<\/h2>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3001\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u9078\u629e\u3057\u3066\u8a2d\u5b9a\u3067\u304d\u308b\u3082\u306e\u3068\u3057\u3066\u3001\u4ee3\u8868\u7684\u306a10\u7a2e\u985e\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u81ea\u52d5\uff1a&#8221;general&#8221;<\/li>\n<li>\u66f8\u5f0f\u306a\u3057\u30c6\u30ad\u30b9\u30c8\uff1a&#8221;@&#8221;<\/li>\n<li>\u6570\u5024\uff1a&#8221;#,##0.00&#8243;<\/li>\n<li>\u30d1\u30fc\u30bb\u30f3\u30c8\uff1a&#8221;0.00%&#8221;<\/li>\n<li>\u6307\u6570\uff1a&#8221;0.00E+00&#8243;<\/li>\n<li>\u901a\u8ca8\uff1a&#8221;[$\u00a5-411]#,##0.00&#8243;<\/li>\n<li>\u901a\u8ca8(\u7aef\u6570\u5207\u6368\u3066)\uff1a&#8221;[$\u00a5-411]#,##0&#8243;<\/li>\n<li>\u65e5\u4ed8\uff1a&#8221;yyyy\/MM\/dd&#8221;<\/li>\n<li>\u6642\u9593\uff1a&#8221;H:mm:ss&#8221;<\/li>\n<li>\u65e5\u6642\uff1a&#8221;yyyy\/MM\/dd H:mm:ss&#8221;<\/li>\n<\/ol>\n<p>\u4f8b\u3048\u3070\u3001\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u3092\u30d1\u30fc\u30bb\u30f3\u30c8\u306b\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u8a2d\u5b9a\u3057\u305f\u3044\u30bb\u30eb\u3092getRange\u3067\u6307\u5b9a\u3057\u3001setNumberFormat(&#8220;0.00%&#8221;)\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u5bfe\u8c61\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u305fRange\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3001setNumberFormat\u30e1\u30bd\u30c3\u30c9\u3067\u4e0a\u8a18\u306e\u5f15\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30bb\u30eb\u306e\u6570\u5b57\u8868\u793a\u5f62\u5f0f\u3092\u5909\u66f4\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u6570\u5b57\u306e\u307f\u3060\u3051\u3069\u3001\u6587\u5b57\u5217\u3068\u3057\u3066\u8a8d\u8b58\u3057\u3066\u307b\u3057\u3044\u5834\u5408\u306b\u300c\u66f8\u5f0f\u306a\u3057\u30c6\u30ad\u30b9\u30c8\u300d\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u6570\u5024\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8a2d\u5b9a\u3059\u308bGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n<p>Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306b\u5bfe\u3057\u3001\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u5185\u306e\u7279\u5b9a\u30bb\u30eb\u306b\u30d1\u30fc\u30bb\u30f3\u30c8(%)\u306e\u8868\u793a\u5f62\u5f0f\u306b\u3001\u6570\u5b57\u306e\u90e8\u5206\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u3046\u305f\u3081\u306b\u300c\u66f8\u5f0f\u306a\u3057\u30c6\u30ad\u30b9\u30c8\u300d\u3092\u8a2d\u5b9a\u3059\u308bGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3824\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_001.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u8868\u793a\u5f62\u5f0f\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\uff5e\u4efb\u610f\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092setNumberFormat\u3067\u8a2d\u5b9a\" width=\"1200\" height=\"615\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_001.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_001-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_001-768x394.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_001-1024x525.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_001-530x272.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_001-565x290.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_001-710x364.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_001-725x372.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><code>function numFormat() {<br \/>\n\/\/\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u307f<br \/>\nlet mySheet = SpreadsheetApp.getActiveSheet();<br \/>\n\/\/\u5c0f\u6570\u70b9\u306e\u5024\u3092A1\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u307f<br \/>\nmySheet.getRange(1,1).setValue(\"0.0234\");<br \/>\n\/\/A1\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u3092\u30d1\u30fc\u30bb\u30f3\u30c8\u306b\u8a2d\u5b9a<br \/>\nmySheet.getRange(1,1).setNumberFormat(\"0.00%\");<br \/>\n\/\/\u6570\u5b57\u3068\u30d4\u30ea\u30aa\u30c9\u3067\u69cb\u6210\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fcID\u306e2\u6b21\u5143\u914d\u5217\u3092\u5b9a\u7fa9<br \/>\nlet userId = [<br \/>\n[123.456789],<br \/>\n[456.123789],<br \/>\n[789.654321]<br \/>\n];<br \/>\n\/\/\u5b9a\u7fa9\u3057\u305f\u30e6\u30fc\u30b6\u30fcID\u306e2\u6b21\u5143\u914d\u5217\u3092B1:3\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u307f<br \/>\nmySheet.getRange(1,2,3).setValues(userId);<br \/>\n\/\/B1:3\u30bb\u30eb\u7bc4\u56f2\u306e\u8868\u793a\u5f62\u5f0f\u3092\u300c\u66f8\u5f0f\u306a\u3057\u30c6\u30ad\u30b9\u30c8\u300d\u306b\u8a2d\u5b9a<br \/>\nmySheet.getRange(1,2,3).setNumberFormat(\"@\");<br \/>\n}<\/code><\/p>\n<p>GAS\u3067setValue(s)\u30e1\u30bd\u30c3\u30c9\u3067\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u3093\u3060\u5f8c\u3001setNumberFormat\u3067\u305d\u308c\u305e\u308c\u306b\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306bGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3055\u305b\u308b\u3068\u3001\u304d\u3061\u3093\u3068\u60f3\u5b9a\u3057\u305f\u5f62\u3067\u30d1\u30fc\u30bb\u30f3\u30c8\u3068\u66f8\u5f0f\u306a\u3057\u30c6\u30ad\u30b9\u30c8\u304c\u5404\u30bb\u30eb\u306b\u9069\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3825\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u306e\u30bb\u30eb\u8868\u793a\u5f62\u5f0f\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u7d50\u679c\" width=\"800\" height=\"439\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_002-300x165.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_002-768x421.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_002-530x291.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_002-565x310.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_002-710x390.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_002-725x398.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306bGAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u51e6\u7406\u306e\u4e2d\u3067\u3001\u30bb\u30eb\u3078\u306e\u51fa\u529b\u3060\u3051\u3067\u306a\u304f\u3001\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u306e\u8abf\u6574\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>setNumberFormat\u306e\u5f15\u6570\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8abf\u67fb\u65b9\u6cd5<\/h2>\n<p>\u306a\u304a\u3001setNumberFormat\u306e\u5f15\u6570\u306b\u6307\u5b9a\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u6587\u5b57\u5217\u304c\u5206\u304b\u3089\u306a\u3044\u30b1\u30fc\u30b9\u3082\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f\u307e\u3060\u3057\u3082\u3001\u30ab\u30b9\u30bf\u30e0\u6570\u5024\u5f62\u5f0f\u306e\u8a2d\u5b9a\u65b9\u6cd5\u304c\u96e3\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u5f15\u6570\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8abf\u67fb\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u5f15\u6570\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8abf\u3079\u305f\u3044\u5834\u5408\u306b\u306f\u3001\u307e\u305a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u305d\u306e\u8868\u793a\u5f62\u5f0f\u3092\u7279\u5b9a\u7bc4\u56f2\u306e\u30bb\u30eb\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3826\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_003.jpg\" alt=\"GAS\u306esetNumberFormat\u306e\u30ab\u30b9\u30bf\u30e0\u6570\u5024\u5f62\u5f0f\u306a\u3069\u306e\u5f15\u6570\u3092\u8abf\u3079\u308b\u305f\u3081\u3001\u307e\u305a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306b\u8868\u793a\u5f62\u5f0f\u3092\u8a2d\u5b9a\" width=\"800\" height=\"410\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_003-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_003-768x394.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_003-530x272.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_003-565x290.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_003-710x364.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_003-725x372.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>D1\u30bb\u30eb\uff5eD9\u30bb\u30eb\u306bC\u5217\u306b\u8a18\u8f09\u3057\u305f\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306bD9\u5217\u306b\u306f\u30ab\u30b9\u30bf\u30e0\u6570\u5024\u5f62\u5f0f\u3068\u3057\u3066\u300c\u25cb\u25cb\u5343\u5186\u300d\u3068\u3044\u3046\u8868\u793a\u5f62\u5f0f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u8abf\u3079\u305f\u3044\u8868\u793a\u5f62\u5f0f\u306e\u30bb\u30eb\u306b\u5bfe\u3057\u3001GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067<strong>getNumberFormat\u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3827\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_004.jpg\" alt=\"Google Apps Script(GAS)\u306egetNumberFormat\u30e1\u30bd\u30c3\u30c9\u3067\u8868\u793a\u5f62\u5f0f\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\" width=\"800\" height=\"396\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_004-300x149.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_004-768x380.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_004-530x262.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_004-565x280.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_004-710x351.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_004-725x359.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u4e0a\u8a18\u306eGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092getNumberFormat\u306e\u5b9f\u884c\u7d50\u679c\u304c\u3001\u5b9f\u884c\u30ed\u30b0\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3828\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_005.jpg\" alt=\"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u8868\u793a\u5f62\u5f0f\u3092getNumberFormat\u30e1\u30bd\u30c3\u30c9\u3067\u53d6\u5f97\u3057\u3001setNumberFormat\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u78ba\u8a8d\u304c\u53ef\u80fd\" width=\"800\" height=\"436\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_005.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_005-300x164.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_005-768x419.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_005-530x289.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_005-565x308.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_005-710x387.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210711_auto_005-725x395.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u5404\u7a2e\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u52a0\u3048\u3001\u25cb\u25cb\u5343\u5186\u3068\u3044\u3063\u305f\u3001\u30ab\u30b9\u30bf\u30e0\u6570\u5024\u5f62\u5f0f\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306bgetNumberFormat\u30e1\u30bd\u30c3\u30c9\u3067\u78ba\u8a8d\u3057\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u3092setNumberFormat\u306e\u5f15\u6570\u306b\u6307\u5b9a\u3059\u308c\u3070\u3001\u30ab\u30b9\u30bf\u30e0\u6570\u5024\u5f62\u5f0f\u3082\u7c21\u5358\u306b\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u30b7\u30fc\u30c8\u633f\u5165\u6642\u306bsetNumberFormat\u6d3b\u7528<\/h2>\n<p>setNumberFormat\u306e\u6d3b\u7528\u30b1\u30fc\u30b9\u3067\u3059\u304c\u3001GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30b7\u30fc\u30c8\u3092\u633f\u5165\u3059\u308b\u30b1\u30fc\u30b9\u3067\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u65e2\u5b58\u306e\u30b7\u30fc\u30c8\u306b\u5024\u3092\u66f8\u304d\u8fbc\u3080\u5834\u5408\u3001\u4e8b\u524d\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u3001\u6570\u5b57\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u65b0\u305f\u306a\u30b7\u30fc\u30c8\u3092\u633f\u5165\u3059\u308b\u51e6\u7406\u3067\u306f\u3001\u305d\u3046\u3057\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eGUI\u64cd\u4f5c\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001GAS\u30b9\u30af\u30ea\u30d7\u30c8\u51e6\u7406\u3067insertSheet\u3092\u4f7f\u3046\u30b1\u30fc\u30b9\u3067\u3001\u6570\u5024\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u5408\u306b\u3001setNumberFormat\u3092\u6d3b\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>setNumberFormat\u3068setNumberFormats\u306e\u9055\u3044\u306f\uff1f<\/h2>\n<p>\u30bb\u30eb\u306e\u6570\u5b57\u306e\u8868\u793a\u5f62\u5f0f\u3092\u8a2d\u5b9a\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u3001\u2460setNumberFormat\u306b\u52a0\u3048\u3001\u2461setNumberFormats\u3068\u3044\u3046\u3082\u30461\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>setNumberFormat\u3068setNumberFormats\u306e2\u3064\u306e\u9055\u3044\u306f\u3001\u5f15\u6570\u306e\u6307\u5b9a\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u2460setNumberFormat\u306f\u3001String\u578b\u306e\u30c7\u30fc\u30bf\u3092\u5f15\u6570\u306b\u6307\u5b9a\u3057\u3001\u524d\u8ff0\u3057\u305f\u3088\u3046\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306b\u5bfe\u3057\u3001\u2461setNumberFormats\u306f\u30012\u6b21\u5143\u914d\u5217\u304c\u5f15\u6570\u306b\u6307\u5b9a\u3059\u308b\u5b9a\u7fa9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u3089\u304b\u3058\u3081\u3001\u30b7\u30fc\u30c8\u5185\u306e\u5404\u30bb\u30eb\u306e\u6570\u5b57\u5f62\u5f0f\u3092\u3044\u308d\u3044\u308d\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306b\u3001\u30bb\u30eb\u4f4d\u7f6e\u306b\u5bfe\u5fdc\u3057\u305f2\u6b21\u5143\u914d\u5217\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u6587\u5b57\u5217\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001setNumberFormats\u3067\u5b9a\u7fa9\u3057\u305f2\u6b21\u5143\u914d\u5217\u3092\u5f15\u6570\u306b\u3057\u3066\u5b9f\u884c\u3059\u308c\u3070\u3001\u30bb\u30eb\u306e\u6570\u5b57\u5f62\u5f0f\u3092\u4e8b\u7d30\u304b\u306b\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u305d\u3053\u307e\u3067\u7d30\u304b\u306a\u8a2d\u5b9a\u3092\u3059\u308b\u30b1\u30fc\u30b9\u306f\u5c11\u306a\u304f\u3001\u307e\u305f2\u6b21\u5143\u914d\u5217\u3092\u5b9a\u7fa9\u3059\u308b\u624b\u9593\u3082\u767a\u751f\u3059\u308b\u305f\u3081\u3001\u57fa\u672c\u7684\u306b\u4f7f\u3046\u306e\u306fsetNumberFormat\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>GAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9f\u884c\u3057\u305f\u7d50\u679c\u306e\u307e\u307e\u3060\u3068\u30d1\u30fc\u30bb\u30f3\u30c8\u8868\u793a\u3057\u305f\u3044\u90e8\u5206\u304c\u5c0f\u6570\u70b9\u8868\u793a\u306b\u306a\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001setNumberFormat\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u3001GAS\u3067\u30bb\u30eb\u8868\u793a\u5f62\u5f0f\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3044\u304f\u3064\u304b\u4ee3\u8868\u7684\u306a\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30ab\u30b9\u30bf\u30e0\u6570\u5024\u5f62\u5f0f\u3067\u3082getNumberFormat\u30e1\u30bd\u30c3\u30c9\u3067\u7c21\u5358\u306b\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30b7\u30fc\u30c8\u3092\u65b0\u898f\u633f\u5165\u3059\u308b\u30b1\u30fc\u30b9\u306a\u3069\u3067\u306f\u51e6\u7406\u306e\u4e2d\u3067\u3001\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u3092\u8a2d\u5b9a\u3057\u305f\u307b\u3046\u304c\u4fbf\u5229\u306a\u30b1\u30fc\u30b9\u3082\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u305c\u3072\u3001GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u3092\u8a2d\u5b9a\u3057\u3001\u4eba\u9593\u304c\u898b\u3084\u3059\u3044\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u6570\u5024\u3092\u66f8\u304d\u8fbc\u3080\u969b\u306b\u3001\u30bb\u30eb\u306e\u8868\u793a\u5f62\u5f0f\u3092\u30d1\u30fc\u30bb\u30f3\u30c8\u3084\u901a\u8ca8\u306a\u3069\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u3053\u3067\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306e\u6570\u5b57\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092GA [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3824,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,695,64,694],"class_list":["post-3814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-setnumberformat","tag-64","tag-694"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3814"}],"version-history":[{"count":8,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3814\/revisions"}],"predecessor-version":[{"id":3829,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3814\/revisions\/3829"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/3824"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}