ไปยังเนื้อหาหลัก

 วิธีใช้การตรวจสอบข้อมูลหลายรายการในเซลล์เดียวในแผ่นงาน Excel

ในแผ่นงาน Excel การใช้การตรวจสอบข้อมูลเดียวกับเซลล์อาจเป็นเรื่องปกติสำหรับเรา แต่คุณเคยพยายามใช้การตรวจสอบข้อมูลหลายรายการในเซลล์เดียวหรือไม่? บทความนี้ฉันจะพูดถึงตัวอย่างต่างๆสำหรับการแก้ปัญหานี้ใน Excel

ใช้การตรวจสอบข้อมูลหลายรายการในเซลล์เดียว (ตัวอย่างที่ 1)

ใช้การตรวจสอบข้อมูลหลายรายการในเซลล์เดียว (ตัวอย่างที่ 2)

ใช้การตรวจสอบข้อมูลหลายรายการในเซลล์เดียว (ตัวอย่างที่ 3)


ใช้การตรวจสอบข้อมูลหลายรายการในเซลล์เดียว (ตัวอย่างที่ 1)

ตัวอย่างเช่นฉันต้องการตั้งค่าการตรวจสอบความถูกต้องของข้อมูลให้กับเซลล์ด้วยเกณฑ์เหล่านี้: หากป้อนตัวเลขจะต้องน้อยกว่า 100 หากป้อนข้อความจะต้องอยู่ในรายการตั้งแต่ D2 ถึง D7 ดังภาพหน้าจอต่อไปนี้:

1. เลือกเซลล์ที่คุณต้องการใช้การตรวจสอบข้อมูลหลายรายการจากนั้นคลิก ข้อมูล > การตรวจสอบข้อมูล > การตรวจสอบข้อมูลดูภาพหน้าจอ:

2. ใน การตรวจสอบข้อมูล ภายใต้ การตั้งค่า ทำตามขั้นตอนต่อไปนี้:

(1. ) เลือก ประเพณี จาก อนุญาต รายการแบบหล่นลง

(2. ) ป้อนสูตรนี้: =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) เข้าไปใน สูตร กล่องข้อความ.

หมายเหตุ: ในสูตรข้างต้น A2 คือเซลล์ที่คุณต้องการใช้การตรวจสอบข้อมูล C2 และ D2: D7 เป็นเกณฑ์ที่คุณต้องใช้ในการตรวจสอบความถูกต้องของข้อมูลตาม

3. จากนั้นคลิก OKนับจากนี้เป็นต้นไปเฉพาะค่าที่ตรงกับเกณฑ์เท่านั้นที่สามารถป้อนลงในเซลล์ได้หากไม่เป็นเช่นนั้นกล่องข้อความเตือนจะปรากฏขึ้นเพื่อเตือนคุณโปรดดูภาพหน้าจอ:


ใช้การตรวจสอบข้อมูลหลายรายการในเซลล์เดียว (ตัวอย่างที่ 2)

ในตัวอย่างนี้ฉันจะอนุญาตเฉพาะข้อความ "Kutools for Excel" หรือวันที่ระหว่าง 12/1/2017 ถึง 12/31/2017 สามารถป้อนลงในเซลล์เฉพาะดังภาพด้านล่างที่แสดง ในการแก้ปัญหานี้โปรดทำดังนี้:

1 ไปที่ การตรวจสอบข้อมูล กล่องโต้ตอบและในกล่องโต้ตอบโปรดดำเนินการดังต่อไปนี้:

(1. ) คลิก การตั้งค่า แท็บ;

(2. ) เลือก ประเพณี ตัวเลือกจาก อนุญาต รายการแบบหล่นลง

(3. ) พิมพ์สูตรนี้: =OR(A2=$C$2,AND(A2>=DATE(2017,12,1), A2<=DATE(2017,12,31))) เข้าไปใน สูตร กล่องข้อความ.

หมายเหตุ: ในสูตรข้างต้น A2 คือเซลล์ที่คุณต้องการใช้การตรวจสอบข้อมูล C2, 2017,12,1 และ 2017,12,31 เป็นเกณฑ์ที่คุณต้องใช้ในการตรวจสอบความถูกต้องของข้อมูลตาม

2. จากนั้นคลิก OK ตอนนี้อนุญาตให้พิมพ์เฉพาะค่าที่ตรงกับเกณฑ์เท่านั้นส่วนอื่น ๆ จะถูก จำกัด ตามภาพหน้าจอต่อไปนี้:


ใช้การตรวจสอบข้อมูลหลายรายการในเซลล์เดียว (ตัวอย่างที่ 3)

ตัวอย่างที่สามฉันต้องการให้สตริงข้อความเริ่มต้นด้วย“ KTE” หรือ“ www” และหากขึ้นต้นด้วย“ KTE” จะอนุญาตให้ใช้อักขระได้เพียง 6 ตัวเท่านั้น หากขึ้นต้นด้วย“ www” อนุญาตได้เพียง 10 อักขระโปรดดูภาพหน้าจอ:

สูตรต่อไปนี้ในการตรวจสอบข้อมูลสามารถช่วยคุณจัดการกับมันได้

1. ไปที่ การตรวจสอบข้อมูล ในกล่องโต้ตอบโปรดดำเนินการดังต่อไปนี้:

(1. ) คลิก การตั้งค่า แท็บ;

(2. ) เลือก ประเพณี ตัวเลือกจาก อนุญาต รายการแบบหล่นลง

(3. ) พิมพ์สูตรนี้: =OR(AND(LEFT(A2,3)="KTE",LEN(A2)=6),AND(LEFT(A2,3)="www",LEN(A2)=10)) เข้าไปใน สูตร กล่องข้อความ.

หมายเหตุ: ในสูตรข้างต้น A2 คือเซลล์ที่คุณต้องการใช้การตรวจสอบข้อมูลและคุณสามารถเปลี่ยนเกณฑ์ในสูตรเป็นของคุณเองได้

2. จากนั้นคลิก OK และตอนนี้เฉพาะค่าข้อความที่ตรงกับเกณฑ์ที่คุณระบุเท่านั้นที่ได้รับอนุญาตให้ป้อนดูภาพหน้าจอ:

หมายเหตุ: อาจมีเกณฑ์การตรวจสอบข้อมูลอื่น ๆ ที่จำเป็นต้องใช้คุณสามารถสร้างสูตรของคุณเองสำหรับเกณฑ์ต่างๆได้ตามที่คุณต้องการ

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
Comments (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi,
I am capturing department (10 departments), rating (5,4,3,2 & 1)and reward type criteria (X, Y and Z) of which i calculate the overall callibration based on certain %. Eg. i have 10 departments having each department 15-20 employees. Now i need a formula wherein in the table against the particular department, lets say department1 to populate the % of employees (only with rating 5 and criteria X) against the total employee of (criteria X and Z).
This comment was minimized by the moderator on the site
I have data in two different columns and i have to apply this with two different criteria. For example, first criteria shows result if a particular cell contains a text "Highlighter" and second criteria show when the cell contain text "Pointer".
Highlighter test results are different than the pointer results and we make separate validation of both data. Is this possible to extract the validation of each criteria in a single cell with no overlapping?
This comment was minimized by the moderator on the site
Hey I want a parent child relationship sort of multiple drop down lists.
For example, if in column one some selects 'a' among the list of a, b & c
Then in the second column the child category of 'a' which is x, y & z should appear
How can that be done?
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Hi Team, I failed to build example no.1. I copied and pasted the formula:  =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) and failed. Where is the bug ? Can you please assist ? THX a lot.
This comment was minimized by the moderator on the site
Hello Frank,
Glad to help. The reason why the data validation failed is that you probably didn't choose the data validation cell range. Please select the cell range first (say A2:A10), then click Data > Data Validation > Data Validation to input the formula =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1). Please see the screenshots I uploaded here. Hope it can solve your problem. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
How can I apply a data validation to multiple columns?
This comment was minimized by the moderator on the site
Hello Fabian,To apple a data validation to multiple columns, the trick is almost identical to the ways we mentioned above. The most important thing is that you select the columns first, then you can set up the rules in the Data Validation dialog box. Plesase have a try. Any question, please feel free to contact us. Have a nice day.Sincerely,Mandy
This comment was minimized by the moderator on the site
i am confuse
This comment was minimized by the moderator on the site
Hi,
I need to validate multiple columns before entering a value into cell. please find my requirement below,
I have 3 columns for example,

A1-Total Credit limit (Mandatory field)
Should have a minimum amount of 100 and multiples of 100:
=AND(ISNUMBER(A1),A1>=100, MOD(A1,100)=0) - Solved!
B1- Weekly Credit limit (Optional filed)
User should be able to input a value only when A1 is filled, Should not be greater than A1, Minimum amount 100 and multiples of 100
=AND(A1<>"",ISNUMBER(B1),B1<=A1, MOD(B1,100=0) - Solved!
C1-Daily Credit limit (Optional field)
User should be able to input a value only when A1 is filled, Should not be greater than A1&B1, Minimum amount 100 and multiples of 100

I need to add following validation, Please Help
I have to check if A1 is filled or not, then C1 shouldn't be greater than A1 and C1 min value should be 100 and multiples of 100 - I have answer to this
How can add a validation on B1 because B1 is optional it can have value and cannot. so if there's a value I have to make sure C1 is not greater than B1 else ignore B1?

How can i have this in data validation?

Thanks once again for the help
This comment was minimized by the moderator on the site
how can I add another Data validation function with this list function. for example I added a list of "yes" and "no". but I also want to add an OR function to this so that if "yes" is selected in one column then others only have to be "no".
This comment was minimized by the moderator on the site
Is it possible to apply data validation on the calcuated column attribute?
This comment was minimized by the moderator on the site
i'm looking for the ability to have a data validation which allows the user to select multiple choices. I.e. the list pops up and user can select Apple, grape, and/or banana. If they select all three, it shows in cell as: "apple, grade, banana". if only 1: "grape" etc... any ideas?
This comment was minimized by the moderator on the site
Hello, jeffe,
Maybe the below article can help you to deal with your problem, please check it:
https://www.extendoffice.com/documents/excel/2448-excel-drop-down-list-multiple-selection.html
This comment was minimized by the moderator on the site
Any idea how to have multiple data validation and a drop down. Drop down uses "List" and this example uses "Custom". Basically if the correct data is present in another column, I want the drop down to be able to be selected to input data. Otherwise if the dropdown is selected the error message appears.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations