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

วิธี vlookup และส่งคืนทั้งแถว / ทั้งแถวของค่าที่ตรงกันใน Excel

โดยปกติคุณสามารถ vlookup และส่งคืนค่าที่ตรงกันจากช่วงของข้อมูลโดยใช้ฟังก์ชัน Vlookup แต่คุณเคยพยายามค้นหาและส่งคืนข้อมูลทั้งแถวตามเกณฑ์เฉพาะดังภาพหน้าจอต่อไปนี้หรือไม่

Vlookup และส่งคืนข้อมูลทั้งแถว / ทั้งหมดของค่าที่ตรงกันด้วยสูตร

Vlookup และส่งคืนข้อมูลทั้งแถว / ทั้งหมดของค่าที่ตรงกันด้วยสูตรอาร์เรย์


Vlookup และส่งคืนข้อมูลทั้งแถว / ทั้งหมดของค่าที่ตรงกันด้วยสูตร

หากต้องการรับข้อมูลแถวทั้งหมดของค่าที่ตรงกันโปรดใช้สูตรต่อไปนี้:

ใส่สูตรนี้: = VLOOKUP ($ F $ 2, $ A $ 1: $ D $ 12, COLUMN (A1), FALSE) ลงในเซลล์ว่างที่คุณต้องการรับผลลัพธ์เช่น H1 จากนั้นลากสูตรไปทางขวา (จาก H2 ถึง K2) และคุณจะได้รับข้อมูลแถวทั้งหมดที่คุณต้องการ ดูภาพหน้าจอ:

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


Vlookup และส่งคืนข้อมูลทั้งแถว / ทั้งหมดของค่าที่ตรงกันด้วยสูตรอาร์เรย์

ยกเว้นสูตรข้างต้นนี่คือสูตรอาร์เรย์อื่นที่สามารถช่วยคุณได้

1. โปรดเลือกเซลล์ที่คุณต้องการส่งออกผลลัพธ์ทั้งแถวจากนั้นป้อนสูตรอาร์เรย์นี้: = VLOOKUP (F2, $ A $ 2: $ D $ 12, {1,2,3,4}, FALSE) ลงในแถบสูตรดูภาพหน้าจอ:

2. จากนั้นกด Ctrl + Shift + Enter คีย์เข้าด้วยกันคุณจะได้ทั้งแถวของค่าที่ตรงกันดูภาพหน้าจอ:

หมายเหตุ: ในสูตรข้างต้น F2 คือค่าการค้นหาที่คุณต้องการส่งคืนทั้งแถวตาม A2: D12 คือช่วงข้อมูลที่คุณต้องการใช้ 1,2,3,4 คือหมายเลขคอลัมน์ที่คุณต้องการส่งคืนค่าที่สอดคล้องกัน


หากคุณสนใจฟังก์ชัน VLOOKUP ใน Excel Kutools สำหรับ Excel's สุดยอดการค้นหา รองรับสูตร Vlookup ที่มีประสิทธิภาพสำหรับคุณ คุณสามารถ ทำฟังก์ชัน Vlookup อย่างรวดเร็วโดยไม่จำสูตรใด ๆ คลิกเพื่อดาวน์โหลด Kutools for Excel!

Kutools สำหรับ Excel: ด้วย Add-in ของ Excel ที่มีประโยชน์มากกว่า 300 รายการให้ทดลองใช้ฟรีโดยไม่มีข้อ จำกัด ใน 30 วัน ดาวน์โหลดและทดลองใช้ฟรีทันที!

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

🤖 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 (27)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Vlookup kullandığımda değeri değil n/a şeklinde döndürüyor. rakamın kendisi yazmasini nasıl yapa bilirim ya da neden n/a döndürüyor
This comment was minimized by the moderator on the site
Is it possible to use Index/match formula to do the same thing? And if so, how?
This comment was minimized by the moderator on the site
Hello, Lin,
To solve this task with Index/match formula, please apply the below formula:
=INDEX(B2:E6,MATCH(G2,A2:A6,0),0)

After inserting the formula, please press Ctrl + Shift + Enter keys together, and then drag the fill handle to right to fill the results, see screenshot:
https://www.extendoffice.com/images/stories/comments/comment-skyyang/doc-lookup-entire-row.png

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Excellent work.  I was wondering how to take this a step further and return rows that don't exactly match my criteria.  For example, I have:          a                    b                    c                    d1    2020-23          Jan                 17                  Complete2    2020-24          Jan                 17                  Complete3    2020-24a        Feb                 01                  
This comment was minimized by the moderator on the site
Is there a way to use the third column data to search in and still return the first two columns?
This comment was minimized by the moderator on the site
to get the 4 column to paste first copy the formula and select four cells and paste the formula you will get all 4
This comment was minimized by the moderator on the site
Also, I am unable to set up an account (tried twice and got an error twice) and cannot post a screenshot as a guest.
This comment was minimized by the moderator on the site
I've tried to replicate this table just as you had it but the formula does not work, what gives?
This comment was minimized by the moderator on the site
Hi,

I registered just to say thank you so much! After looking on the internet for hours this is exactly what I needed to see. Perfect explanation.

Thanks,

Jack
This comment was minimized by the moderator on the site
So I am needing some help with Vlookup. Have a table with the following headers (group assignmen, Name, home town, gender, and comments). I am trying to input a value of the group and have it list everyone that is in the group along with the respective data such as the name, home town, gender, and comments associated with row. I am able to produce the first row but I need all the "1", "2",......."15" from the list that is sorted by group assignment not just the fist one from the list. Any help would be much appreciated
This comment was minimized by the moderator on the site
Is there a way to do a vlookup to return entire rows for one lookup value. If there were 4 rows with products titled DDD-4, can you do a search that will display the 4 products and the details in column 1,2,3,4?
This comment was minimized by the moderator on the site
Hello, Claude,
Maybe the below array formula can help you:(Note: after pasting this formula, please press Ctrl + Shift + Enter keys together.)
=IFERROR(INDEX(A:A,SMALL(IF(ISNUMBER(SEARCH($E$2,$A$2:$A$12)),ROW($A$2:$A$12),""),ROW()-1)),"")
After pressing the Ctrl + Shift + Enter keys, then drag the fill handle right to the cells, and then drag the fill hanlde down the cells to get the results.
Please try, hopt it can help you, thank you!
This comment was minimized by the moderator on the site
Is there a way to do this but search across multiple sheets?
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