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

วิธี vlookup เพื่อส่งคืนหลายคอลัมน์จากตาราง Excel

ในแผ่นงาน Excel คุณสามารถใช้ฟังก์ชัน Vlookup เพื่อส่งคืนค่าที่ตรงกันจากคอลัมน์เดียว แต่บางครั้งคุณอาจต้องดึงค่าที่ตรงกันจากหลายคอลัมน์ตามภาพหน้าจอต่อไปนี้ คุณจะได้รับค่าที่สอดคล้องกันในเวลาเดียวกันจากหลายคอลัมน์โดยใช้ฟังก์ชัน Vlookup ได้อย่างไร?

doc vlookup หลายคอลัมน์ 1

Vlookup เพื่อส่งคืนค่าที่ตรงกันจากหลายคอลัมน์ด้วยสูตรอาร์เรย์


Vlookup เพื่อส่งคืนค่าที่ตรงกันจากหลายคอลัมน์ด้วยสูตรอาร์เรย์

ที่นี่ฉันจะแนะนำฟังก์ชัน Vlookup เพื่อส่งคืนค่าที่ตรงกันจากหลายคอลัมน์โปรดทำดังนี้:

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

doc vlookup หลายคอลัมน์ 2

2. จากนั้นป้อนสูตรนี้: =VLOOKUP(G2,A1:E13,{2,4,5},FALSE) ลงในแถบสูตรแล้วกด Ctrl + Shift + Enter คีย์เข้าด้วยกันและมีการแยกค่าที่ตรงกันจากหลายคอลัมน์พร้อมกันดูภาพหน้าจอ:

doc vlookup หลายคอลัมน์ 3

หมายเหตุ: ในสูตรข้างต้น G2 คือเกณฑ์ที่คุณต้องการส่งคืนค่าตาม A1: E13 คือช่วงตารางที่คุณต้องการ vlookup จากจำนวน 2, 4, 5 คือหมายเลขคอลัมน์ที่คุณต้องการส่งคืนค่า

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

🤖 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
how can i search for multiple lookup value?for eg: these two arrays shows diff freq coumn,gain,veritcal BW,tolerance etc.I want to get an average values gain and 3db BW..how can i enter the formula
y1    1800    7.5dBi +/- 2.9    22.1° +/- 6.8        7.5
y1    1900    7.6dBi +/- 3.0    18.9° +/- 3.6        7.6
y1    2100    6.7dBi +/- 2.6    17.7° +/- 3.6        6.7
y1    AWS    7.2dBi +/- 2.8    20.4° +/- 9.4        7.2
y1    2300    8.3dBi +/- 3.6    15.8° +/- 1.6        8.3
y1    2600    7.9dBi +/- 2.4    17.1° +/- 1.7        7.9
y2    1800    6.9dBi +/- 1.4    27.1° +/- 10.8        6.9
y2    1900    6.9dBi +/- 1.5    23.0° +/- 12.5        6.9
y2    2100    7.6dBi +/- 2.3    21.7° +/- 19.6        7.6
y2    AWS    8.0dBi +/- 2.5    23.3° +/- 13.8        8
y2    2300    7.7dBi +/- 1.6    15.9° +/- 5.9        7.7
y2    2600    6.5dBi +/- 2.3    14.5° +/- 3.9        6.5
This comment was minimized by the moderator on the site
I have many rows with same value but need to get multiple value after look up, I need to get two different EO ref , how can U##TRX EO
HXPRE-MQ1371 AB0024822
HXPRE-MQ1371 AB0024822
This comment was minimized by the moderator on the site
Thank you!! The { } of the columns is what I was missing. Appreciate this page!
This comment was minimized by the moderator on the site
Thanks! Super helpful, when other online options weren't
This comment was minimized by the moderator on the site
What if you need to have multiple rows as well? Ex. find all the FF-1006-18 rows while still only bringing back column B, D, and E.
This comment was minimized by the moderator on the site
Hello, Shelly,
Maybe there is not a direct formula for helping you, but, you can apply the below array fromula to get all matching values from the entire row, and then delete or hide the unwanted column as you need.
=INDEX($A$2:$E$10, SMALL(IF($G$2=$A$2:$A$10, ROW($A$2:$A$10)-MIN(ROW($A$2:$A$10))+1, ""), ROW(B1)),COLUMN(B1))
Then press Ctrl + Shift + Enter keys to get the first cell and then drag the fill handle to right and then drga down to get all corresponding values.

Please try, hope it can help you!
This comment was minimized by the moderator on the site
Thanks! This was really Helpful!
This comment was minimized by the moderator on the site
This method does not work. Even if it did, it is not the proper method.
Example of correct method is:
VLOOKUP($A2:$A1093, '[Workbook1.xlsx]Sheet2'!$A$2:$D$111,COLUMN(G2),FALSE)

Make sure you add $ before the column letter of your lookup reference to make sure it remains static, once done, using the filler button on the selected target cell, drag right to the corresponding number of columns.
This comment was minimized by the moderator on the site
This comment is exactly what I needed
This comment was minimized by the moderator on the site
How can I do this using 2 different spread sheets?
This comment was minimized by the moderator on the site
Hello, Lana,
The above formula in this article also can help you to get the results in another worksheet, you just need to change the cell reference as follows:
=VLOOKUP(A1,Sheet1!A1:E13,{2,4,5},FALSE)
Please remember to press Ctrl + Shift + Enter keys together to get the correct results.
This comment was minimized by the moderator on the site
NOT GETTING MULTIPLE COLUMN I'M GETTING ONLY ONE COLUMN VALUE
This comment was minimized by the moderator on the site
Hi, HARI,
To apply this formula, first, you should select the multiple cells where you want to output the results, and then copy the formula into the formula bar, then press Ctrl + Shift + Enter keys together to get the results.
Please try, hope it can help you!
This comment was minimized by the moderator on the site
This is great. How do I carry this formula down if I have 10,000 rows? I've tried a few ways but of course it's changing the formula on me.
This comment was minimized by the moderator on the site
Hi, Scully,
To apply this formula to multiple rows, you just need to change the relative cell reference to absolute reference, as this: =VLOOKUP(A1,Sheet1!$A$1:$E$13,{2,4,5},FALSE).
Please try this, hope it can help you!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations