TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
Somkiat Foongkiat - Bangkok, Thailand
(eMV)
When:
18 Mar 2013 1:42 AM
Revisions:
1
Comments:
0
Options
Subscribe to Article (RSS)
Share this
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
Finding Unique List with Excel Formula (th-TH)
Finding Unique List with Excel Formula (th-TH)
Article
History
Finding Unique List with Excel Formula (th-TH)
Unique Item คือ ข้อมูลที่ไม่ซ้ำกับข้อมูลอื่น ซึ่งในกรณีที่มีการบันทึกรายการซ้ำกันไว้หลายรายการ รายการแรกของแต่ละชุดที่ซ้ำกันก็คือ Unique Item โดยใช้สูตรคล้ายกับสูตร Multiple Match เพียงมีขั้นตอนเพิ่มขึ้นอีกหนึ่งขั้นตอน
ในภาพนี้ตารางรหัส ID จาก C3:C20 มีรหัสบันทึกไว้ซ้ำกัน รหัส ID ที่เป็น Unique Item คือรหัสรายการที่ 1, 2, 3, 4, 5, 7, 10, และ 16 ซึ่งหาตัวเลขตำแหน่งรายการเหล่านี้ได้จากสูตร Array ในเซลล์ I3:I12 { =SMALL( IF(MATCH(ID&"",ID&"",0) = Num, Num), Num)} โดยสูตรนี้ต้องสร้างพร้อมกันลงทีเดียวไปในเซลล์ I3:I12 แล้วกดปุ่ม Ctrl+Shift+Enter เพื่อทำให้มีเครื่องหมายวงเล็บปีกกาปิดหัวท้ายสูตรให้เอง
Step1
: สูตร MATCH(ID&"",ID&"",0) ทำหน้าที่หาเลขตำแหน่งรายการของ ID แต่ละตัว สาเหตุที่ต้องปรับให้ใช้ ID&"" เพื่อทำให้สูตรนี้ยังใช้งานได้หากมีเซลล์ว่าง เช่น เซลล์ C20
Step2
: นำค่าจาก Step1 ไปเทียบกับเลขลำดับ Num จะพบว่าตำแหน่งรายการที่ตรงกัน หรือแสดงค่าเท่ากับ True คือตำแหน่งที่เป็น Unique Item
Step3
: เปลี่ยนค่า True จาก Step2 ให้เป็นเลขที่รายการด้วยสูตร IF(MATCH(ID&"",ID&"",0) = Num, Num)
Step4
: เรียงเลขตำแหน่งรายการที่ได้จาก Step3 ให้เรียงจากน้อยไปมากด้วยสูตร Small
เมื่อได้ตัวเลขตำแหน่งรายการที่เป็น Unique แล้วให้ใช้สูตร Index แสดงชื่อรหัส ID ต่อไป
นอกจากสูตรข้างต้นแล้ว ยังมีสูตรลัดหาชื่อรายการที่เป็น Unique หรือจะใช้คำสั่ง Data > Advanced แบบ Unique records only
เซลล์ D3 สร้างสูตร =B3 เพื่อนำรหัสรายการแรกยกมาเป็น Unique Item ไว้ก่อน จากนั้นในเซลล์ D4 ให้สร้างสูตร Array {=INDEX(ID,MATCH(0,COUNTIF($D$3:D3,ID),0))} แล้ว copy สูตรไปต่อลงไปในเซลล์ถัดไปด้านล่าง โปรดดูรายละเอียดของสูตรนี้ได้จาก
http://www.get-digital-help.com/2009/03/30/how-to-extract-a-unique-list-and-the-duplicates-in-excel-from-one-column/
Excel
,
Functions
,
somkiat foongkiat
,
th-TH
,
สมเกียรติ ฟุ้งเกียรติ
[Edit tags]
Leave a Comment
Please add 2 and 3 and type the answer here:
Post
Wiki - Revision Comment List(Revision Comment)
Wikis - Comment List