{"id":10038,"date":"2018-02-16T12:15:26","date_gmt":"2018-02-16T03:15:26","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=10038"},"modified":"2018-02-16T14:54:54","modified_gmt":"2018-02-16T05:54:54","slug":"office%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3%e7%b5%84%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%ae%e3%83%af%e3%83%bc%e3%82%af%e3%82%b7%e3%83%bc%e3%83%88%e9%96%a2%e6%95%b0%e3%82%92%e5%91%bc%e3%81%b3%e5%87%ba","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=10038","title":{"rendered":"[Office\u30a2\u30c9\u30a4\u30f3]\u7d44\u307f\u8fbc\u307f\u306e\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5"},"content":{"rendered":"<p>\u4e0b\u8a18\u8a18\u4e8b\u3067Office \u30a2\u30c9\u30a4\u30f3\u304b\u3089\u72ec\u81ea\u306e\u30e6\u30fc\u30b6\u30fc\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u65e5\u306fOffice \u30a2\u30c9\u30a4\u30f3\u304b\u3089<a href=\"https:\/\/support.office.com\/ja-jp\/article\/043e1c7d-7726-4e80-8f32-07b23e057f89\" title=\"SUM \u95a2\u6570 - Office \u30b5\u30dd\u30fc\u30c8\" target=\"_blank\">SUM<\/a>\u3084<a href=\"https:\/\/support.office.com\/ja-jp\/article\/047bac88-d466-426c-a32b-8f33eb960cf6\" title=\"AVERAGE \u95a2\u6570 - Office \u30b5\u30dd\u30fc\u30c8\" target=\"_blank\">AVERAGE<\/a>\u3068\u3044\u3063\u305f\u3001\u7d44\u307f\u8fbc\u307f\u306e\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=9369\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeAddins-120x120.png' alt='[Office\u30a2\u30c9\u30a4\u30f3]Excel Custom functions\u306e\u7d39\u4ecb' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2017.12.10<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=9369\">[Office\u30a2\u30c9\u30a4\u30f3]Excel Custom functions\u306e\u7d39\u4ecb <\/a><\/div><div class=\"cardlink_excerpt\">Office 365 Advent Calendar\r\n\r\n2017\u5e7412\u6708\u3001\u4eca\u5e74\u3082Advent Calendar\u306e\u5b63\u7bc0\u304c\u3084\u3063\u3066\u304d\u307e\u3057\u305f\u3002\r\n\u6628\u5e74\u306f\u300cOffice 365 Advent Calendar 2016\u300d\u306b\u53c2\u52a0\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u304c(\u4e0b\u8a18\u8a18\u4e8b\u53c2\u7167)\u3001...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=9372\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeAddins-120x120.png' alt='[Office\u30a2\u30c9\u30a4\u30f3]Excel Custom functions\u306e\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2017.12.12<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=9372\">[Office\u30a2\u30c9\u30a4\u30f3]Excel Custom functions\u306e\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5 <\/a><\/div><div class=\"cardlink_excerpt\">\u524d\u56de\u306e\u8a18\u4e8b\u3067Excel\u306e\u65b0\u305f\u306a\u6a5f\u80fd\u300cCustom functions\u300d\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\r\n\r\nSUM\u3084AVERAGE\u3068\u3044\u3063\u305f\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3068\u540c\u3058\u3088\u3046\u306b\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u3001\u975e\u5e38\u306b\u4fbf\u5229\u306a\u306e\u3067\u3059\u304c\u3001\u4e00\u70b9\u3060\u3051\u56f0\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\r\n\r\n\u305d\u308c\u306f\u3001\u201c\u30c7\u30d0\u30c3\u30b0\u3057\u3065\u3089\u3044\u201d...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n<h4 class=\"style4a\">\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb(manifest.xml)<\/h4>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;OfficeApp xmlns=&quot;http:\/\/schemas.microsoft.com\/office\/appforoffice\/1.1&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:type=&quot;TaskPaneApp&quot;&gt;\r\n  &lt;Id&gt;d6b2207f-0f9a-485e-8252-ea1034c18cd2&lt;\/Id&gt;\r\n  &lt;Version&gt;1.0&lt;\/Version&gt;\r\n  &lt;ProviderName&gt;@kinuasa&lt;\/ProviderName&gt;\r\n  &lt;DefaultLocale&gt;ja-jp&lt;\/DefaultLocale&gt;\r\n  &lt;DisplayName DefaultValue=&quot;\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u547c\u3073\u51fa\u3057\u30b5\u30f3\u30d7\u30eb&quot; \/&gt;\r\n  &lt;Description DefaultValue=&quot;Call built-in Excel worksheet functions&quot;\/&gt;\r\n  &lt;Hosts&gt;\r\n    &lt;Host Name=&quot;Workbook&quot; \/&gt;\r\n  &lt;\/Hosts&gt;\r\n  &lt;DefaultSettings&gt;\r\n    &lt;SourceLocation DefaultValue=&quot;https:\/\/localhost\/apps\/test0216\/index.html&quot; \/&gt;\r\n  &lt;\/DefaultSettings&gt;\r\n  &lt;Permissions&gt;ReadWriteDocument&lt;\/Permissions&gt;\r\n&lt;\/OfficeApp&gt;<\/pre>\n<h4 class=\"style4a\">\u30a2\u30c9\u30a4\u30f3\u672c\u4f53(index.html)<\/h4>\n<p>\u4e0b\u8a18\u30b3\u30fc\u30c9\u306e\u901a\u308a\u3001functions\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u7d4c\u7531\u3067\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u3001\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u306b\u3088\u3063\u3066\u8fd4\u3055\u308c\u308b<span style=\"color: #ff0000; font-weight: bold;\">FunctionResult<\/span>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u300c<span style=\"color: #ff0000; font-weight: bold;\">value<\/span>\u300d\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3088\u3063\u3066\u3001\u7d50\u679c\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;meta charset=&quot;UTF-8&quot;&gt;\r\n    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;&gt;\r\n    &lt;title&gt;Sample&lt;\/title&gt;\r\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/static2.sharepointonline.com\/files\/fabric\/office-ui-fabric-js\/1.4.0\/css\/fabric.components.min.css&quot;&gt;\r\n    &lt;style&gt;\r\n      #content-main {\r\n        background: #ffffff;\r\n        position: fixed;\r\n        top: 80px;\r\n        left: 0;\r\n        right: 0;\r\n        bottom: 0;\r\n        overflow: auto;\r\n      }\r\n    &lt;\/style&gt;\r\n    &lt;script src=&quot;https:\/\/ajax.aspnetcdn.com\/ajax\/jquery\/jquery-3.3.1.min.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script src=&quot;https:\/\/appsforoffice.microsoft.com\/lib\/1\/hosted\/office.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script src=&quot;https:\/\/unpkg.com\/core-js\/client\/core.min.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script src=&quot;https:\/\/unpkg.com\/@microsoft\/office-js-helpers@0.7.4\/dist\/office.helpers.min.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script src=&quot;https:\/\/static2.sharepointonline.com\/files\/fabric\/office-ui-fabric-js\/1.4.0\/js\/fabric.min.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script&gt;\r\n      Office.initialize = function(reason){\r\n        $(document).ready(function(){\r\n          $(&quot;#run&quot;).click(run);\r\n        });\r\n      };\r\n       \r\n      function run(){\r\n        Excel.run(function(context){\r\n          var range = context.workbook.worksheets.getActiveWorksheet().getRange(&quot;A1:A4&quot;);\r\n          range.values = &#x5B;&#x5B;100], &#x5B;200], &#x5B;300], &#x5B;400]]; \/\/\u30bb\u30eb\u306e\u5024\u8a2d\u5b9a\r\n          var ave = context.workbook.functions.average(range); \/\/AVERAGE\u95a2\u6570\u547c\u3073\u51fa\u3057\r\n          ave.load(&quot;value&quot;);\r\n          return context.sync().then(function(){\r\n            OfficeHelpers.UI.notify(&quot;&quot;, &quot;&quot; + ave.value, &quot;success&quot;);\r\n          });\r\n        }).catch(function(error){\r\n          OfficeHelpers.UI.notify(error);\r\n        });\r\n      }\r\n    &lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;div id=&quot;content-main&quot;&gt;\r\n      &lt;button id=&quot;run&quot; class=&quot;ms-Button&quot;&gt;\r\n        &lt;span class=&quot;ms-Button-label&quot;&gt;Run Code&lt;\/span&gt;\r\n      &lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>Office \u30a2\u30c9\u30a4\u30f3\u304b\u3089\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u306f\u300c<a href=\"https:\/\/docs.microsoft.com\/en-us\/office\/dev\/add-ins\/excel\/excel-add-ins-worksheet-functions#supported-worksheet-functions\" title=\"Calling built-in Excel worksheet functions using the Excel JavaScript API | Microsoft Docs\" target=\"_blank\">Calling built-in Excel worksheet functions using the Excel JavaScript API<\/a>\u300d\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4 class=\"style4a\">\u5b9f\u884c\u753b\u9762<\/h4>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Call_BuiltIn_WorksheetFunctions_01.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Call_BuiltIn_WorksheetFunctions_01.gif\" alt=\"\" width=\"607\" height=\"543\" class=\"alignnone size-full wp-image-10039\" \/><\/a><\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"\u4e0b\u8a18\u8a18\u4e8b\u3067Office \u30a2\u30c9\u30a4\u30f3\u304b\u3089\u72ec\u81ea\u306e\u30e6\u30fc\u30b6\u30fc\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u65e5\u306fOffice \u30a2\u30c9\u30a4\u30f3\u304b\u3089SUM\u3084AVERAGE\u3068\u3044\u3063\u305f\u3001\u7d44\u307f\u8fbc\u307f\u306e\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5 [&hellip;]","protected":false},"author":1,"featured_media":7119,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[Office\u30a2\u30c9\u30a4\u30f3]\u7d44\u307f\u8fbc\u307f\u306e\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[130,4,48,128],"tags":[],"class_list":["post-10038","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps-for-office","category-office","category-excel-office","category-office2016"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeAddins.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-2BU","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10038"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10038\/revisions"}],"predecessor-version":[{"id":10040,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10038\/revisions\/10040"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7119"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}