<?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%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9/feed/" rel="self" type="application/rss+xml" />
	<link>https://nujonoa.com</link>
	<description>人生に役立つデータ集</description>
	<lastBuildDate>Tue, 23 Apr 2024 07:03:57 +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>【完全無料】スプレッドシートでコールセンター受付システムを作成してみた！</title>
		<link>https://nujonoa.com/%e3%80%90%e5%ae%8c%e5%85%a8%e7%84%a1%e6%96%99%e3%80%91%e3%82%b9%e3%83%97%e3%83%ac%e3%83%83%e3%83%89%e3%82%b7%e3%83%bc%e3%83%88%e3%81%a7%e3%82%b3%e3%83%bc%e3%83%ab%e3%82%bb%e3%83%b3%e3%82%bf%e3%83%bc/</link>
					<comments>https://nujonoa.com/%e3%80%90%e5%ae%8c%e5%85%a8%e7%84%a1%e6%96%99%e3%80%91%e3%82%b9%e3%83%97%e3%83%ac%e3%83%83%e3%83%89%e3%82%b7%e3%83%bc%e3%83%88%e3%81%a7%e3%82%b3%e3%83%bc%e3%83%ab%e3%82%bb%e3%83%b3%e3%82%bf%e3%83%bc/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Mon, 15 Apr 2024 03:00:00 +0000</pubDate>
				<category><![CDATA[google spreadsheet]]></category>
		<category><![CDATA[QUERY]]></category>
		<category><![CDATA[データベース]]></category>
		<category><![CDATA[顧客情報]]></category>
		<category><![CDATA[DB]]></category>
		<guid isPermaLink="false">https://nujonoa.com/?p=24180</guid>

					<description><![CDATA[目次 【完全無料】スプレッドシートでコールセンター受付システムを作成してみた！システムサンプルファイルダウンロードできることを画像で説明！このコールセンター受付システムのすごいところ使用した関数、GASのコードなど。まと [&#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-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">【完全無料】スプレッドシートでコールセンター受付システムを作成してみた！</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">使用した関数、GASのコードなど。</a></li><li><a href="#toc7" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">【完全無料】スプレッドシートでコールセンター受付システムを作成してみた！</span></h2>



<p class="is-style-question-box">完全無料のスプレッドシートを用いてコールセンターの受付システムは構築できるのか？？？</p>



<p>ということで、顧客情報のデータベースを作成してみました！</p>



<p>結果として、</p>



<p class="is-style-alert-box">・プルダウンをシートの項目と連携可能<br>・gasで計算した結果も含め記載内容をスプレッドシートに転載<br>・メール送付機能あり<br>・サーバーレス。<br>・ウェブアプリで同時書き込み可能<br>・自動でかぶらない案件番号作成可能<br>・重複確認機能あり<br>⇒<span class="marker-animation-2071">これだけできて無料！！！</span></p>



<p>の、素晴らしいものができてしまったので、顧客DBに引き続き、、公開したいと思います。</p>



<p><s><span class="marker-animation-2074">こちらも正直、10万円以上の価値があると思います。</span></s></p>



<p>是非参考にしてみてください！！</p>



<h2 class="wp-block-heading"><span id="toc2">システム</span></h2>



<p>ウェブアプリのシステムは、下記リンクから参照ください。</p>




<a rel="noopener" target="_blank" href="https://script.google.com/macros/s/AKfycbw5jTKbn0YCHS2HAoMPoB7YqxU3QcPz5J4fXrfbJtdwDJPyger2KQvZUck85hvN_QRV/exec" title="&#12467;&#12540;&#12523;&#12475;&#12531;&#12479;&#12540;&#21463;&#20184;&#12471;&#12473;&#12486;&#12512;" class="blogcard-wrap external-blogcard-wrap a-wrap cf"><div class="blogcard external-blogcard eb-right cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img decoding="async" src="https://s.wordpress.com/mshots/v1/https%3A%2F%2Fscript.google.com%2Fmacros%2Fs%2FAKfycbw5jTKbn0YCHS2HAoMPoB7YqxU3QcPz5J4fXrfbJtdwDJPyger2KQvZUck85hvN_QRV%2Fexec?w=160&#038;h=90" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="160" height="90" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">&#12467;&#12540;&#12523;&#12475;&#12531;&#12479;&#12540;&#21463;&#20184;&#12471;&#12473;&#12486;&#12512;</div><div class="blogcard-snippet external-blogcard-snippet"></div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img decoding="async" src="https://www.google.com/s2/favicons?domain=https://script.google.com/macros/s/AKfycbw5jTKbn0YCHS2HAoMPoB7YqxU3QcPz5J4fXrfbJtdwDJPyger2KQvZUck85hvN_QRV/exec" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">script.google.com</div></div></div></div></a>



<p>こちらのアプリで入力した内容が、</p>



<p>⇩のスプレッドシートに</p>



<p>反映される形になります。一度適当に入力後、この<a rel="noopener" target="_blank" href="https://docs.google.com/spreadsheets/d/1PKZSiaLNQX9aXdnZ2eL0fxE6BTTzNqyMCmJm8OkrSOU/edit#gid=1103047838">スプレッドシート<span class="fa fa-external-link external-icon anchor-icon"></span></a>を見てください。</p>



<iframe  width=900 height=400 src="https://docs.google.com/spreadsheets/d/e/2PACX-1vT1j8RuslcTHbfPLjnltTMR7pbeSgeKGnmimzZNVpoeBdD6rSvzd_RAkihOFH24taPiAX7tSRvF0Yo4/pubhtml?gid=1103047838&amp;single=true&amp;widget=true&amp;headers=false"></iframe>



<p><a rel="noopener" target="_blank" href="https://docs.google.com/spreadsheets/d/1PKZSiaLNQX9aXdnZ2eL0fxE6BTTzNqyMCmJm8OkrSOU/edit#gid=1103047838">コールセンターシステムのスプレッドシート<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>



<h2 class="wp-block-heading"><span id="toc3">サンプルファイルダウンロード</span></h2>



<p>サンプルファイルのダウンロードは下記から行ってください。</p>



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



<p>コピーしたうえで、</p>



<p>①Apps Script</p>



<figure class="wp-block-image size-full"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2024/04/image-4.png"><img fetchpriority="high" decoding="async" width="792" height="235" src="https://nujonoa.com/wp-content/uploads/2024/04/image-4.png" alt="" class="wp-image-24191" srcset="https://nujonoa.com/wp-content/uploads/2024/04/image-4.png 792w, https://nujonoa.com/wp-content/uploads/2024/04/image-4-500x148.png 500w, https://nujonoa.com/wp-content/uploads/2024/04/image-4-300x89.png 300w, https://nujonoa.com/wp-content/uploads/2024/04/image-4-768x228.png 768w" sizes="(max-width: 792px) 100vw, 792px" /></a></figure>



<p>②ウェブアプリ.gsの★★★★★をスプレッドシートのIDにおきかえて</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
var spreadsheetId = '★★★★★';//ここにスプレッドシートのIDを入れてください。
</pre></div>


<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2024/04/image-5.png"><img loading="lazy" decoding="async" width="900" height="244" src="https://nujonoa.com/wp-content/uploads/2024/04/image-5-900x244.png" alt="" class="wp-image-24192" srcset="https://nujonoa.com/wp-content/uploads/2024/04/image-5-900x244.png 900w, https://nujonoa.com/wp-content/uploads/2024/04/image-5-500x135.png 500w, https://nujonoa.com/wp-content/uploads/2024/04/image-5-300x81.png 300w, https://nujonoa.com/wp-content/uploads/2024/04/image-5-768x208.png 768w, https://nujonoa.com/wp-content/uploads/2024/04/image-5.png 934w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<figure class="wp-block-image size-full"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2024/04/image-7.png"><img loading="lazy" decoding="async" width="765" height="30" src="https://nujonoa.com/wp-content/uploads/2024/04/image-7.png" alt="" class="wp-image-24194" srcset="https://nujonoa.com/wp-content/uploads/2024/04/image-7.png 765w, https://nujonoa.com/wp-content/uploads/2024/04/image-7-500x20.png 500w, https://nujonoa.com/wp-content/uploads/2024/04/image-7-300x12.png 300w" sizes="(max-width: 765px) 100vw, 765px" /></a></figure>



<p>※IDはこの部分になります。</p>



<p>③デプロイから、ウェブアプリとしてデプロイしてください。<br>　すると、URLが発行され、ウェブアプリが使えるようになります。</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2024/04/image-8.png"><img loading="lazy" decoding="async" width="900" height="635" src="https://nujonoa.com/wp-content/uploads/2024/04/image-8-900x635.png" alt="" class="wp-image-24195" srcset="https://nujonoa.com/wp-content/uploads/2024/04/image-8-900x635.png 900w, https://nujonoa.com/wp-content/uploads/2024/04/image-8-500x353.png 500w, https://nujonoa.com/wp-content/uploads/2024/04/image-8-300x212.png 300w, https://nujonoa.com/wp-content/uploads/2024/04/image-8-768x542.png 768w, https://nujonoa.com/wp-content/uploads/2024/04/image-8.png 1053w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<p></p>



<h2 class="wp-block-heading"><span id="toc4">できることを画像で説明！</span></h2>



<p>まずは、できることを動画を用いて説明していきたいと思います。</p>



<p>動画を見ていただいてわかる通り、<br>①スプレッドシートの項目からプルダウン項目が選択され、<br>②順次入力<br>③入力完了すると、スプレッドシートに転機される。</p>



<figure class="wp-block-video"><video controls src="https://nujonoa.com/wp-content/uploads/2024/04/2024-04-16_14h17_41.mp4"></video></figure>



<p>という、内容になっています。</p>



<p>これが自社サーバーとかを持たず、ただただグーグルアカウントがあるだけで構築できるということになります。</p>



<p>画像で説明すると下記のイメージで、<br>①スプレッドシートの内容を変更することで、プルダウンを簡単に変更でき、<br>②プルダウンのプルダウンも作成可能です。<br>(依頼分野が、エアコンなら壊れた、冷えない、洗濯機なら水漏れなど、一つ目のプルダウンから2つ目のプルダウンが自動で絞られる。）<br>③メールアドレスを登録しておけば、メール送付も可能。</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2024/04/image-1.png"><img loading="lazy" decoding="async" width="900" height="521" src="https://nujonoa.com/wp-content/uploads/2024/04/image-1-900x521.png" alt="" class="wp-image-24185" srcset="https://nujonoa.com/wp-content/uploads/2024/04/image-1-900x521.png 900w, https://nujonoa.com/wp-content/uploads/2024/04/image-1-500x289.png 500w, https://nujonoa.com/wp-content/uploads/2024/04/image-1-300x174.png 300w, https://nujonoa.com/wp-content/uploads/2024/04/image-1-768x445.png 768w, https://nujonoa.com/wp-content/uploads/2024/04/image-1-1536x889.png 1536w, https://nujonoa.com/wp-content/uploads/2024/04/image-1-120x68.png 120w, https://nujonoa.com/wp-content/uploads/2024/04/image-1.png 1731w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<p>④メールは下記の通り、記載した内容を送付</p>



<figure class="wp-block-image size-full"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2024/04/image-2.png"><img loading="lazy" decoding="async" width="330" height="532" src="https://nujonoa.com/wp-content/uploads/2024/04/image-2.png" alt="" class="wp-image-24186" srcset="https://nujonoa.com/wp-content/uploads/2024/04/image-2.png 330w, https://nujonoa.com/wp-content/uploads/2024/04/image-2-300x484.png 300w" sizes="(max-width: 330px) 100vw, 330px" /></a></figure>



<p>⑤電話番号からデータの重複を確認し、重複がある場合は、<br>自動で以前記載した内容が、重複欄に表示されるようになっています。</p>



<figure class="wp-block-image size-full"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2024/04/image-3.png"><img loading="lazy" decoding="async" width="678" height="842" src="https://nujonoa.com/wp-content/uploads/2024/04/image-3.png" alt="" class="wp-image-24187" srcset="https://nujonoa.com/wp-content/uploads/2024/04/image-3.png 678w, https://nujonoa.com/wp-content/uploads/2024/04/image-3-500x621.png 500w, https://nujonoa.com/wp-content/uploads/2024/04/image-3-300x373.png 300w" sizes="(max-width: 678px) 100vw, 678px" /></a></figure>



<h2 class="wp-block-heading"><span id="toc5">このコールセンター受付システムのすごいところ</span></h2>



<p>このコールセンター受付システムのすごいところは、</p>



<p>①なんといっても無料。<br>②データがスプレッドシートに残るのでその後の処理が簡単。<br>③Gメールも送れる。<br>④メールのやり取りを、このデータに連携することが可能。</p>



<p>などなど本当に完全無料でできます。。<br>ビジネスなど月額料金を払わなくてもできてしまいます。</p>



<p>怖いです。ほんと。</p>



<h2 class="wp-block-heading"><span id="toc6">使用した関数、GASのコードなど。</span></h2>



<p>順次更新していきます。</p>



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



<p>スプレッドシートを用いてウェブアプリを構築していきましたが、<br>正直言ってここまでの完成度で作成できるとは思っていませんでした。。</p>



<p>特に実際にコールセンターで使っていただいている企業さんと相談しながら作り上げたものなので、<br>かゆいところにも手が届く状態になっていると思います。<br>毎日100件以上の処理をしてもらっていますが、不具合なく運用していただいております。</p>



<p>システムにとらわれず、プルダウンの項目を増やしていったり、<br>自分で自由に変更、更新できるところが<br>かなりユーザーには嬉しい内容ではないかな？と思います。</p>



<p>エクセルではできないことが多々ありますし、<br>これから5Gで処理速度が追い付いてくると、<br>すべてスプレッドシートに置き換わる日も遠くないかもしれませんね。</p>



<p>各種DB、コールセンター受付システムの作成依頼あればお気持ち程度のお金で承りますので、<br>コメント欄(メールアドレス必須)に書き込んでいただければと思います！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/%e3%80%90%e5%ae%8c%e5%85%a8%e7%84%a1%e6%96%99%e3%80%91%e3%82%b9%e3%83%97%e3%83%ac%e3%83%83%e3%83%89%e3%82%b7%e3%83%bc%e3%83%88%e3%81%a7%e3%82%b3%e3%83%bc%e3%83%ab%e3%82%bb%e3%83%b3%e3%82%bf%e3%83%bc/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="https://nujonoa.com/wp-content/uploads/2024/04/2024-04-16_14h17_41.mp4" length="10190231" type="video/mp4" />

			</item>
		<item>
		<title>スプレッドシートのフォーマットを配布する方法！末尾にcopyを入れよう！</title>
		<link>https://nujonoa.com/how-to-expand-a-simple-spreadsheet-format/</link>
					<comments>https://nujonoa.com/how-to-expand-a-simple-spreadsheet-format/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Mon, 11 Oct 2021 14:45:59 +0000</pubDate>
				<category><![CDATA[google spreadsheet]]></category>
		<category><![CDATA[DB]]></category>
		<category><![CDATA[QUERY]]></category>
		<category><![CDATA[データベース]]></category>
		<category><![CDATA[顧客情報]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=9782</guid>

					<description><![CDATA[目次 スプレッドシートのフォーマットを配布する方法！末尾にcopyを入れよう！コピーしてもらいたい場合は、リンクの末尾に「/copy」をつける！従来の方法末尾に「/copy」をつけると スプレッドシートのフォーマットを配 [&#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">スプレッドシートのフォーマットを配布する方法！末尾にcopyを入れよう！</a></li><li><a href="#toc2" tabindex="0">コピーしてもらいたい場合は、リンクの末尾に「/copy」をつける！</a><ol><li><a href="#toc3" tabindex="0">従来の方法</a></li><li><a href="#toc4" tabindex="0">末尾に「/copy」をつけると</a></li></ol></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">スプレッドシートのフォーマットを配布する方法！末尾にcopyを入れよう！</span></h2>



<p>仕事などで、スプレッドシートを使う機会が増えてきました。</p>



<p>しかし、使い方がまだ定着してきていないこともあり、<br>エクセルのようにうまくいかないことが多いです。。</p>



<p>そこで、今回は解決方法の一つとして、</p>



<p>「フォーマット」や「テンプレート」を作成、<br>コピーして使用してもらう際の簡単な配布方法を紹介していきたいと思います<br></p>



<h2 class="wp-block-heading"><span id="toc2">コピーしてもらいたい場合は、リンクの末尾に「/copy」をつける！</span></h2>



<h3 class="wp-block-heading"><span id="toc3">従来の方法</span></h3>



<p>従来までのやり方として、下記の通り、</p>



<p>・とりあえずファイルを開いてもらい、<br>・ファイル→コピーを作成</p>



<p>という作業を行ってもらっていたと思います。</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="394" height="781" src="https://nujonoa.com/wp-content/uploads/2020/08/2020-08-09_23h24_07-3.png" alt="" class="wp-image-6679" srcset="https://nujonoa.com/wp-content/uploads/2020/08/2020-08-09_23h24_07-3.png 394w, https://nujonoa.com/wp-content/uploads/2020/08/2020-08-09_23h24_07-3-300x595.png 300w" sizes="(max-width: 394px) 100vw, 394px" /><figcaption>スプレッドシートをコピーする方法</figcaption></figure></div>



<h3 class="wp-block-heading"><span id="toc4">末尾に「/copy」をつけると</span></h3>



<p><span class="marker-animation">これに対して、末尾に 「/copy」 をつけてリンクを張ると、</span></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/1lDZu6dn6HeAfDD317Hz-X0P1_BqYOdqPAB8a-MmGRx8/edit?usp=sharing" class="btn btn-l btn-circle btn-shine">普通のリンク<span class="fa fa-external-link external-icon anchor-icon"></span></a></div>



<p>コピーをつけると、最初からコピーされる前提で開いてくれます。</p>



<div class="wp-block-cocoon-blocks-button-1 button-block"><a rel="noopener" target="_blank" href="https://docs.google.com/spreadsheets/d/1lDZu6dn6HeAfDD317Hz-X0P1_BqYOdqPAB8a-MmGRx8/copy" class="btn btn-l btn-circle btn-shine">末尾に「copy」を付けた場合<span class="fa fa-external-link external-icon anchor-icon"></span></a></div>



<p>これで、物わかりの悪いおじさんたちも、簡単にコピーを作成、<br>自分のファイルとして使うことができるようになります！！</p>



<figure class="wp-block-image size-full"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2021/10/image-2.png"><img loading="lazy" decoding="async" width="705" height="297" src="https://nujonoa.com/wp-content/uploads/2021/10/image-2.png" alt="スプレッドシートのフォーマット、テンプレートの展開()最初からコピー前提でスプレッドシートを開いてくれる" class="wp-image-9792" srcset="https://nujonoa.com/wp-content/uploads/2021/10/image-2.png 705w, https://nujonoa.com/wp-content/uploads/2021/10/image-2-500x211.png 500w, https://nujonoa.com/wp-content/uploads/2021/10/image-2-300x126.png 300w" sizes="(max-width: 705px) 100vw, 705px" /></a><figcaption>最初からコピー前提でスプレッドシートを開いてくれる</figcaption></figure>



<p>簡単ですので、ぜひ使ってみてください！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/how-to-expand-a-simple-spreadsheet-format/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>【VBA】DBフォルダ内で名前が一致するファイルを立ち上げる方法</title>
		<link>https://nujonoa.com/launch-the-files-in-the-db-folder/</link>
					<comments>https://nujonoa.com/launch-the-files-in-the-db-folder/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Thu, 28 Jan 2021 13:17:46 +0000</pubDate>
				<category><![CDATA[マクロVBA]]></category>
		<category><![CDATA[データベース]]></category>
		<category><![CDATA[フォルダ]]></category>
		<category><![CDATA[ファイル]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=8676</guid>

					<description><![CDATA[エクセルでデータベースを構築するには必須の、データベースファルダからのファイルの取り出し方を紹介していこうと思います。 目次 【VBA】DBフォルダ内で名前が一致するファイルを立ち上げる方法ファイル立ち上げプログラム紹介 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>エクセルでデータベースを構築するには必須の、<br>データベースファルダからのファイルの取り出し方を紹介していこうと思います。</p>




  <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">【VBA】DBフォルダ内で名前が一致するファイルを立ち上げる方法</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">【VBA】DBフォルダ内で名前が一致するファイルを立ち上げる方法</span></h2>



<p>エクセルでデータベースを構築しようと思うと、<br>データを格納してあるフォルダからファイルを取り出すことが第一ステップとなります。</p>



<p>そこで今回は、格納したデータの中から、<br>名前が一致したファイルを取り出す方法を紹介したいと思います。</p>



<h2 class="wp-block-heading"><span id="toc2">ファイル立ち上げプログラム紹介</span></h2>



<p>プラグラムは、下記のとおりです。<br>・イニシャルを変更してご使用ください。<br>※ダブルクリックするとコピーできます。</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: vb; title: ; notranslate">
Sub VIEW_FILE()

  Dim folderPath As Variant
  With Application.FileDialog(msoFileDialogFolderPicker)
  .InitialFileName = &quot;C:\Downloads\&quot;'←イニシャルです。変更してください。
   If .Show = 0 Then
     MsgBox &quot;キャンセルされました。&quot;
     Exit Sub
   End If
   folderPath = .SelectedItems(1)
  End With
  
    Dim fnd As String
    Dim fn As String

        fn =  &quot;*&quot; + ActiveCell + &quot;*&quot; 
        fnd = Dir(folderPath + &quot;\&quot; + fn, vbNormal)

        'ファイルがない場合
        If (fnd = &quot;&quot;) Then
             MsgBox &quot;見つかりません&quot;
             Exit Sub
        End If
        '表示
        With CreateObject(&quot;Wscript.Shell&quot;)
        
        Do While fnd &lt;&gt; &quot;&quot;

            .Run &quot;&quot;&quot;&quot; &amp; folderPath &amp; &quot;\&quot; &amp; fnd &amp; &quot;&quot;&quot;&quot;　'ファイル表示
        
           fnd = Dir '次のファイル
        Loop
        
        End With

End Sub
</pre></div>


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



<p>コードの肝は、2点で、<br>①DBフォルダを選択する</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: vb; title: ; notranslate">
 With Application.FileDialog(msoFileDialogFolderPicker)
  .InitialFileName = &quot;C:\Downloads\&quot;'←イニシャルです。変更してください。
   If .Show = 0 Then
     MsgBox &quot;キャンセルされました。&quot;
     Exit Sub
   End If
   folderPath = .SelectedItems(1)
  End With
</pre></div>


<p>②ファイルを立ち上げる</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: vb; title: ; notranslate">
        With CreateObject(&quot;Wscript.Shell&quot;)
        
        Do While fnd &lt;&gt; &quot;&quot;

            .Run &quot;&quot;&quot;&quot; &amp; folderPath &amp; &quot;\&quot; &amp; fnd &amp; &quot;&quot;&quot;&quot;　'ファイル表示
        
           fnd = Dir '次のファイル
        Loop
</pre></div>


<p>になります。<br>DBのフォルダを指定してもいいのですが、<br>少しだけ柔軟性を持たせるために①を追加しています。</p>



<p>②で、名前が一致するファイルを一つずつ開いていきます。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/launch-the-files-in-the-db-folder/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-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">【エクセル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>【完全無料】スプレッドシートで顧客DBを作成してみた！</title>
		<link>https://nujonoa.com/spreadsheet-customer-db/</link>
					<comments>https://nujonoa.com/spreadsheet-customer-db/#comments</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Thu, 19 Nov 2020 13:37:34 +0000</pubDate>
				<category><![CDATA[google spreadsheet]]></category>
		<category><![CDATA[DB]]></category>
		<category><![CDATA[QUERY]]></category>
		<category><![CDATA[データベース]]></category>
		<category><![CDATA[顧客情報]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=7672</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-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">【完全無料】スプレッドシートで顧客データベースを作成してみた！</a></li><li><a href="#toc2" tabindex="0">サンプルファイルダウンロード</a></li><li><a href="#toc3" tabindex="0">できることを画像で説明！</a></li><li><a href="#toc4" tabindex="0">このDBのすごいところ</a><ol><li><a href="#toc5" tabindex="0">①抜き出したい情報(セル)を簡単に変更可能</a></li><li><a href="#toc6" tabindex="0">②DBのリンクから簡単に詳細情報に飛べる</a></li><li><a href="#toc7" tabindex="0">③フォルダ内の全ファイル＋全シートを検索できる</a></li><li><a href="#toc8" tabindex="0">④フォルダIDを変えれば様々なDBを作成可能</a></li><li><a href="#toc9" tabindex="0"> ⑤様々な検索方法が可能</a></li></ol></li><li><a href="#toc10" tabindex="0">使用した関数、GASのコードなど。</a></li><li><a href="#toc11" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">【完全無料】スプレッドシートで顧客データベースを作成してみた！</span></h2>



<p class="is-style-question-box">完全無料のスプレッドシートを用いてどれだけのDBを作ることができるか？？</p>



<p>ということで、顧客情報のデータベースを作成してみました！</p>



<p>結果として、</p>



<p class="is-style-alert-box">・難しい操作なし。<br>・取り出したいデータを指定可能。<br>・詳細データへのリンクあり<br>・オンラインでどこでも管理可能。<br>・検索機能も付く<br>⇒<span class="marker-animation-2071">これだけできて無料！！！</span></p>



<p>の、素晴らしいものができてしまったので、、、公開したいと思います。</p>



<p><s><span class="marker-animation-2074">正直、10万円以上の価値があると思います。</span></s></p>



<p>是非参考にしてみてください！！</p>



<h2 class="wp-block-heading"><span id="toc2">サンプルファイルダウンロード</span></h2>



<p>サンプルファイルのダウンロードは下記から行ってください。</p>



<div class="wp-block-cocoon-blocks-button-1 button-block"><a rel="noopener" target="_blank" href="https://docs.google.com/spreadsheets/d/1vze2xe44afN0HhQZIU7YGhlLC6kkgVRlYtn_xr5HAsE/edit#gid=525857928" class="btn btn-m btn-circle btn-shine">サンプルファイルダウンロード<span class="fa fa-external-link external-icon anchor-icon"></span></a></div>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<p>そのままですと閲覧のみ可能になっていますので、<br>ファイル→コピーを作成で、自分のスプレッドシートにコピーを作成してください。</p>



<div class="wp-block-cocoon-blocks-toggle-box-1 toggle-wrap toggle-box block-box"><input id="toggle-checkbox-20200809233634" class="toggle-checkbox" type="checkbox"/><label class="toggle-button" for="toggle-checkbox-20200809233634">スプレッドシートをコピーする方法(クリックして開く)</label><div class="toggle-content">
<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="394" height="781" src="https://nujonoa.com/wp-content/uploads/2020/08/2020-08-09_23h24_07-3.png" alt="" class="wp-image-6679" srcset="https://nujonoa.com/wp-content/uploads/2020/08/2020-08-09_23h24_07-3.png 394w, https://nujonoa.com/wp-content/uploads/2020/08/2020-08-09_23h24_07-3-300x595.png 300w" sizes="(max-width: 394px) 100vw, 394px" /><figcaption>スプレッドシートをコピーする方法</figcaption></figure></div>
</div></div>
</div></div>



<h2 class="wp-block-heading"><span id="toc3">できることを画像で説明！</span></h2>



<p>まずは、できることを画像を用いて説明していきたいと思います。</p>



<p>①まずは、各々の担当者が、<span class="marker-animation">スプレッドシートで同じフォーマット</span>を用いて情報を管理する。<br>※サンプルでは、下記のようなデータを使用しています。</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2020/11/image-22.png"><img loading="lazy" decoding="async" width="670" height="918" src="https://nujonoa.com/wp-content/uploads/2020/11/image-22.png" alt="" class="wp-image-7673" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-22.png 670w, https://nujonoa.com/wp-content/uploads/2020/11/image-22-500x685.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-22-300x411.png 300w" sizes="(max-width: 670px) 100vw, 670px" /></a></figure>



<p>②上記のファイルをグーグルドライブの<span class="marker-animation">特定のフォルダに保存</span></p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2020/11/image-23.png"><img loading="lazy" decoding="async" width="851" height="237" src="https://nujonoa.com/wp-content/uploads/2020/11/image-23.png" alt="" class="wp-image-7674" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-23.png 851w, https://nujonoa.com/wp-content/uploads/2020/11/image-23-500x139.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-23-300x84.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-23-768x214.png 768w" sizes="(max-width: 851px) 100vw, 851px" /></a></figure>



<p>③ファルダ内にあるスプレッドシートの情報を<span class="marker-animation">1クリックですべて吸い出し、DBを作成。</span></p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2020/11/image-24.png"><img loading="lazy" decoding="async" width="900" height="514" src="https://nujonoa.com/wp-content/uploads/2020/11/image-24-900x514.png" alt="" class="wp-image-7675" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-24-900x514.png 900w, https://nujonoa.com/wp-content/uploads/2020/11/image-24-500x285.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-24-300x171.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-24-768x438.png 768w, https://nujonoa.com/wp-content/uploads/2020/11/image-24-120x68.png 120w, https://nujonoa.com/wp-content/uploads/2020/11/image-24-160x90.png 160w, https://nujonoa.com/wp-content/uploads/2020/11/image-24.png 1149w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<p>④QUERY関数を用いて、<span class="marker-animation">DBから特定の情報を検索可能</span>。</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2020/11/image-25.png"><img loading="lazy" decoding="async" width="900" height="244" src="https://nujonoa.com/wp-content/uploads/2020/11/image-25-900x244.png" alt="" class="wp-image-7676" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-25-900x244.png 900w, https://nujonoa.com/wp-content/uploads/2020/11/image-25-500x135.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-25-300x81.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-25-768x208.png 768w, https://nujonoa.com/wp-content/uploads/2020/11/image-25.png 1152w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<p>となります。</p>



<h2 class="wp-block-heading"><span id="toc4">このDBのすごいところ</span></h2>



<p>このDBのすごいところは、ありすぎて困ってしまうのですが、</p>



<p>①抜き出したい情報(セル)を簡単に変更可能<br>②DBのリンクから簡単に詳細情報に飛べる<br>③フォルダ内の全ファイル＋全シートを検索するので、シートが多いファイルでも検索可能<br>④フォルダIDを変えれば様々なDBを作成可能<br>⑤様々な検索方法が可能</p>



<p>などなど完全無料でできます。。<br>本当にすごいですグーグルさん。スプレッドシートさん。</p>



<p>ということで簡単に説明していきたいと思います。</p>



<h3 class="wp-block-heading"><span id="toc5">①抜き出したい情報(セル)を簡単に変更可能</span></h3>



<p>まずは、抜き出したい情報(セル)を簡単に変更可能なことです。</p>



<p>顧客DBでシートから名前の一覧を取ってきたい場合、<br>下記画像の通り、<span class="marker-animation">顧客DBの「参照セル」に対象のセルを入力するだけです。</span></p>



<p>下記例では、名前のデータが「セルD6」に入力されていますので、<br>参照セルにD6を入力。畑利治さんが、一覧に表示されていることがわかります。</p>



<p>同様に、「D1」が担当「D5」が名前(カナ)と、<br>このセルを変えるだけでとってきたい内容を瞬時に変えることが可能です。</p>



<figure class="wp-block-image size-large"><a rel="noopener" target="_blank" href="https://nujonoa.com/wp-content/uploads/2020/11/image-28.png"><img loading="lazy" decoding="async" width="900" height="585" src="https://nujonoa.com/wp-content/uploads/2020/11/image-28-900x585.png" alt="" class="wp-image-7683" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-28-900x585.png 900w, https://nujonoa.com/wp-content/uploads/2020/11/image-28-500x325.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-28-300x195.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-28-768x499.png 768w, https://nujonoa.com/wp-content/uploads/2020/11/image-28.png 916w" sizes="(max-width: 900px) 100vw, 900px" /></a></figure>



<p>フォーマットを変更したいとき、違うデータベースを作りたいときにも、<br>非常に簡単に作成することが可能かと思います。</p>



<h3 class="wp-block-heading"><span id="toc6">②DBのリンクから簡単に詳細情報に飛べる</span></h3>



<p>次はDBのリンクから簡単に詳細情報に飛べる点です。</p>



<p>顧客DBには対象ファイルへのリンクが作成されますので、<br>対象のデータにワンクリックで飛ぶことができます。</p>



<p>その人独自の詳細な情報などは、千差万別ですので、<br>DBだけで管理するのは難しいですが、この機能より簡単に詳細情報を見ることができます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="900" height="585" src="https://nujonoa.com/wp-content/uploads/2020/11/image-29-900x585.png" alt="" class="wp-image-7684" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-29-900x585.png 900w, https://nujonoa.com/wp-content/uploads/2020/11/image-29-500x325.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-29-300x195.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-29-768x499.png 768w, https://nujonoa.com/wp-content/uploads/2020/11/image-29.png 916w" sizes="(max-width: 900px) 100vw, 900px" /></figure>



<h3 class="wp-block-heading"><span id="toc7">③フォルダ内の全ファイル＋全シートを検索できる</span></h3>



<p>・1ファイルで1人の顧客データを持つ人もいれば、<br>・1ファイルに多数のシートをもって顧客データを管理する人<br>もいると思います。</p>



<p>また、年度ごとにフォルダ管理したい人もいると思います。</p>



<p>それらの情報を一度に検索し、DBにできるのがこのシステムになります。</p>



<p>先ほどのリンク機能もありますので、ファイルにはすぐにアクセス可能ですので、<br>煩雑になりがちな情報を一括に集約することができます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="675" height="667" src="https://nujonoa.com/wp-content/uploads/2020/11/image-30.png" alt="" class="wp-image-7685" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-30.png 675w, https://nujonoa.com/wp-content/uploads/2020/11/image-30-500x494.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-30-300x296.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-30-100x100.png 100w" sizes="(max-width: 675px) 100vw, 675px" /></figure>



<h3 class="wp-block-heading"><span id="toc8">④フォルダIDを変えれば様々なDBを作成可能</span></h3>



<p>フォルダのIDを変えることで簡単に違うDBを作成することができます。</p>



<p>フォーマットを変更し、参照セルを変え、フォルダIDを変更<br>の3ステップで簡単に新しいDBを作成することができますので、<br>だれでも自由に作成することができます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="675" height="379" src="https://nujonoa.com/wp-content/uploads/2020/11/image-31.png" alt="" class="wp-image-7687" srcset="https://nujonoa.com/wp-content/uploads/2020/11/image-31.png 675w, https://nujonoa.com/wp-content/uploads/2020/11/image-31-500x281.png 500w, https://nujonoa.com/wp-content/uploads/2020/11/image-31-300x168.png 300w, https://nujonoa.com/wp-content/uploads/2020/11/image-31-120x68.png 120w, https://nujonoa.com/wp-content/uploads/2020/11/image-31-160x90.png 160w, https://nujonoa.com/wp-content/uploads/2020/11/image-31-320x180.png 320w" sizes="(max-width: 675px) 100vw, 675px" /></figure>



<h3 class="wp-block-heading"><span id="toc9"> ⑤様々な検索方法が可能</span></h3>



<p>まとめたDBから簡単に検索(絞り込み)が可能です。</p>



<p>対象となる項目ごとに、<br>文字列　⇒　頭文字の一致、末尾の一致、含む<br>数字、日付　⇒　以上、以下、未満、より大きい、等しい、等しくない<br>で絞り込みを行うことができます。</p>



<p>下記画像では、担当者に「B」が含まれ、年齢が30歳より大きい人のデータを抜き出しました。</p>



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



<h2 class="wp-block-heading"><span id="toc10">使用した関数、GASのコードなど。</span></h2>



<p>順次更新していきます。</p>



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



<p>スプレッドシートを用いてデータベースを作成していきましたが、<br>正直言ってここまでの完成度のデータベースを作成できるとは思っていませんでした。。</p>



<p>以前会社で、データベースシステムの改修を<br>ベンダーさんに頼んだら構築で500万円以上、改修で200万以上<br>取られましたが、正直それ以上の価値があるシステムになっています。</p>



<p>特にシステムにとらわれず、自分で自由に変更、更新できるところが<br>かなりユーザーには嬉しい内容ではないかな？と思います。</p>



<p>エクセルではできないことが多々ありますし、<br>これから5Gで処理速度が追い付いてくると、<br>すべてスプレッドシートに置き換わる日も遠くないかもしれませんね。</p>



<p>各種DBの作成依頼あればお気持ち程度のお金で承りますので、<br>コメント欄(メールアドレス必須)に書き込んでいただければと思います！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/spreadsheet-customer-db/feed/</wfw:commentRss>
			<slash:comments>28</slash:comments>
		
		
			</item>
	</channel>
</rss>
