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

จะซ่อนรายการที่ใช้ก่อนหน้านี้ในรายการแบบเลื่อนลงได้อย่างไร?

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

ซ่อนรายการที่ใช้ก่อนหน้านี้ในรายการแบบเลื่อนลงด้วยคอลัมน์ตัวช่วย


ลูกศรสีฟ้าฟองขวา ซ่อนรายการที่ใช้ก่อนหน้านี้ในรายการแบบเลื่อนลงด้วยคอลัมน์ตัวช่วย

สมมติว่าคุณมีรายชื่อในคอลัมน์ A ตามภาพหน้าจอต่อไปนี้จากนั้นทำตามขั้นตอนด้านล่างทีละรายการเพื่อทำงานนี้ให้เสร็จ

doc-hide-used-ites-dropdown-list-1

1. นอกจากรายชื่อของคุณแล้วโปรดป้อนสูตรนี้ = IF (COUNTIF ($ F $ 1: $ F $ 11, A1)> = 1, "", ROW ()) ลงในเซลล์ B1 ดูภาพหน้าจอ:

doc-hide-used-ites-dropdown-list-1

หมายเหตุ: ในสูตรข้างต้น F1: F11คือช่วงเซลล์ที่คุณต้องการใส่รายการแบบเลื่อนลงและ A1 คือเซลล์ชื่อของคุณ

2. จากนั้นลากจุดจับเติมไปยังช่วงที่มีสูตรนี้และคุณจะได้ผลลัพธ์ดังต่อไปนี้:

doc-hide-used-ites-dropdown-list-1

3. และใช้สูตรในคอลัมน์ C ต่อไปโปรดพิมพ์สูตรนี้: =IF(ROW(A1)-ROW(A$1)+1>COUNT(B$1:B$11),"",INDEX(A:A,SMALL(B$1:B$11,1+ROW(A1)-ROW(A$1)))) ลงในเซลล์ C1 ดูภาพหน้าจอ:

doc-hide-used-ites-dropdown-list-1

4. จากนั้นกรอกสูตรนี้ลงในช่วงที่คุณต้องการดูภาพหน้าจอ:

doc-hide-used-ites-dropdown-list-1

5. ตอนนี้คุณต้องกำหนดชื่อช่วงสำหรับชื่อเหล่านี้ในคอลัมน์ C เลือก C1: C11 (ช่วงที่คุณใช้สูตรในขั้นตอนที่ 4) จากนั้นคลิก สูตร > กำหนดชื่อดูภาพหน้าจอ:

doc-hide-used-ites-dropdown-list-1

6. ใน ชื่อใหม่ กล่องโต้ตอบพิมพ์ชื่อในกล่องข้อความชื่อจากนั้นป้อนสูตรนี้ =OFFSET(Sheet2!$C$1,0,0,COUNTA(Sheet2!$C$1:$C$11)-COUNTBLANK(Sheet2!$C$1:$C$11),1) เข้าไปใน อ้างถึง ดูภาพหน้าจอ:

doc-hide-used-ites-dropdown-list-1

หมายเหตุ: ในสูตรข้างต้น C1: C11 คือช่วงคอลัมน์ตัวช่วยที่คุณสร้างในขั้นตอนที่ 3 และชีต 2 คือแผ่นงานปัจจุบันที่คุณใช้

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

doc-hide-used-ites-dropdown-list-1

8. ใน การตรวจสอบข้อมูล คลิกตกลง การตั้งค่า จากนั้นเลือก รายการ จาก อนุญาต รายการแบบหล่นลงแล้วข้างใต้ แหล่ง ป้อนสูตรนี้: = ตรวจสอบชื่อ, (ตรวจสอบชื่อ เป็นชื่อช่วงที่คุณสร้างในขั้นตอนที่ 6) ดูภาพหน้าจอ:

doc-hide-used-ites-dropdown-list-1

9. จากนั้นคลิก OK เพื่อปิดกล่องโต้ตอบนี้ตอนนี้รายการแบบหล่นลงได้ถูกสร้างขึ้นในช่วงที่เลือกและหลังจากเลือกหนึ่งชื่อจากเมนูแบบเลื่อนลงชื่อที่ใช้นี้จะถูกลบออกจากรายการและจะแสดงเฉพาะชื่อที่ไม่ได้ใช้ ดูภาพหน้าจอ:

doc-hide-used-ites-dropdown-list-1

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


บทความที่เกี่ยวข้อง:

วิธีแทรกรายการแบบหล่นลงใน Excel

วิธีสร้างรายการแบบเลื่อนลงแบบไดนามิกใน Excel อย่างรวดเร็ว

วิธีสร้างรายการแบบหล่นลงพร้อมรูปภาพใน Excel

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

🤖 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 (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Does any one know how to get the formula to reset itself once all the items on the list are selected?
e.g.
List 1, 2, 3, 4 - Then after selecting 1, List 2, 3, 4 - Then after Selecting 2, List 3, 4 - Then after selecting 3, List 4 and last, after selecting 4, list empty. How can this be reset so that after you select 4, all the items in the list reset to original list? So, after selecting 4, instead of List being empty, for list to go back to List 1, 2, 3, 4.

Thank you
This comment was minimized by the moderator on the site
This worked like a charm ... expect I need to have this "repeat" in three places on the same spreadsheet. I can't make it function properly, the second time. The items from the first drop down list are eliminated but when an entry is selected in the second location, it isn't removed from the list. Any idea on how to may this function properly?
KL
This comment was minimized by the moderator on the site
Can this formula be used successfully across multiple columns on one spreadsheet? I'm trying to have three columns where someone can select up to three items from a drop down list, i.e. item 1 in column 3, items2 in column 4, and item 3 in column 5. I can get the formula to work at the first occurrence, however, the second time I try to copy the formula, the selection(s) don't disappear from the drop down list, as they do in the column of the first occurrence.
This comment was minimized by the moderator on the site
Bravo! Fantastic solution! I have my workbook set up such that the items in my list are in a separate worksheet that I'm index-matching to through my number and helper columns leaving only them two on my calculation page. Again, very clean solution, Programmer!
This comment was minimized by the moderator on the site
Step 6 isn't working for me. I keep getting an error message saying the syntax of this name isn't correct... Can anyone help?
This comment was minimized by the moderator on the site
Is there a way to have only some of the options get removed when selected and others be permanent?
This comment was minimized by the moderator on the site
How do I get this activity to work if I transpose from Row to Column
This comment was minimized by the moderator on the site
I’ve entered all the formulas correctly, but the only name showing up is the first one on the list. What am I doing wrong??
This comment was minimized by the moderator on the site
Works great, however, if you have two people on the list with the same name e.g. John Smith it removes both incidents of 'John Smith' from the list when you select one of them.


Is there a way to amend this so that you have have multiple versions of the one name without them all being removed?


Thanks.
This comment was minimized by the moderator on the site
How would you change this formula for use of data validation list across multiple rows instead of a single column. Is that possible? Thanks
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations