<?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>條件驗證 &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/%E6%A2%9D%E4%BB%B6%E9%A9%97%E8%AD%89/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Thu, 12 Aug 2021 02:03:41 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>條件驗證 &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation</title>
		<link>https://noter.tw/9117/excel-filter-and-validation/</link>
					<comments>https://noter.tw/9117/excel-filter-and-validation/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Thu, 12 Aug 2021 04:30:00 +0000</pubDate>
				<category><![CDATA[技巧分享]]></category>
		<category><![CDATA[其他]]></category>
		<category><![CDATA[資料驗證]]></category>
		<category><![CDATA[Data Validation]]></category>
		<category><![CDATA[篩選器]]></category>
		<category><![CDATA[下拉選單]]></category>
		<category><![CDATA[條件驗證]]></category>
		<category><![CDATA[輸入限制]]></category>
		<category><![CDATA[快速搜尋]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[快速篩選]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[過濾器]]></category>
		<category><![CDATA[過濾資料]]></category>
		<guid isPermaLink="false">https://noter.tw/?p=9117</guid>

					<description><![CDATA[<p>小蛙又來更新 Excel 系列了，用到越多 Excel 進行資料處理，越能感受到 Excel 的強大，而且許多功能 Excel 跟 Google 試算表 都通用 (學一次就可以通吃超划算的)，小蛙記錄&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/9117/excel-filter-and-validation/" data-wpel-link="internal">【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>小蛙又來更新 <a href="https://noter.tw/?s=excel" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Excel 系列</a>了，用到越多 Excel 進行資料處理，越能感受到 Excel 的強大，而且許多功能 Excel 跟 <a href="https://www.google.com.tw/intl/zh-TW/sheets/about/" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">Google 試算表<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 都通用 (學一次就可以通吃超划算的)，小蛙記錄的這些都還是新手級幼幼班，但發現這些功能的時候還是覺得很開心！這篇文章要記錄使用 Excel 建立篩選器 (Filter) 及使用資料驗證 Validation 的方法。</p>



<span id="more-9117"></span>



<h2 class="para wp-block-heading">Excel 資料驗證 Validation</h2>



<p>Excel 資料驗證從字面上很難跟下拉式選單聯想在一起，頂多就是在特定儲存格內輸入不符合的格式會跳出錯誤，但 Excel 的資料驗證功能很強大，如果將儲存格驗證準則設定成清單，還會自動加上下拉選單的功能，非常方便。</p>



<p>下面的範例是小蛙想要在居住縣市的地方進行資料驗證，而驗證的內容為右邊的「縣市」I 欄，找到上方的「資料」頁籤 (1)，接著框選要進行資料驗證的範圍 (2)，再來找「資料驗證」(3) 用力點下去</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLWT4REmBfMQQM3Co2hYtGRXI9nqm4nE5Yapye_shQZlM11KjjUpSUza89l7qbYkV1xWW-VE0chA-CNamVI4cik5cR4tSHDMp1KvUdsTf7AtDwoozZzDvLduiv0ubYOuAJjq1QZjXje7qvTEXprkf1mOhQ=w610-h718-no?authuser=3" alt="Excel Data Validation 1" title="【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation"></figure></div>



<p>開啟的視窗裡面，儲存格內允許，這邊選擇清單，因為我們要讓使用者從固定的縣市裡面挑選，不讓輸入改用挑選的原因也很顯而易見，每個人習慣不同，有的輸入 &#8220;台北市&#8221;，有的則是 &#8220;臺北市&#8221;，如果可以固定讓使用者挑選，後期可以省掉很多清理資料的麻煩</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLV572AwXfqTj3tp8Pep7LfLAE5nI5R7XipYnNM1xnHQ-P89JWqHNeXx4u7M359U_H2mGHzfYC5VOUAx9BhcnBIZfXj0aybteCigF_kIjMx9qUiIn1MnCJ6riEFayaYHJB0qgoleNnqH3F613wU7tGwgTw=w399-h364-no?authuser=3" alt="Excel Data Validation 2" title="【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation"></figure></div>



<p>接著選擇來源，可以自己輸入欄位，也可以直接用挑選的，選完後點選右側小圖示或 Enter 結束選取</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLURnTzLzzDe3uU6xdx83vltOy3WQ7YXWmxiRaLEBlmoEl8wmEhlhSFF5YsEQBF-Gt65MbpbBsQpMdmN1WTMFdCeurC6WT4nFsnM1Xu3qK4_8Tnx1i-juIJ8GtACIaSlySCVCgM1QTO6notykp5iUO0UXw=w405-h637-no?authuser=3" alt="Excel Data Validation 3" title="【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation"></figure></div>



<p>回到資料驗證視窗，點擊確定</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXWK24Ry5_QI4DDskuMfNF5Hv642_4-znrTTtetmLP-9dEMjqDUz63LxB3R_8GhEl7eeLV9iSBi4TjKVRt0HiJeVeQ2BhQlrF9wOXY6iaR_8YJXOhYixRo3jKAywdYGyD78TaXG_U5zNDnFsyl71w7x0w=w399-h363-no?authuser=3" alt="Excel Data Validation 4" title="【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation"></figure></div>



<p>可以看到居住縣市下方都出現一個往下的箭頭，點了之後可以從這些清單裡面挑選</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXo_i4uYwpUuSBxziCDTXDxG3365DYvFYtNadRIYNMxVHn7r1Y3jgAl3KTUIpAkDYZCViYYkZuAh42DtqBg9O4CFUTj_wEPrupneaXAzRHqvKLyniuIvRQ8ttmZXmb1jfQqHyh15d2A-BIS6K3QI28mpg=w240-h202-no?authuser=3" alt="Excel Data Validation 5" title="【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation"></figure></div>



<p>原本的儲存格也還是可以透過輸入的方式來加入資料，不過如果遇到提到 台北市 的例子，Excel 在驗證的資料內找不到許可值的話，即跳出錯誤訊息提示內容有誤</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXAKEsXVfltsZrW3GIIxzlZY4Mu8TTKFU-EgdSng6tTnlqUrVyJN-ipT5yMJ6ZebDFuGC7pW_7yMjOF1hr9i94yizDjMaDJfg-KQTe9YHXT-WIxFxNUzzWuZ05vDlTAFhAeW9n-lSTxipWmuMePqtyCQw=w387-h209-no?authuser=3" alt="Excel Data Validation 6" title="【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation"></figure></div>



<p>其他資料驗證格式還有整數、實數、日期、時間、文字長度 &#8230; 等等的，都可以去玩玩看喔！</p>



<h2 class="para wp-block-heading">Excel 篩選器 Filter</h2>



<p>Excel 篩選器的功能就是可以在最上面一列加上一個下拉小箭頭，點了小箭頭之後，可以自動根據選擇的條件對該欄位的資料做篩選，例如只顯示某些值的資料。</p>



<p>接續剛剛的例子，小蛙把所有人的居住縣市資料都填上了，希望可以在該欄位上加入篩選器（就是快速搜尋/過濾的意思）功能，選中要加入篩選器的欄位 (1)，進入資料頁籤 (2) 後選擇 篩選 (3)</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLX75djhuPKoinRpwWlB0Jh1__dnMmPQUZ67E2-iI4SAGxc_qXJvcBD9Y6r9EdlwF2bC4HDHrYdV-RJCSs5bv8aePIMEywZT6XPKzlqwSnPFbEFCBwjk6Ksv92I6pHlRrr6rjQeqtmGBrsT4j7u-hOV1Jw=w381-h355-no?authuser=3" alt="Excel Filter 1" title="【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation"></figure></div>



<p>表頭處出現了往下的箭頭，點擊開啟篩選視窗，可以對欄位做排序及文字篩選，小蛙這邊勾選址顯示苗栗縣的資料</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLWjZQGjBy5WAefY-gfA-9xY7RWJEL8gZ845R4EmqLB_-2XvoHuDo-ZUNv2rxpJ1MM_t8_CqIr8WtErQiQCOeWKJZHvvxm33qcZzK4g4cw0sR7EzV2utccvUTCs9wn7MXfq__32Y7Gh9JizXfTXVpwMrNw=w287-h350-no?authuser=3" alt="Excel Filter 2" title="【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation"></figure></div>



<p>回到 Excel 可以看到只剩住在苗栗的 阿七 跟 山巴 囉！</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLVablq24hIZ9ywB6FzYkDmn3PG-RVNaZViwMLvgynOHtpyNN_aGc9f0D_KNVIgWbZDru3TMA1k1eFfiXCwY1vCC9Bd5fOO_kc-7a9TZjNeVoeYiEGNkL_vpk3jLycDfhVQhlJ1KLyYZZzCO5Wz48r-Keg=w219-h101-no?authuser=3" alt="Excel Filter 3" title="【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation"></figure></div>



<p><strong>Excel 相關文章：</strong></p>



<ul class="my-li bg-darkblue wp-block-list"><li><a href="https://noter.tw/9117/excel-filter-and-validation/" data-wpel-link="internal">加入篩選器及下拉選單 (資料驗證)</a></li><li><a href="https://noter.tw/9063/excel-auto-search-and-fill-data-by-vlookup-index-match/" data-wpel-link="internal">搜尋表格 填入資料 強大的 VLOOKUP, INDEX, MATCH</a></li><li><a href="https://noter.tw/9061/split-a-excel-to-files/" data-wpel-link="internal">分拆 Excel 成多個檔案 ( Split A Excel to Files)</a></li><li><a href="https://noter.tw/6550/excel-%e4%bd%bf%e7%94%a8-poi-%e8%ae%80%e5%8f%96%e6%96%87%e5%ad%97%e6%a0%bc%e5%bc%8f%e6%97%a5%e6%9c%9f%e5%8d%bb%e8%ae%8a%e6%88%90%e6%95%b8%e5%ad%97%e7%9a%84%e5%95%8f%e9%a1%8c/" data-wpel-link="internal">Excel 使用 POI 讀取文字格式日期卻變成數字的問題</a></li><li><a href="https://noter.tw/4300/java-%e8%ae%80%e5%8f%96-excel-%e6%96%87%e4%bb%b6xls-xlsx-%e4%bd%bf%e7%94%a8-apache-poi/" data-wpel-link="internal">Java 讀取 Excel 文件(xls, xlsx) – 使用 Apache POI</a></li><li><a href="https://noter.tw/2711/oracle-%e5%8c%af%e5%85%a5%e5%8c%af%e5%87%ba-excel-%e9%80%8f%e9%81%8e-sql-developer/" data-wpel-link="internal">Oracle 匯入/匯出 Excel (透過 SQL Developer)</a></li><li><a href="https://noter.tw/1732/jsp%e5%b0%87%e8%b3%87%e6%96%99%e5%8c%af%e5%87%ba%e6%88%90excel%e7%9b%b4%e6%8e%a5%e4%b8%8b%e8%bc%89-by-jexcelapi-jxl/" data-wpel-link="internal">JSP將資料匯出成Excel直接下載 by JExcelApi (jxl)</a></li><li><a href="https://noter.tw/1569/java-excel-jxl/" data-wpel-link="internal">Java + Excel = JXL</a></li><li><a href="https://noter.tw/119/ncr-%e8%99%95%e7%90%86%e6%96%b9%e5%bc%8f%ef%bc%9ajava-vba/" data-wpel-link="internal">NCR &amp;#xxxxx; 處理方式：Java &amp; VBA</a></li></ul>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/9117/excel-filter-and-validation/" data-wpel-link="internal">【Excel, Google Sheets】加入篩選器 Filter 及 資料驗證 Validation</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/9117/excel-filter-and-validation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
