<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>エクセル | nujonoa_blog</title>
	<atom:link href="https://nujonoa.com/tag/%e3%82%a8%e3%82%af%e3%82%bb%e3%83%ab/feed/" rel="self" type="application/rss+xml" />
	<link>https://nujonoa.com</link>
	<description>人生に役立つデータ集</description>
	<lastBuildDate>Wed, 12 Feb 2025 14:15:07 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://nujonoa.com/wp-content/uploads/2019/04/cropped-DSC00976-e1554456145409-32x32.jpg</url>
	<title>エクセル | nujonoa_blog</title>
	<link>https://nujonoa.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>安価な左手デバイスxp-penはエクセルに使えるのか！？</title>
		<link>https://nujonoa.com/left-hand-device/</link>
					<comments>https://nujonoa.com/left-hand-device/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Wed, 12 Feb 2025 13:50:33 +0000</pubDate>
				<category><![CDATA[楽天マラソン・スーパーセール]]></category>
		<category><![CDATA[ガジェット]]></category>
		<category><![CDATA[パソコン便利集]]></category>
		<category><![CDATA[エクセル]]></category>
		<category><![CDATA[左手デバイス]]></category>
		<category><![CDATA[XPPEN]]></category>
		<guid isPermaLink="false">https://nujonoa.com/?p=24221</guid>

					<description><![CDATA[最近、aiの量産記事で面白くないものがたくさんになってきたので、この記事が届く人が少ないかと思いますが、今回は、6600円で買える、安価な左手デバイスxp-penはエクセルに使えるのか！？について解説していきたいと思いま [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>最近、aiの量産記事で面白くないものがたくさんになってきたので、<br>この記事が届く人が少ないかと思いますが、<br>今回は、6600円で買える、安価な左手デバイスxp-penはエクセルに使えるのか！？について解説していきたいと思います！</p>



<p>左手デバイスを検討している方は特に参考にしていってください！</p>




  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-2" checked><label class="toc-title" for="toc-checkbox-2">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">安価な左手デバイスxp-penはエクセルに使えるのか！？</a></li><li><a href="#toc2" tabindex="0">AIの回答</a><ol><li><a href="#toc3" tabindex="0">メリット</a></li><li><a href="#toc4" tabindex="0">デメリット</a></li></ol></li><li><a href="#toc5" tabindex="0">個人の回答　「キーボード、マウスにこだわってその後、買え」　</a></li><li><a href="#toc6" tabindex="0">事務作業に左手デバイスはいるか？</a></li><li><a href="#toc7" tabindex="0">一発でリンクに飛べる</a></li><li><a href="#toc8" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">安価な左手デバイスxp-penはエクセルに使えるのか！？</span></h2>



<p>今回の記事は、比較的安価に変える、xp-penはエクセルなどの事務作業に使えるのか？<br>について解説してきたいと思います！</p>



<figure class="wp-block-image size-full"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2025/02/image-3.jpg"><img fetchpriority="high" decoding="async" width="861" height="636" src="https://nujonoa.com/wp-content/uploads/2025/02/image-3.jpg" alt="" class="wp-image-24244" srcset="https://nujonoa.com/wp-content/uploads/2025/02/image-3.jpg 861w, https://nujonoa.com/wp-content/uploads/2025/02/image-3-500x369.jpg 500w, https://nujonoa.com/wp-content/uploads/2025/02/image-3-300x222.jpg 300w, https://nujonoa.com/wp-content/uploads/2025/02/image-3-768x567.jpg 768w" sizes="(max-width: 861px) 100vw, 861px" /></a></figure>



<h2 class="wp-block-heading"><span id="toc2">AIの回答</span></h2>



<p>まずは参考までにAIの回答を載せておきます。<br>当たり障りなく、当たり前のことが書いてあるかなという感じです。<br>↓</p>



<p>結論から言うと、 <strong>使えるが、向き・不向きがある！</strong> という感じです。</p>



<h3 class="wp-block-heading"><span id="toc3">メリット</span></h3>



<p>&#x2705; <strong>ショートカットキーの登録が可能</strong><br>→ 「Ctrl + C（コピー）」や「Ctrl + V（貼り付け）」など、よく使う操作をボタンに設定できる。</p>



<p>&#x2705; <strong>マウスを持ち替えずに操作できる</strong><br>→ 片手でショートカット操作ができるため、マウスとキーボードの移動が減る。</p>



<p>&#x2705; <strong>Excel の作業スピードアップ</strong><br>→ 例えば、「F2（セル編集）」「Ctrl + Z（元に戻す）」「Alt + Tab（アプリ切り替え）」などを登録すれば、スムーズな作業が可能。</p>



<h3 class="wp-block-heading"><span id="toc4">デメリット</span></h3>



<p>&#x274c; <strong>細かい操作には不向き</strong><br>→ セルの選択や関数の入力などは、キーボードやマウスの方が速い。</p>



<p>&#x274c; <strong>デバイスによっては設定が面倒</strong><br>→ ショートカットの設定が少し手間。専用ソフトが必要な場合もある。</p>



<p>&#x274c; <strong>すべての Excel 作業が効率化できるわけではない</strong><br>→ 特に表計算や関数入力は、キーボード操作の方が効率的。</p>



<h2 class="wp-block-heading"><span id="toc5">個人の回答　「キーボード、マウスにこだわってその後、買え」　</span></h2>



<p>これに対して、わたくし個人の回答としては、<br>まずは、「キーボード、マウスにこだわって買ってください。そしてやることがなくなったら、検討してもいいかもしれません。」</p>



<p>というのが回答になります。</p>



<p>が、「一回使ったら離れられない。。。」</p>



<p>というのもまた事実です。</p>



<p>ということで、これについて語っていきたいと思います。</p>



<h2 class="wp-block-heading"><span id="toc6">事務作業に左手デバイスはいるか？</span></h2>



<p>もともと左手デバイスというのは、「絵描き」さんが使うものとしてXP-PENでは販売されています。<br>ですので、キーボードの上に手がない状態を意識して作られています。</p>



<p>イメージは右手にペンをもって、左手で、このデバイスを使って拡大、回転、色変更、レイヤーの変更などなどをしていくイメージですね。</p>



<p>それに対して、事務作業では、基本手はキーボードの上にあります。</p>



<p>ですので、左手デバイスを買ったとしても、わざわざそこに手を持っていく必要があるとなると、<br>使わないのでは？？という印象を持つ方が多くいるのではないかと思います。</p>



<p>それは半分正解で半分不正解になります。</p>



<p>というのも、左手デバイスを導入してみて気づくことは、<br>エクセルなどを触っているときに、<br><strong>右手はマウス、左手はキーボードみたいな状況が多々発生していることに気づかされます</strong>。</p>



<p>そして、左手はコピペのために、ctrl+C、ctrl+vと<br>「かなり左手の小指に無理をさせていることに気づくはず」です。</p>



<p>もはや、コピペ何回もするんだから、ショートカットキーを一発で一つのキーで押せるようにしておけよ。<br>と。笑</p>



<p>となったときに、左手デバイスを使うと、</p>



<p>「左手は左手デバイス、右手はマウス」</p>



<p>みたいな感じで結構仕事が完結することがあります。<br></p>



<p>全然イメージつかないかもしれませんが、これがなれると結構楽で、<br>実際には、下記のようなショートカットを設定し、<br>・マウスで範囲選択して、コピーボタン→ペーストボタン<br>・スクショボタンでスクショ立ち上げて、マウスで範囲選択して、ペーストボタン<br>と、小指を酷使して、<strong>実は無理やりボタンを押していた</strong>ことから解放されることでしょう。<br></p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2025/02/image-2.png"><img decoding="async" width="900" height="471" src="https://nujonoa.com/wp-content/uploads/2025/02/image-2-900x471.png" alt="" class="wp-image-24225" srcset="https://nujonoa.com/wp-content/uploads/2025/02/image-2-900x471.png 900w, https://nujonoa.com/wp-content/uploads/2025/02/image-2-500x262.png 500w, https://nujonoa.com/wp-content/uploads/2025/02/image-2-300x157.png 300w, https://nujonoa.com/wp-content/uploads/2025/02/image-2-768x402.png 768w, https://nujonoa.com/wp-content/uploads/2025/02/image-2.png 949w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<p></p>



<p>さらに、スクロールを円盤で行うことも可能なのですが、<br>実は、マウスでスクロールすると、左クリックの人差し指が死んでいて、選択するためには、人差し指を持ち替えないといけないという超些細な問題に気づくことになるかと思います。</p>



<p>これも地味ではあるんですが、結構作業効率アップにつながり、<br>キーボードで全部作業する派閥＞左手デバイス導入派閥＞従来のキーボードマウス派閥<br>みたいな形で、作業効率が図れると思います。</p>



<h2 class="wp-block-heading"><span id="toc7">一発でリンクに飛べる</span></h2>



<p>さらに、<br>・一発でchatgptが立ち上がるボタン。<br>を導入していて、よく見るサイト、よく使うフォルダなどを登録しておくことで、<br>「あれこんなに簡単にアクセスできるの？」<br>こんなに、あのフォルダを起動させるのが「苦」だったなんてということにも気づかされると思います。</p>



<p>ショートカット張ってあるから、それをダブルクリックすればいいじゃん！<br>と思っていた自分が、ぴっ、っぱ　でフォルダが立ち上がる快感を覚えると、<br>「あの仕事やりたくないな。。」のハードルを下げることができるので、<br>かなり優秀なデバイスになるのかなと思います。</p>



<p>やる気センサーに火をつけるのが大変！<br>一度やってしまったら思ったより苦ではないという経験が多々あるかと思いますが、<br>そのセンサーの着火を早めることができることが<br>「実は一番重要な左手デバイスの役割」<br>なのかもしれません。</p>



<h2 class="wp-block-heading"><span id="toc8">まとめ</span></h2>



<p>ということで、結論</p>



<p>使い始めたら病みつきになる「するめデバイス」というのが、<br>左手デバイスの使ってみた検証結果になります！</p>



<p>やる気センサーをオンに！<br>そして、<br>マウス＋左手デバイスの繰り返し作業を多用することがある！<br>※小指を酷使してあげないで！自由に解放してあげて！笑</p>



<p>という人にとっては最良のデバイスになるかと思います。</p>



<p>ぜひぜひ、この沼に一緒にはまってみませんか？</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/left-hand-device/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>楽天銀行マネーサポートからエクセルで家計簿を作成！自動入力も！</title>
		<link>https://nujonoa.com/creating-a-household-account-book-from-money-support/</link>
					<comments>https://nujonoa.com/creating-a-household-account-book-from-money-support/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Thu, 20 Jan 2022 11:06:00 +0000</pubDate>
				<category><![CDATA[計算機]]></category>
		<category><![CDATA[FP(家庭のお金)]]></category>
		<category><![CDATA[エクセル]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=8204</guid>

					<description><![CDATA[目次 楽天銀行マネーサポートからエクセルで家計簿を作成！自動入力も！マネーサポート→家計簿置き換えファイルの紹介ファイルのアウトプットを確認ファイルの使い方自動入力、自動振り分けについてまとめ 楽天銀行マネーサポートから [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-4" checked><label class="toc-title" for="toc-checkbox-4">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">楽天銀行マネーサポートからエクセルで家計簿を作成！自動入力も！</a></li><li><a href="#toc2" tabindex="0">マネーサポート→家計簿置き換えファイルの紹介</a></li><li><a href="#toc3" tabindex="0">ファイルのアウトプットを確認</a></li><li><a href="#toc4" tabindex="0">ファイルの使い方</a></li><li><a href="#toc5" tabindex="0">自動入力、自動振り分けについて</a></li><li><a href="#toc6" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">楽天銀行マネーサポートからエクセルで家計簿を作成！自動入力も！</span></h2>



<p>昨今、「QR決済」「クレジットカード決済」などが増えてきたことで、</p>



<p>「お金を使いすぎる！」<br>「お金の管理ができない！」</p>



<p>といわれていますが、<br>実際のところどうなのでしょうか？</p>



<p>確かに、お財布から現金を出すとお金を使っている感覚が大きいので、<br>支出が抑えられる可能性がありますが、<br>実際に何に使ったかレシートを整理しないとわからなくなります。</p>



<p>しかも、ネット通販も増えましたし、ポイント付与なども考えると、<br>高額な商品を買う時に、「クレジットカード」を使わないという選択肢は<br>考えられない時代になってきていると思います。</p>



<p>では、これらの時代にあった家計簿とはどのようにすべきか、<br>それは、</p>



<div class="wp-block-group is-style-memo-box is-layout-flow wp-block-group-is-layout-flow">
<p>・基本的にクレジットカードや、PAYPAYなどを使い、<br>　収支の振り分けを自動化する。(なるべく手間を無くす)</p>



<p>・振り分けられなかったところを、自分で振り分けることで、<br>　自分の使ったお金を確認する。(お金を使っていることを自覚する)</p>
</div>



<p>システムが一番合っているのではないかと思います。</p>



<p>そしてそれを</p>



<div class="wp-block-group is-layout-flow wp-block-group-is-layout-flow">
<div class="wp-block-group is-style-alert-box is-layout-flow wp-block-group-is-layout-flow">
<p>1ヶ月ごとに行う！！<br></p>
</div>
</div>



<p>ことで、現金であろうが、クレジットカードであろうが、<br>きちんと出入りを<span class="marker-animation">「把握する」</span>ことが大事になってくると思います。</p>



<p>そこで今回は、楽天銀行のマネーサポートを使って、<br>家計簿を簡単につけることのできるエクセル(スプレッドシート)のファイルを作成しましたので、是非使ってみてください！</p>



<h2 class="wp-block-heading"><span id="toc2">マネーサポート→家計簿置き換えファイルの紹介</span></h2>



<p>ファイルの説明は後述しますので、<br>まずは、ファイルをダウンロードして、ザックリと眺めてみてください。</p>



<p>毎月の収支を「例」のように分類していくことで、<br>どこにどれだけお金を使っているか、把握することができます。</p>



<div class="wp-block-cocoon-blocks-button-1 button-block"><a rel="noopener" target="_blank" href="https://docs.google.com/spreadsheets/d/1IG94G9TbG-3uwGeyntfOZ7UF2iQAZ8CR9hTDeXKGgpw/copy" class="btn btn-l btn-circle btn-shine">ファイルダウンロード<span class="fa fa-external-link external-icon anchor-icon"></span></a></div>



<h2 class="wp-block-heading"><span id="toc3">ファイルのアウトプットを確認</span></h2>



<p>ダウンロードいただいたファイルは、2段構成になっており、<br>まとめシートと、詳細シートで構成されています。</p>



<p>①まずまとめシートですが、<br>下記のように、各月で何にどれだけ使ったかを一目で見ることのできるシートになります。表題も自由に変更可能ですので、自分の収入、支出にあったものに変更可能です。</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2022/01/image-41.png"><img decoding="async" width="900" height="421" src="https://nujonoa.com/wp-content/uploads/2022/01/image-41-900x421.png" alt="" class="wp-image-10348" srcset="https://nujonoa.com/wp-content/uploads/2022/01/image-41-900x421.png 900w, https://nujonoa.com/wp-content/uploads/2022/01/image-41-500x234.png 500w, https://nujonoa.com/wp-content/uploads/2022/01/image-41-300x140.png 300w, https://nujonoa.com/wp-content/uploads/2022/01/image-41-768x359.png 768w, https://nujonoa.com/wp-content/uploads/2022/01/image-41.png 1481w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<p>②詳細は、各月シートに分かれており、<br>　日付、内容、金額が表示され、自動分類された項目以外を手動で分類していきます。<br>　この結果が、まとめシートに飛ぶことになります。　</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2020/12/image-152.png"><img loading="lazy" decoding="async" width="900" height="378" src="https://nujonoa.com/wp-content/uploads/2020/12/image-152-900x378.png" alt="" class="wp-image-8219" srcset="https://nujonoa.com/wp-content/uploads/2020/12/image-152-900x378.png 900w, https://nujonoa.com/wp-content/uploads/2020/12/image-152-500x210.png 500w, https://nujonoa.com/wp-content/uploads/2020/12/image-152-300x126.png 300w, https://nujonoa.com/wp-content/uploads/2020/12/image-152-768x322.png 768w, https://nujonoa.com/wp-content/uploads/2020/12/image-152-1536x644.png 1536w, https://nujonoa.com/wp-content/uploads/2020/12/image-152.png 1633w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<h2 class="wp-block-heading"><span id="toc4">ファイルの使い方</span></h2>



<p>ファイルの使い方を説明していきます。</p>



<p>まずは、詳細シートの説明です。</p>



<p>①マネーサポートからのCSVデータをダウンロード。</p>



<p>②対象の月の貼り付け位置に張り付け(左上の黄色色のセルになります。)</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2020/12/image-152.png"><img loading="lazy" decoding="async" width="900" height="378" src="https://nujonoa.com/wp-content/uploads/2020/12/image-152-900x378.png" alt="" class="wp-image-8219" srcset="https://nujonoa.com/wp-content/uploads/2020/12/image-152-900x378.png 900w, https://nujonoa.com/wp-content/uploads/2020/12/image-152-500x210.png 500w, https://nujonoa.com/wp-content/uploads/2020/12/image-152-300x126.png 300w, https://nujonoa.com/wp-content/uploads/2020/12/image-152-768x322.png 768w, https://nujonoa.com/wp-content/uploads/2020/12/image-152-1536x644.png 1536w, https://nujonoa.com/wp-content/uploads/2020/12/image-152.png 1633w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<p>③自動振り分けされた行は緑色に表示されます。</p>



<p>④自動で入力されなかった項目に関しては、自分で入力していきます(「1」を入力)。</p>



<p>⑤結果、がサマリに表示されます。</p>



<h2 class="wp-block-heading"><span id="toc5">自動入力、自動振り分けについて</span></h2>



<p>よく使用するスーパーなどに関しては、<br>サマリシートの水色セルに、クレジット明細で出てくる名前を入力しておけば、<br>自動で振り分けされます。</p>



<p>たとえば、外食の欄の水色セルに「スシロー」と入力しておけば、<br>クレジット明細にスシローとは言っている場合、自動で振り分けされます。</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2022/01/image-42.png"><img loading="lazy" decoding="async" width="900" height="419" src="https://nujonoa.com/wp-content/uploads/2022/01/image-42-900x419.png" alt="" class="wp-image-10349" srcset="https://nujonoa.com/wp-content/uploads/2022/01/image-42-900x419.png 900w, https://nujonoa.com/wp-content/uploads/2022/01/image-42-500x233.png 500w, https://nujonoa.com/wp-content/uploads/2022/01/image-42-300x140.png 300w, https://nujonoa.com/wp-content/uploads/2022/01/image-42-768x357.png 768w, https://nujonoa.com/wp-content/uploads/2022/01/image-42-1536x715.png 1536w, https://nujonoa.com/wp-content/uploads/2022/01/image-42.png 1547w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<h2 class="wp-block-heading"><span id="toc6">まとめ</span></h2>



<p>このフォーマットを使うことで、月1のフォローで家計簿が簡単に作成されます。</p>



<p>何となく、お金使った気がするな～が、目に見えることによって、<br>ヤバイ、お金使い過ぎた…　という気持ちに変わります。笑</p>



<p>ぜひぜひ、一度家計簿をつける参考に、使ってみてください！！</p>



<div class="wp-block-cocoon-blocks-button-1 button-block"><a rel="noopener" target="_blank" href="https://docs.google.com/spreadsheets/d/1IG94G9TbG-3uwGeyntfOZ7UF2iQAZ8CR9hTDeXKGgpw/copy" class="btn btn-l btn-circle btn-shine">ファイルダウンロード<span class="fa fa-external-link external-icon anchor-icon"></span></a></div>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/creating-a-household-account-book-from-money-support/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【VBA】特定フォルダのファイルとシート一覧表＋ハイパーリンクを作る方法</title>
		<link>https://nujonoa.com/hyperlink-for-each-sheet/</link>
					<comments>https://nujonoa.com/hyperlink-for-each-sheet/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Fri, 05 Feb 2021 13:45:00 +0000</pubDate>
				<category><![CDATA[マクロVBA]]></category>
		<category><![CDATA[フォルダ内]]></category>
		<category><![CDATA[全ファイル]]></category>
		<category><![CDATA[全シート]]></category>
		<category><![CDATA[エクセル]]></category>
		<category><![CDATA[セル]]></category>
		<category><![CDATA[データベース]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=8766</guid>

					<description><![CDATA[目次 【VBA】特定フォルダのファイルとシート一覧表＋ハイパーリンクを作る方法プログラム紹介プログラムの説明まとめ 【VBA】特定フォルダのファイルとシート一覧表＋ハイパーリンクを作る方法 フォルダ内のファイル一覧は簡単 [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-6" checked><label class="toc-title" for="toc-checkbox-6">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">【VBA】特定フォルダのファイルとシート一覧表＋ハイパーリンクを作る方法</a></li><li><a href="#toc2" tabindex="0">プログラム紹介</a></li><li><a href="#toc3" tabindex="0">プログラムの説明</a></li><li><a href="#toc4" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">【VBA】特定フォルダのファイルとシート一覧表＋ハイパーリンクを作る方法</span></h2>



<p>フォルダ内のファイル一覧は簡単に取り出すことができますが、<br>フォルダ内のエクセル「シート」一覧をとりだすのは少しテクニックが要ります。</p>



<p>そこで今回は、特定のフォルダ内のエクセルのシート一覧を読み込むことができる、<br>プログラムを紹介したと思います。</p>



<h2 class="wp-block-heading"><span id="toc2">プログラム紹介</span></h2>



<p>プログラムを動かす前に、</p>



<p>①VBAの編集画面「ツール→参照」で、<br><strong>Microsoft ActiveX Data Objects 2.8 Library</strong><br>を追加して下さい。<br>②フォルダパスを検索したいパスに設定してください。<br>③「任意のセルに変更」の箇所を思い通りに変更ください。</p>



<p>※ダブルクリックでコピー</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: vb; title: ; notranslate">
Sub JIKKOU()
  
        Call DBMacro(&quot;C:\Users\bluei\OneDrive\ドキュメント\blog\fp&quot;) '←検索したいフォルダを指定する。
      
End Sub
 
Sub DBMacro(Path As String)
  
  Application.ScreenUpdating = False
  
'    Application.Calculation = xlCalculationManual '自動計算停止(手動計算)
  
    Dim objCn As New ADODB.Connection
    Dim objRS As ADODB.Recordset
    Dim sSheet As String
    Dim i      As Long
      
  
    Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
    Set cf = fso.GetFolder(Path)
      
    Z = 2
      
    Cells(Z, 1) = &quot;ファイルへのパス&quot;
    Cells(Z, 2) = &quot;ファイル名&quot;
    Cells(Z, 3) = &quot;シート名&quot;
    Cells(Z, 4) = &quot;計算用&quot;
    Cells(Z, 5) = &quot;フォルダパス&quot;
    Cells(Z, 6) = &quot;シートへのリンク&quot;
    Z = Z + 1
      
    For Each sFile In cf.Files
   
    If sFile = &quot;False&quot; Then
        Exit Sub
    End If
      
    If sFile.Name Like &quot;*.xls*&quot; Then
      
    Else
        GoTo Continue
    End If
    
'db関数を使用。
    With objCn
        .Provider = &quot;Microsoft.ACE.OLEDB.12.0&quot;
        .Properties(&quot;Extended Properties&quot;) = &quot;Excel 12.0&quot;
        .Open sFile
        Set objRS = .OpenSchema(ADODB.adSchemaTables)
    End With
  
’シート名を取り出す作業
    Do Until objRS.EOF
        sSheet = objRS.Fields(&quot;TABLE_NAME&quot;).Value
        If Right(sSheet, 1) = &quot;$&quot; Or Right(sSheet, 2) = &quot;$'&quot; Then
            If Right(sSheet, 1) = &quot;$&quot; Then
                sSheet = Left(sSheet, Len(sSheet) - 1)
            End If
            If Right(sSheet, 2) = &quot;$'&quot; Then
                sSheet = Left(sSheet, Len(sSheet) - 2)
            End If
            If Left(sSheet, 1) = &quot;'&quot; Then
                sSheet = Mid(sSheet, 2)
            End If
            sSheet = Replace(sSheet, &quot;''&quot;, &quot;'&quot;)
    
'情報を張っていく。
     Application.DisplayAlerts = False
              
            Cells(Z, 1) = sFile.Path
            Cells(Z, 2) = sFile.Name
            Cells(Z, 3) = &quot;'&quot; &amp; Replace(sSheet, &quot;#&quot;, &quot;.&quot;)
              
            Cells(Z, 4) = InStrRev(Cells(Z, 1), &quot;\&quot;)
            Cells(Z, 5) = Left(Cells(Z, 1), Cells(Z, 4))
            CELLPASS = &quot;'&quot; &amp; Cells(Z, 5) &amp; &quot;&#x5B;&quot; &amp; Cells(Z, 2) &amp; &quot;]&quot; &amp; Cells(Z, 3) &amp; &quot;'!&quot;
            Cells(Z, 6) = &quot;=HYPERLINK(A&quot; &amp; Z &amp; &quot;&amp;&quot;&quot;#&quot;&quot;&amp;C&quot; &amp; Z &amp; &quot;&amp;&quot;&quot;!A1&quot;&quot;,&quot;&quot;リンク&quot;&quot;)&quot;
      
        Application.DisplayAlerts = True
              
            Z = Z + 1
        End If
        objRS.MoveNext
    Loop
    objRS.Close
    objCn.Close
    Set objRS = Nothing
    Set objCn = Nothing
      
        Application.StatusBar = Z
      
Continue:
    Next
 
    '子フォルダも同様に、subFolderを実行する。
    With CreateObject(&quot;Scripting.FileSystemObject&quot;)
        For Each childf In .GetFolder(Path).SubFolders
            Call DBMacro(childf.Path)
        Next
    End With
      
    Application.Calculation = xlCalculationAutomatic '自動計算開始
     
  Application.ScreenUpdating = True
      
End Sub
</pre></div>


<h2 class="wp-block-heading"><span id="toc3">プログラムの説明</span></h2>



<p>プログラムは、<br>・ADOを使って、エクセルをDBとみなして、<br>　各ファイルのシートの情報をとってくる<br>・その情報と、パスの情報を組み合わせて、ハイパーリンクを作成していく</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: vb; title: ; notranslate">
Cells(Z, 6) = &quot;=HYPERLINK(A&quot; &amp; Z &amp; &quot;&amp;&quot;&quot;#&quot;&quot;&amp;C&quot; &amp; Z &amp; &quot;&amp;&quot;&quot;!A1&quot;&quot;,&quot;&quot;リンク&quot;&quot;)&quot;
</pre></div>


<p>プログラムとなっています。</p>



<h2 class="wp-block-heading"><span id="toc4">まとめ</span></h2>



<p>フォルダの整理が追い付かなくなってきたら、<br>ぜひ使ってみていただけたらと思います。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/hyperlink-for-each-sheet/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【VBA】ファイルを立ち上げずに、セルの情報を抜き出す方法</title>
		<link>https://nujonoa.com/how-to-extract-information-without-launching-a-file/</link>
					<comments>https://nujonoa.com/how-to-extract-information-without-launching-a-file/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Thu, 04 Feb 2021 14:07:43 +0000</pubDate>
				<category><![CDATA[エクセル]]></category>
		<category><![CDATA[マクロVBA]]></category>
		<category><![CDATA[セル]]></category>
		<category><![CDATA[データベース]]></category>
		<category><![CDATA[フォルダ内]]></category>
		<category><![CDATA[全ファイル]]></category>
		<category><![CDATA[全シート]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=8763</guid>

					<description><![CDATA[目次 【VBA】ファイルを立ち上げずに、エクセルの情報を抜き出す方法プログラム紹介プログラムの説明まとめ 【VBA】ファイルを立ち上げずに、エクセルの情報を抜き出す方法 エクセルで他のシートからセルの情報を持ってこようと [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-8" checked><label class="toc-title" for="toc-checkbox-8">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">【VBA】ファイルを立ち上げずに、エクセルの情報を抜き出す方法</a></li><li><a href="#toc2" tabindex="0">プログラム紹介</a></li><li><a href="#toc3" tabindex="0">プログラムの説明</a></li><li><a href="#toc4" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">【VBA】ファイルを立ち上げずに、エクセルの情報を抜き出す方法</span></h2>



<p>エクセルで他のシートからセルの情報を持ってこようとすると、<br>ブックを立ち上げて、情報をコピーして、閉じてを繰り返し行う必要があります。</p>



<p>が、そんなことやっていたら日が暮れてしまいますよね。。</p>



<p>そこで今回は、ファイルを立ち上げずに、下記のように</p>



<p>・特定のフォルダ内の<br>・全ブックの<br>・全シートの<br>・特定のセルの情報<br>を持ってくる方法を紹介したいと思います。</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2021/01/image-50.png"><img loading="lazy" decoding="async" width="900" height="518" src="https://nujonoa.com/wp-content/uploads/2021/01/image-50-900x518.png" alt="フォルダ内の全ファイル全シートの情報を抜き出す。" class="wp-image-8598" srcset="https://nujonoa.com/wp-content/uploads/2021/01/image-50-900x518.png 900w, https://nujonoa.com/wp-content/uploads/2021/01/image-50-500x288.png 500w, https://nujonoa.com/wp-content/uploads/2021/01/image-50-300x173.png 300w, https://nujonoa.com/wp-content/uploads/2021/01/image-50-768x442.png 768w, https://nujonoa.com/wp-content/uploads/2021/01/image-50-120x68.png 120w, https://nujonoa.com/wp-content/uploads/2021/01/image-50.png 972w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<h2 class="wp-block-heading"><span id="toc2">プログラム紹介</span></h2>



<p>プログラムを動かす前に、</p>



<p>①VBAの編集画面「ツール→参照」で、<br><strong>Microsoft ActiveX Data Objects 2.8 Library</strong><br>を追加して下さい。<br>②フォルダパスを検索したいパスに設定してください。<br>③「任意のセルに変更」の箇所を思い通りに変更ください。</p>



<p>※ダブルクリックでコピーできます。</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: vb; title: ; notranslate">
Sub JIKKOU()
 
        Call DBMacro(&quot;C:\Users\bluei\OneDrive\ドキュメント\blog\fp&quot;) '←検索したいフォルダを指定する。
     
End Sub

Sub DBMacro(Path As String)
 
  Application.ScreenUpdating = False
 
'    Application.Calculation = xlCalculationManual '自動計算停止(手動計算)
 
    Dim objCn As New ADODB.Connection
    Dim objRS As ADODB.Recordset
    Dim sSheet As String
    Dim i      As Long
     
 
    Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
    Set cf = fso.GetFolder(Path)
     
    Z = 2
     
    Cells(Z, 1) = &quot;ファイルへのパス&quot;
    Cells(Z, 2) = &quot;ファイル名&quot;
    Cells(Z, 3) = &quot;シート名&quot;
    Cells(Z, 4) = &quot;計算用&quot;
    Cells(Z, 5) = &quot;フォルダパス&quot;
    Cells(Z, 6) = &quot;シートへのリンク&quot;
    Cells(Z, 7) = &quot;ここからセルの値⇒⇒&quot;
    Z = Z + 1
     
    For Each sFile In cf.Files
  
    If sFile = &quot;False&quot; Then
        Exit Sub
    End If
     
    If sFile.Name Like &quot;*.xls*&quot; Then
     
    Else
        GoTo Continue
    End If
   
'db関数を使用。
    With objCn
        .Provider = &quot;Microsoft.ACE.OLEDB.12.0&quot;
        .Properties(&quot;Extended Properties&quot;) = &quot;Excel 12.0&quot;
        .Open sFile
        Set objRS = .OpenSchema(ADODB.adSchemaTables)
    End With
 
’シート名を取り出す作業
    Do Until objRS.EOF
        sSheet = objRS.Fields(&quot;TABLE_NAME&quot;).Value
        If Right(sSheet, 1) = &quot;$&quot; Or Right(sSheet, 2) = &quot;$'&quot; Then
            If Right(sSheet, 1) = &quot;$&quot; Then
                sSheet = Left(sSheet, Len(sSheet) - 1)
            End If
            If Right(sSheet, 2) = &quot;$'&quot; Then
                sSheet = Left(sSheet, Len(sSheet) - 2)
            End If
            If Left(sSheet, 1) = &quot;'&quot; Then
                sSheet = Mid(sSheet, 2)
            End If
            sSheet = Replace(sSheet, &quot;''&quot;, &quot;'&quot;)
   
'情報を張っていく。
     Application.DisplayAlerts = False
             
            Cells(Z, 1) = sFile.Path
            Cells(Z, 2) = sFile.Name
            Cells(Z, 3) = &quot;'&quot; &amp; Replace(sSheet, &quot;#&quot;, &quot;.&quot;)
             
            Cells(Z, 4) = InStrRev(Cells(Z, 1), &quot;\&quot;)
            Cells(Z, 5) = Left(Cells(Z, 1), Cells(Z, 4))
            CELLPASS = &quot;'&quot; &amp; Cells(Z, 5) &amp; &quot;&#x5B;&quot; &amp; Cells(Z, 2) &amp; &quot;]&quot; &amp; Cells(Z, 3) &amp; &quot;'!&quot;
            Cells(Z, 6) = &quot;=HYPERLINK(A&quot; &amp; Z &amp; &quot;&amp;&quot;&quot;#&quot;&quot;&amp;C&quot; &amp; Z &amp; &quot;&amp;&quot;&quot;!A1&quot;&quot;,&quot;&quot;リンク&quot;&quot;)&quot;
             
            Cells(Z, 7) = &quot;=&quot; &amp; CELLPASS &amp; &quot;F6&quot;  '任意のセルに変更
            Cells(Z, 8) = &quot;=&quot; &amp; CELLPASS &amp; &quot;Y6&quot;  '任意のセルに変更
            Cells(Z, 9) = &quot;=&quot; &amp; CELLPASS &amp; &quot;M9&quot;  '任意のセルに変更
            Cells(Z, 10) = &quot;=&quot; &amp; CELLPASS &amp; &quot;M15&quot;  '任意のセルに変更
            Cells(Z, 11) = &quot;=&quot; &amp; CELLPASS &amp; &quot;E19&quot;  '任意のセルに変更
            Cells(Z, 12) = &quot;=&quot; &amp; CELLPASS &amp; &quot;B26&quot;  '任意のセルに変更
            Cells(Z, 13) = &quot;=&quot; &amp; CELLPASS &amp; &quot;I26&quot;  '任意のセルに変更
            Cells(Z, 14) = &quot;=&quot; &amp; CELLPASS &amp; &quot;P26&quot;  '任意のセルに変更
            Cells(Z, 15) = &quot;=&quot; &amp; CELLPASS &amp; &quot;B28&quot;  '任意のセルに変更

 
            DoEvents  '重すぎるのでフリーズしないように入れる。
 
'シートをリンクさせないバージョン↓
'            Cells(Z, 8).Value = ExecuteExcel4Macro(&quot;'&quot; &amp; Cells(Z, 5) &amp; &quot;&#x5B;&quot; &amp; Cells(Z, 2) &amp; &quot;]&quot; &amp; Cells(Z, 3) &amp; &quot;'!R26C2&quot;)
             
             
        Application.DisplayAlerts = True
             
             
            Z = Z + 1
        End If
        objRS.MoveNext
    Loop
    objRS.Close
    objCn.Close
    Set objRS = Nothing
    Set objCn = Nothing
     
        Application.StatusBar = Z
     
Continue:
    Next

    '子フォルダも同様に、subFolderを実行する。
    With CreateObject(&quot;Scripting.FileSystemObject&quot;)
        For Each childf In .GetFolder(Path).SubFolders
            Call DBMacro(childf.Path)
        Next
    End With
     
    Application.Calculation = xlCalculationAutomatic '自動計算開始
    
    Range(Cells(1, 1), Cells(Z, 30)).Formula = Range(Cells(1, 1), Cells(Z, 30)).Formula
    
  Application.ScreenUpdating = True
     
End Sub


</pre></div>


<h2 class="wp-block-heading"><span id="toc3">プログラムの説明</span></h2>



<p></p>



<p>ADOを使って、エクセルをDBとみなして、<br>各ファイルのシートをすべてとってきています。</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: vb; title: ; notranslate">
'db関数を使用。
    With objCn
        .Provider = &quot;Microsoft.ACE.OLEDB.12.0&quot;
        .Properties(&quot;Extended Properties&quot;) = &quot;Excel 12.0&quot;
        .Open sFile
        Set objRS = .OpenSchema(ADODB.adSchemaTables)
    End With
 
’シート名を取り出す作業
    Do Until objRS.EOF
        sSheet = objRS.Fields(&quot;TABLE_NAME&quot;).Value
        If Right(sSheet, 1) = &quot;$&quot; Or Right(sSheet, 2) = &quot;$'&quot; Then
            If Right(sSheet, 1) = &quot;$&quot; Then
                sSheet = Left(sSheet, Len(sSheet) - 1)
            End If
            If Right(sSheet, 2) = &quot;$'&quot; Then
                sSheet = Left(sSheet, Len(sSheet) - 2)
            End If
            If Left(sSheet, 1) = &quot;'&quot; Then
                sSheet = Mid(sSheet, 2)
            End If
            sSheet = Replace(sSheet, &quot;''&quot;, &quot;'&quot;)
</pre></div>


<p>その情報を使って、<br>・そのブックにリンクを作っていきます。<br>【＝'パス名[ブック名]シート名'セル名】<br>例)='C:\Users\bluei\OneDrive\ドキュメント\blog\fp[(201912)簡易FP.xlsx]→'!F6】</p>



<p>他のファイルで↓の表示が出ると、かなり萎えますが、今回の場合は、これを思う存分行うようにしています。</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2021/01/image-51.png"><img loading="lazy" decoding="async" width="726" height="138" src="https://nujonoa.com/wp-content/uploads/2021/01/image-51.png" alt="安全ではない可能性のある外部ソースへのリンクが" class="wp-image-8600" srcset="https://nujonoa.com/wp-content/uploads/2021/01/image-51.png 726w, https://nujonoa.com/wp-content/uploads/2021/01/image-51-500x95.png 500w, https://nujonoa.com/wp-content/uploads/2021/01/image-51-300x57.png 300w" sizes="(max-width: 726px) 100vw, 726px" /></a></figure></div>



<p>そのまま数式は残してありますが、最後にコピーして値貼り付けをすれば、<br>このリンクは削除できますので、変に重たいファイルになることを防ぐことも可能です。</p>



<h2 class="wp-block-heading"><span id="toc4">まとめ</span></h2>



<p>暗黙知を形式知にしたり、情報の共有を図るために、</p>



<p>・何かしらのフォーマットにある程度のルールにのっとったファイル</p>



<p>を作っていくことがあると思いますが、<br>残念ながらそれがうまく活用されることが少ないように感じます。</p>



<p>そのハードルを下げるためにも、誰もが使っているエクセルで、<br>DBを作ることに意味はあると思います。</p>



<p>是非検討してみてください！！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/how-to-extract-information-without-launching-a-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【エクセルDB】フォルダ内の全ファイル全シートのセルの情報を書き出す。</title>
		<link>https://nujonoa.com/extract-cell-information-of-all-files-and-all-sheets/</link>
					<comments>https://nujonoa.com/extract-cell-information-of-all-files-and-all-sheets/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Sat, 23 Jan 2021 13:53:11 +0000</pubDate>
				<category><![CDATA[エクセル]]></category>
		<category><![CDATA[google spreadsheet]]></category>
		<category><![CDATA[データベース]]></category>
		<category><![CDATA[フォルダ内]]></category>
		<category><![CDATA[全ファイル]]></category>
		<category><![CDATA[全シート]]></category>
		<category><![CDATA[セル]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=8184</guid>

					<description><![CDATA[目次 【エクセルDB】フォルダ内の全ファイル全シートの情報を書き出す。プログラム紹介プログラムの説明まとめ 【エクセルDB】フォルダ内の全ファイル全シートの情報を書き出す。 エクセルは時代遅れ、、、といわれながらも、社内 [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-10" checked><label class="toc-title" for="toc-checkbox-10">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">【エクセルDB】フォルダ内の全ファイル全シートの情報を書き出す。</a></li><li><a href="#toc2" tabindex="0">プログラム紹介</a></li><li><a href="#toc3" tabindex="0">プログラムの説明</a></li><li><a href="#toc4" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">【エクセルDB】フォルダ内の全ファイル全シートの情報を書き出す。</span></h2>



<p>エクセルは時代遅れ、、、といわれながらも、<br>社内外のやり取りはエクセルで行われるのが主ですし、<br>これからもそれがどっと変わることはないでしょう。<br>※スプレッドシートはありかなと思うのですが…<br>　結局なんやかんや表計算ソフトは便利です。</p>



<p>そこで、今回はエクセルデータベースをVBAで無理やり作ってみました。</p>



<p>出来ることは、下記画像の通り、<br><strong>対象のフォルダ内のエクセルシートの</strong><br>・ファイルのパス<br>・エクセルのファイル名<br>・エクセルのシート名<br>・そのシートへのリンク<br>・そのシートの対象のセルの値を読み込む。</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2021/01/image-50.png"><img loading="lazy" decoding="async" width="900" height="518" src="https://nujonoa.com/wp-content/uploads/2021/01/image-50-900x518.png" alt="フォルダ内の全ファイル全シートの情報を抜き出す。" class="wp-image-8598" srcset="https://nujonoa.com/wp-content/uploads/2021/01/image-50-900x518.png 900w, https://nujonoa.com/wp-content/uploads/2021/01/image-50-500x288.png 500w, https://nujonoa.com/wp-content/uploads/2021/01/image-50-300x173.png 300w, https://nujonoa.com/wp-content/uploads/2021/01/image-50-768x442.png 768w, https://nujonoa.com/wp-content/uploads/2021/01/image-50-120x68.png 120w, https://nujonoa.com/wp-content/uploads/2021/01/image-50.png 972w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<p>というプログラムです。</p>



<p>フォルダと、セルの値だけ変えてもらえればすぐに使えますので、<br>ぜひ参考にしてみてください！！！</p>



<h2 class="wp-block-heading"><span id="toc2">プログラム紹介</span></h2>



<p>プログラムを動かす前に、</p>



<p>①VBAの編集画面「ツール→参照」で、<br><strong>Microsoft ActiveX Data Objects 2.8 Library</strong><br>を追加して下さい。<br>②フォルダパスを検索したいパスに設定してください。<br>③「任意のセルに変更」の箇所を思い通りに変更ください。</p>



<p>それが出来たら実行してください。</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: vb; title: ; notranslate">
Sub DBMacro(Path As String)
 
  Application.ScreenUpdating = False
 
'    Application.Calculation = xlCalculationManual '自動計算停止(手動計算)
 
    Dim objCn As New ADODB.Connection
    Dim objRS As ADODB.Recordset
    Dim sSheet As String
    Dim i      As Long
     
 
    Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
    Set cf = fso.GetFolder(Path)
     
    Z = 2
     
    Cells(Z, 1) = &quot;ファイルへのパス&quot;
    Cells(Z, 2) = &quot;ファイル名&quot;
    Cells(Z, 3) = &quot;シート名&quot;
    Cells(Z, 4) = &quot;計算用&quot;
    Cells(Z, 5) = &quot;フォルダパス&quot;
    Cells(Z, 6) = &quot;シートへのリンク&quot;
    Cells(Z, 7) = &quot;ここからセルの値⇒⇒&quot;
    Z = Z + 1
     
     
     
    '直下
     
    For Each sFile In cf.Files
     
  
    If sFile = &quot;False&quot; Then
        Exit Sub
    End If
     
    If sFile.Name Like &quot;*.xls*&quot; Then
     
    Else
        GoTo Continue
    End If
   
    With objCn
        .Provider = &quot;Microsoft.ACE.OLEDB.12.0&quot;
        .Properties(&quot;Extended Properties&quot;) = &quot;Excel 12.0&quot;
        .Open sFile
        Set objRS = .OpenSchema(ADODB.adSchemaTables)
    End With
 
    Do Until objRS.EOF
        sSheet = objRS.Fields(&quot;TABLE_NAME&quot;).Value
        If Right(sSheet, 1) = &quot;$&quot; Or Right(sSheet, 2) = &quot;$'&quot; Then
            If Right(sSheet, 1) = &quot;$&quot; Then
                sSheet = Left(sSheet, Len(sSheet) - 1)
            End If
            If Right(sSheet, 2) = &quot;$'&quot; Then
                sSheet = Left(sSheet, Len(sSheet) - 2)
            End If
            If Left(sSheet, 1) = &quot;'&quot; Then
                sSheet = Mid(sSheet, 2)
            End If
            sSheet = Replace(sSheet, &quot;''&quot;, &quot;'&quot;)
        Application.DisplayAlerts = False
             
            Cells(Z, 1) = sFile.Path
            Cells(Z, 2) = sFile.Name
            Cells(Z, 3) = &quot;'&quot; &amp; Replace(sSheet, &quot;#&quot;, &quot;.&quot;)
             
            Cells(Z, 4) = InStrRev(Cells(Z, 1), &quot;\&quot;)
            Cells(Z, 5) = Left(Cells(Z, 1), Cells(Z, 4))
            CELLPASS = &quot;'&quot; &amp; Cells(Z, 5) &amp; &quot;&#x5B;&quot; &amp; Cells(Z, 2) &amp; &quot;]&quot; &amp; Cells(Z, 3) &amp; &quot;'!&quot;
            Cells(Z, 6) = &quot;=HYPERLINK(A&quot; &amp; Z &amp; &quot;&amp;&quot;&quot;#&quot;&quot;&amp;C&quot; &amp; Z &amp; &quot;&amp;&quot;&quot;!A1&quot;&quot;,&quot;&quot;リンク&quot;&quot;)&quot;
             
            Cells(Z, 7) = &quot;=&quot; &amp; CELLPASS &amp; &quot;F6&quot;  '任意のセルに変更
            Cells(Z, 8) = &quot;=&quot; &amp; CELLPASS &amp; &quot;Y6&quot;  '任意のセルに変更
            Cells(Z, 9) = &quot;=&quot; &amp; CELLPASS &amp; &quot;M9&quot;  '任意のセルに変更
            Cells(Z, 10) = &quot;=&quot; &amp; CELLPASS &amp; &quot;M15&quot;  '任意のセルに変更
            Cells(Z, 11) = &quot;=&quot; &amp; CELLPASS &amp; &quot;E19&quot;  '任意のセルに変更
            Cells(Z, 12) = &quot;=&quot; &amp; CELLPASS &amp; &quot;B26&quot;  '任意のセルに変更
            Cells(Z, 13) = &quot;=&quot; &amp; CELLPASS &amp; &quot;I26&quot;  '任意のセルに変更
            Cells(Z, 14) = &quot;=&quot; &amp; CELLPASS &amp; &quot;P26&quot;  '任意のセルに変更
            Cells(Z, 15) = &quot;=&quot; &amp; CELLPASS &amp; &quot;B28&quot;  '任意のセルに変更
            Cells(Z, 16) = &quot;=&quot; &amp; CELLPASS &amp; &quot;I28&quot;  '任意のセルに変更
            Cells(Z, 17) = &quot;=&quot; &amp; CELLPASS &amp; &quot;N28&quot;  '任意のセルに変更
            Cells(Z, 18) = &quot;=&quot; &amp; CELLPASS &amp; &quot;I29&quot;  '任意のセルに変更
            Cells(Z, 19) = &quot;=&quot; &amp; CELLPASS &amp; &quot;P29&quot;  '任意のセルに変更
            Cells(Z, 20) = &quot;=&quot; &amp; CELLPASS &amp; &quot;W26&quot;  '任意のセルに変更
            Cells(Z, 21) = &quot;=&quot; &amp; CELLPASS &amp; &quot;AD26&quot;  '任意のセルに変更
            Cells(Z, 22) = &quot;=&quot; &amp; CELLPASS &amp; &quot;AK26&quot;  '任意のセルに変更
            Cells(Z, 23) = &quot;=&quot; &amp; CELLPASS &amp; &quot;W28&quot;  '任意のセルに変更
            Cells(Z, 24) = &quot;=&quot; &amp; CELLPASS &amp; &quot;AD28&quot;  '任意のセルに変更
            Cells(Z, 25) = &quot;=&quot; &amp; CELLPASS &amp; &quot;AI28&quot;  '任意のセルに変更
            Cells(Z, 26) = &quot;=&quot; &amp; CELLPASS &amp; &quot;AD29&quot;  '任意のセルに変更
            Cells(Z, 27) = &quot;=&quot; &amp; CELLPASS &amp; &quot;AK29&quot;  '任意のセルに変更
 
            DoEvents  '重すぎるのでフリーズしないように入れる。
 
'シートをリンクさせないバージョン↓
'            Cells(Z, 8).Value = ExecuteExcel4Macro(&quot;'&quot; &amp; Cells(Z, 5) &amp; &quot;&#x5B;&quot; &amp; Cells(Z, 2) &amp; &quot;]&quot; &amp; Cells(Z, 3) &amp; &quot;'!R26C2&quot;)
             
             
        Application.DisplayAlerts = True
             
             
            Z = Z + 1
        End If
        objRS.MoveNext
    Loop
    objRS.Close
    objCn.Close
    Set objRS = Nothing
    Set objCn = Nothing
     
        Application.StatusBar = Z
     
Continue:
    Next

    '子フォルダも同様に、subFolderを実行する。
    With CreateObject(&quot;Scripting.FileSystemObject&quot;)
        For Each childf In .GetFolder(Path).SubFolders
            Call DBMacro(childf.Path)
        Next
    End With
     
    Application.Calculation = xlCalculationAutomatic '自動計算開始
    
    
    
    Range(Cells(1, 1), Cells(Z, 30)).Formula = Range(Cells(1, 1), Cells(Z, 30)).Formula
    
  Application.ScreenUpdating = True
     
End Sub

Sub JIKKOU()
 
        Call DBMacro(&quot;C:\Users\bluei\OneDrive\ドキュメント\blog\fp&quot;) '←検索したいフォルダを指定する。
     
End Sub

</pre></div>


<h2 class="wp-block-heading"><span id="toc3">プログラムの説明</span></h2>



<p>長すぎるので、説明は端折りますが、</p>



<p>・ファイルを検索して、<br>・ファイルがエクセルの場合、その中のシートを全部読み取りハイパーリンクを作成がてら、<br>・そのシートの特定のセルへ【='C:\Users\bluei\OneDrive\ドキュメント\blog\fp[(201912)簡易FP.xlsx]→'!F6】みたいな外部リンクの数式をじゃんじゃん作っていく。</p>



<p>イメージです。</p>



<p>よくある悪者</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2021/01/image-51.png"><img loading="lazy" decoding="async" width="726" height="138" src="https://nujonoa.com/wp-content/uploads/2021/01/image-51.png" alt="安全ではない可能性のある外部ソースへのリンクが" class="wp-image-8600" srcset="https://nujonoa.com/wp-content/uploads/2021/01/image-51.png 726w, https://nujonoa.com/wp-content/uploads/2021/01/image-51-500x95.png 500w, https://nujonoa.com/wp-content/uploads/2021/01/image-51-300x57.png 300w" sizes="(max-width: 726px) 100vw, 726px" /></a></figure></div>



<p>を逆に存分に使ってやろうという感じになります。<br>そのまま数式は残してありますが、最後にコピーして値貼り付けをすれば、<br>このリンクは削除できますので、変に重たいファイルになることを防ぐことも可能です。</p>



<h2 class="wp-block-heading"><span id="toc4">まとめ</span></h2>



<p>結構苦労してたどり着いたプログラムなので、<br>かわいがってやってください。</p>



<p>何か要望などあれば、コメントへどうぞ！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/extract-cell-information-of-all-files-and-all-sheets/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【エクセル】上位n個の合計値を1セルで計算する方法！</title>
		<link>https://nujonoa.com/calculate-the-total-value-of-the-top-n-points/</link>
					<comments>https://nujonoa.com/calculate-the-total-value-of-the-top-n-points/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Sun, 22 Nov 2020 14:18:00 +0000</pubDate>
				<category><![CDATA[エクセル]]></category>
		<category><![CDATA[small]]></category>
		<category><![CDATA[SUMPRODUCT]]></category>
		<category><![CDATA[LARGE]]></category>
		<category><![CDATA[n]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=7653</guid>

					<description><![CDATA[目次 上位n個の合計値を計算する方法！数式紹介数式の説明 上位n個の合計値を計算する方法！ 二八の法則といわれるように、物事は、 上位2割のものの合計が8割を占める という現象がよく起こります。そこで、上位n個の合計値を [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-12" checked><label class="toc-title" for="toc-checkbox-12">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">上位n個の合計値を計算する方法！</a></li><li><a href="#toc2" tabindex="0">数式紹介</a></li><li><a href="#toc3" tabindex="0">数式の説明</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">上位n個の合計値を計算する方法！</span></h2>



<p>二八の法則といわれるように、<br>物事は、</p>



<p>上位2割のものの合計が8割を占める</p>



<p>という現象がよく起こります。<br>そこで、上位n個の合計値を確認し割合を確認することで<br>データの目の付け所を知ることができます。</p>



<p>そこで今回亜H、上位n個を関数で計算する方法を紹介したいとも思います。</p>



<h2 class="wp-block-heading"><span id="toc2">数式紹介</span></h2>



<p>今回紹介する数式は、<br>・SUMPRODUT<br>・ROWS<br>・INDIRECT<br>を用いて、</p>



<p class="is-style-sticky-red">=SUMPRODUCT(LARGE(データ範囲,ROW(INDIRECT("1:n"))))</p>



<p class="is-style-sticky-gray">実際の使用例<br>=SUMPRODUCT(LARGE($C$3:$C$10,ROW(INDIRECT("1:3"))))</p>



<p>と記述します。</p>



<p>計算結果は下記の通り、<br>・上位1位までの合計が、10<br>・上位2位までの合計が、18=10+8<br>・上位3位までの合計が、24=10+8+6<br>と、狙った通り計算できていることが分かります。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="900" height="333" src="https://nujonoa.com/wp-content/uploads/2020/11/image-18-900x333.png" alt="" class="wp-image-7656" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-18-900x333.png 900w, https://nujonoa.com/wp-content/uploads/2020/11/image-18-500x185.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-18-300x111.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-18-768x284.png 768w, https://nujonoa.com/wp-content/uploads/2020/11/image-18.png 1008w" sizes="(max-width: 900px) 100vw, 900px" /></figure>



<h2 class="wp-block-heading"><span id="toc3">数式の説明</span></h2>



<p>今回の肝となっている関数はLARGE関数です。</p>



<p>LARGE関数は</p>



<p class="is-style-sticky-red">= LARGE(data ,n ) // n番目に大きい</p>



<p>のように、使用し、n番目に大きい数字を検索することができます。</p>



<p>今回はそれにSUMPRODUCT関数を組み合わせて上位n点の合計を表現しています。</p>



<p>この数式にたどり着くイメージは、</p>



<p class="is-style-sticky-red">①簡単に記述すると、<br>= LARGE(data ,１) +LARGE(data ,2) +LARGE(data ,3) +・・・＋LARGE(data ,n) </p>



<p class="is-style-sticky-red">②上記の式をSUMPRODUCTで表現すると下記のように書くことができる。<br>=SUMPRODUCT(LARGE(data,{1,2,3,…n})</p>



<p class="is-style-sticky-red">③配列のn数が多くなると記述できなくなるので、ROWを用いて表現。<br>＝SUMPRODUCT(LARGE(data,ROW(INDIRECT("1:N")))</p>



<p>という流れになるかと思います。</p>



<p>ROW(INDIRECT("1:N")が理解しにくいかと思いますが、<br>実際セルに入力すると、下記のように1～10までの配列が作成されることが分かると思います。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="860" height="394" src="https://nujonoa.com/wp-content/uploads/2020/11/image-19.png" alt="" class="wp-image-7657" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-19.png 860w, https://nujonoa.com/wp-content/uploads/2020/11/image-19-500x229.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-19-300x137.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-19-768x352.png 768w" sizes="(max-width: 860px) 100vw, 860px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/calculate-the-total-value-of-the-top-n-points/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【エクセル】SUMを用いて累計を計算する方法！</title>
		<link>https://nujonoa.com/the-cumulative-total-with-sum/</link>
					<comments>https://nujonoa.com/the-cumulative-total-with-sum/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Fri, 20 Nov 2020 13:52:00 +0000</pubDate>
				<category><![CDATA[エクセル]]></category>
		<category><![CDATA[SUM]]></category>
		<category><![CDATA[$]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=7647</guid>

					<description><![CDATA[目次 SUMを用いて累計を計算する方法！数式紹介数式の説明 SUMを用いて累計を計算する方法！ 損益の計算などで、累計の損益を計算したいときなどが出てくると思います。 そんな時に使える、SUMを用いた累計の計算方法を紹介 [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-14" checked><label class="toc-title" for="toc-checkbox-14">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">SUMを用いて累計を計算する方法！</a></li><li><a href="#toc2" tabindex="0">数式紹介</a></li><li><a href="#toc3" tabindex="0">数式の説明</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">SUMを用いて累計を計算する方法！</span></h2>



<p>損益の計算などで、累計の損益を計算したいときなどが出てくると思います。</p>



<p>そんな時に使える、SUMを用いた累計の計算方法を紹介したいと思います。</p>



<h2 class="wp-block-heading"><span id="toc2">数式紹介</span></h2>



<p>今回紹介する数式は、非常にシンプルで<br>・SUM<br>を用いて、</p>



<p class="is-style-sticky-red">=SUM($開始セル:累計セル)</p>



<p class="is-style-sticky-gray">実際の使用例<br>=SUM($C$3:H3)</p>



<p>と記述します。</p>



<p>結果は下記の通り、開始セルから累計値を計算できていることが分かります。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="892" height="390" src="https://nujonoa.com/wp-content/uploads/2020/11/image-14.png" alt="" class="wp-image-7649" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-14.png 892w, https://nujonoa.com/wp-content/uploads/2020/11/image-14-500x219.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-14-300x131.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-14-768x336.png 768w" sizes="(max-width: 892px) 100vw, 892px" /></figure>



<h2 class="wp-block-heading"><span id="toc3">数式の説明</span></h2>



<p>知ってしまえば当たり前なのですが、<br>開始位置を＄で固定し、計算してあげることで累計の計算を行うことができます。</p>



<p>何となく、累計値を計算するとなると下記の計算式のように</p>



<p class="is-style-secondary-box">今までの値＋新しい値</p>



<p>と考えてしまいがちなのですが、<br>「累計」などのラベルを設置するとエラーになってしまい困っていたところ、<br>同僚から教えてもらった数式になります。</p>



<p>本当に単純な計算式ですが、ぜひ使ってみてください！</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="892" height="387" src="https://nujonoa.com/wp-content/uploads/2020/11/image-16.png" alt="" class="wp-image-7651" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-16.png 892w, https://nujonoa.com/wp-content/uploads/2020/11/image-16-500x217.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-16-300x130.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-16-768x333.png 768w" sizes="(max-width: 892px) 100vw, 892px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/the-cumulative-total-with-sum/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【エクセル】前方が一致、後方が一致するセルの数を数える。</title>
		<link>https://nujonoa.com/count-the-first-matching-cell/</link>
					<comments>https://nujonoa.com/count-the-first-matching-cell/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Thu, 19 Nov 2020 14:07:00 +0000</pubDate>
				<category><![CDATA[エクセル]]></category>
		<category><![CDATA[COUNTIF]]></category>
		<category><![CDATA[先頭一致]]></category>
		<category><![CDATA[後方一致]]></category>
		<category><![CDATA[含む]]></category>
		<category><![CDATA[SUMIF]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=7626</guid>

					<description><![CDATA[目次 前方が一致、後方が一致するセルの数を数える。数式紹介数式の説明応用編 前方が一致、後方が一致するセルの数を数える。 前方一致(先頭)、後方一致する場合のセルの数を数えたい という要望に応え、COUNTIFを用いたカ [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-16" checked><label class="toc-title" for="toc-checkbox-16">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">前方が一致、後方が一致するセルの数を数える。</a></li><li><a href="#toc2" tabindex="0">数式紹介</a></li><li><a href="#toc3" tabindex="0">数式の説明</a></li><li><a href="#toc4" tabindex="0">応用編</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">前方が一致、後方が一致するセルの数を数える。</span></h2>



<p>前方一致(先頭)、後方一致する場合のセルの数を数えたい</p>



<p>という要望に応え、<br>COUNTIFを用いたカウント方法を説明したいと思います。</p>



<h2 class="wp-block-heading"><span id="toc2">数式紹介</span></h2>



<p>今回紹介する数式は、<br>・COUNTIF<br>を用いて、</p>



<p class="is-style-sticky-red">=COUNTIF(データの範囲,"検索文字列*")</p>



<p class="is-style-sticky-gray">実際の使用例<br>=COUNTIF($B$4:$B$11,"A*")</p>



<p>と記述します。</p>



<p>結果は下記の通り、Aから始まる文字列の数をカウントできています。</p>



<p>また、同様の記載方法で、後方一致、特定の値を含む場合のセルの数をカウントしています。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="645" height="326" src="https://nujonoa.com/wp-content/uploads/2020/11/image-11.png" alt="" class="wp-image-7628" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-11.png 645w, https://nujonoa.com/wp-content/uploads/2020/11/image-11-500x253.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-11-300x152.png 300w" sizes="(max-width: 645px) 100vw, 645px" /></figure>



<h2 class="wp-block-heading"><span id="toc3">数式の説明</span></h2>



<p>COUNTIFは通常、「特定の値と同じ」セルの数をカウントする場合に使いますが、</p>



<p>検索文字列を工夫することで、様々な文字列を検索できます。</p>



<p class="is-style-sticky-red">前方一致<br>=COUNTIF(データの範囲,"検索文字列*")<br>後方一致<br>=COUNTIF(データの範囲,"*検索文字列")<br>含む<br>=COUNTIF(データの範囲,"*検索文字列*")<br>文字列①で始まり、文字列②で終わる。<br>=COUNTIF(データの範囲,"検索文字列①*検索文字列②")</p>



<h2 class="wp-block-heading"><span id="toc4">応用編</span></h2>



<p>今回はセルの数を数える方法を説明しましたが、<br>SUMIFで同様な式を用いることで、数量を数えることも可能です。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="743" height="326" src="https://nujonoa.com/wp-content/uploads/2020/11/image-12.png" alt="" class="wp-image-7629" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-12.png 743w, https://nujonoa.com/wp-content/uploads/2020/11/image-12-500x219.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-12-300x132.png 300w" sizes="(max-width: 743px) 100vw, 743px" /></figure>



<p>数式としては、</p>



<p class="is-style-sticky-red">=SUMIF(表題範囲,"検索文字列<strong>*</strong>",合計範囲)</p>



<p class="is-style-sticky-gray">使用例)<br>=SUMIF($B$4:$B$11,"A*",$C$4:$C$11)</p>



<p>と記載します。COUNTIFの数式に合計範囲を追加した形になります。</p>



<p>頭の文字で種類を決めておくことで、簡単に分類別集計することが可能ということですね！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/count-the-first-matching-cell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【エクセル】データ内の空白セルの数を数える。</title>
		<link>https://nujonoa.com/count-the-number-of-blank-cells/</link>
					<comments>https://nujonoa.com/count-the-number-of-blank-cells/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Wed, 18 Nov 2020 13:48:00 +0000</pubDate>
				<category><![CDATA[エクセル]]></category>
		<category><![CDATA[COUNTIF]]></category>
		<category><![CDATA[空白]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=7623</guid>

					<description><![CDATA[目次 データ内の空白セルの数を数える。数式紹介数式の説明 データ内の空白セルの数を数える。 データ内の空白セルの数を数えたいときに使用できる関数が COUNTBLANK関数です。 数式紹介 今回紹介する数式は、・COUN [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-18" checked><label class="toc-title" for="toc-checkbox-18">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">データ内の空白セルの数を数える。</a></li><li><a href="#toc2" tabindex="0">数式紹介</a></li><li><a href="#toc3" tabindex="0">数式の説明</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">データ内の空白セルの数を数える。</span></h2>



<p>データ内の空白セルの数を数えたいときに使用できる関数が</p>



<p>COUNTBLANK関数です。</p>



<h2 class="wp-block-heading"><span id="toc2">数式紹介</span></h2>



<p>今回紹介する数式は、<br>・COUNTBLANK<br>を用いて、</p>



<p class="is-style-sticky-red">=COUNTBLANK(データの範囲)</p>



<p class="is-style-sticky-gray">実際の使用例<br>=COUNTBLANK($B$4:$B$11)</p>



<p>と記述します。</p>



<p>結果は下記の通り、空白のセルがカウントされていると思います。<br>これは、COUUNTIFで検索値を0とした時と同様です。</p>



<p>ここで注目してもらいたいのが、0を入力した場合、「空白ではない」と判断されるところです。<br>空白も0もどちらも計算したい場合は、SUMPRODUCTを用います。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="665" height="330" src="https://nujonoa.com/wp-content/uploads/2020/11/image-10.png" alt="" class="wp-image-7624" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-10.png 665w, https://nujonoa.com/wp-content/uploads/2020/11/image-10-500x248.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-10-300x149.png 300w" sizes="(max-width: 665px) 100vw, 665px" /></figure>



<h2 class="wp-block-heading"><span id="toc3">数式の説明</span></h2>



<p>COUBTBLANK</p>



<p>の使い方は非常に簡単ですので、使えるかどうかは、<br>「知っているかどうか」です。</p>



<p>未入力項目がないかの判定をする時に使えるかと思います。</p>



<p>ただし、0を入力した場合でも空白セルとは認識されないことになりますので、</p>



<p>その場合は、下記のようなSUMPRODUCTの式をご利用ください。</p>



<p class="is-style-sticky-red">=SUMPRODUCT(((データの範囲=0)*1)</p>



<p class="is-style-sticky-gray">使用例)<br>=SUMPRODUCT(((B4:B11)=0)*1)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/count-the-number-of-blank-cells/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【エクセル】閾値より大きいセルをカウントする</title>
		<link>https://nujonoa.com/count-values-greater-than-the-threshold/</link>
					<comments>https://nujonoa.com/count-values-greater-than-the-threshold/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Tue, 17 Nov 2020 13:34:14 +0000</pubDate>
				<category><![CDATA[エクセル]]></category>
		<category><![CDATA[COUNTIF]]></category>
		<category><![CDATA[閾値]]></category>
		<category><![CDATA[未満]]></category>
		<category><![CDATA[以上]]></category>
		<category><![CDATA[より大きい]]></category>
		<category><![CDATA[以下]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=7620</guid>

					<description><![CDATA[目次 閾値より大きいセルをカウントする数式紹介数式の説明 閾値より大きいセルをカウントする 閾値より大きいセルの数をカウントする方法は様々ありますが、一番簡単なのが、COUNTIFを使う方法です。 少々記述の仕方が特殊で [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-20" checked><label class="toc-title" for="toc-checkbox-20">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">閾値より大きいセルをカウントする</a></li><li><a href="#toc2" tabindex="0">数式紹介</a></li><li><a href="#toc3" tabindex="0">数式の説明</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">閾値より大きいセルをカウントする</span></h2>



<p>閾値より大きいセルの数をカウントする方法は様々ありますが、<br>一番簡単なのが、COUNTIFを使う方法です。</p>



<p>少々記述の仕方が特殊ですが、紹介していきたいと思います。</p>



<h2 class="wp-block-heading"><span id="toc2">数式紹介</span></h2>



<p>今回紹介する数式は、<br>・COUNTIF<br>を用いて、</p>



<p class="is-style-sticky-red">=COUNTIF(データの範囲,">=閾値")</p>



<p class="is-style-sticky-gray">実際の使用例<br>=COUNTIF($B$4:$B$8,">=30")</p>



<p>と記述します。</p>



<p>結果は下記の通り、各閾値より大きい値がカウントされていると思います。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="663" height="326" src="https://nujonoa.com/wp-content/uploads/2020/11/image-9.png" alt="" class="wp-image-7621" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-9.png 663w, https://nujonoa.com/wp-content/uploads/2020/11/image-9-500x246.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-9-300x148.png 300w" sizes="(max-width: 663px) 100vw, 663px" /></figure>



<h2 class="wp-block-heading"><span id="toc3">数式の説明</span></h2>



<p>一般的にCOUNTIFでは、「特定の値と同じ」セルの数を数えますが、<br>不等号を用いることで、閾値に対して判別することが可能です。</p>



<p>今回の式では、">="を用いましたが、<br>下記の通り、不等号を変えることで様々な対応ができます。</p>



<p class="is-style-sticky-red">以上<br>=COUNTIF(データの範囲,">=閾値")<br>以下<br>=COUNTIF(データの範囲,"&lt;=閾値")<br>より大きい<br>=COUNTIF(データの範囲,">閾値")<br>未満<br>=COUNTIF(データの範囲,"&lt;閾値")</p>



<p>間の数を判断したい場合、上記の式を組み合わせて、</p>



<p class="is-style-sticky-gray">50以上70未満<br>=COUNTIF(データの範囲,">=50")-COUNTIF(データの範囲,">=70")</p>



<p>と記述することで、間も簡単に計算することができます。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/count-values-greater-than-the-threshold/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
