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

วิธีการจัดเก็บหมายเลข vlookup เป็นข้อความใน Excel

สมมติว่าฉันมีช่วงข้อมูลต่อไปนี้หมายเลข ID ในตารางต้นฉบับเป็นรูปแบบตัวเลขในเซลล์การค้นหาซึ่งจัดเก็บเป็นข้อความเมื่อฉันใช้ฟังก์ชัน VLOOKUP ปกติฉันจะได้รับผลลัพธ์ข้อผิดพลาดดังภาพด้านล่างที่แสดง ในกรณีนี้ฉันจะได้รับข้อมูลที่ถูกต้องได้อย่างไรหากหมายเลขการค้นหาและหมายเลขเดิมในตารางมีรูปแบบข้อมูลที่แตกต่างกัน

หมายเลข Vlookup ที่จัดเก็บเป็นข้อความพร้อมสูตร

หมายเลข doc vlookup จัดเก็บเป็นข้อความ 1


ลูกศรสีฟ้าฟองขวา หมายเลข Vlookup ที่จัดเก็บเป็นข้อความพร้อมสูตร

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

ใส่สูตรนี้: = VLOOKUP (ค่า (G1), A2: D15,2, FALSE) ลงในเซลล์ว่างที่คุณต้องการค้นหาผลลัพธ์แล้วกด เข้าสู่ คีย์เพื่อส่งคืนข้อมูลที่เกี่ยวข้องที่คุณต้องการดูภาพหน้าจอ:

หมายเลข doc vlookup จัดเก็บเป็นข้อความ 2

หมายเหตุ:

1. ในสูตรข้างต้น: G1 เป็นเกณฑ์ที่คุณต้องการค้นหา A2: D15 คือช่วงของตารางที่มีข้อมูลที่คุณต้องการใช้และตัวเลข 2 ระบุหมายเลขคอลัมน์ที่มีค่าสอดคล้องกันที่คุณต้องการส่งคืน

2. หากค่าการค้นหาของคุณเป็นรูปแบบตัวเลขและหมายเลข ID ในตารางเดิมถูกจัดเก็บเป็นข้อความสูตรด้านบนจะใช้ไม่ได้คุณควรใช้สูตรนี้: = VLOOKUP (ข้อความ (G1,0), A2: D15,2, FALSE) เพื่อให้ได้ผลลัพธ์ที่ถูกต้องตามที่คุณต้องการ

หมายเลข doc vlookup จัดเก็บเป็นข้อความ 3

3. หากคุณไม่แน่ใจว่าคุณจะมีตัวเลขและข้อความเมื่อใดคุณสามารถใช้สูตรนี้: =IFERROR(VLOOKUP(VALUE(G1),A2:D15,2,0),VLOOKUP(TEXT(G1,0),A2:D15,2,0)) เพื่อจัดการทั้งสองกรณี

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

🤖 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 (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Worked. Thank you! 
This comment was minimized by the moderator on the site
Hello,
You are welcome. Glad it helps. Any questions, please feel free to contact us. Have a great day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Thanks so much!!!!! This worked for me, the #3 solution! HUGE help!!!
This comment was minimized by the moderator on the site
Hello,
You are welcome. Glad it helps. Any questions, please feel free to contact us. Have a great day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Thank You... :) Its worked for me
This comment was minimized by the moderator on the site
Hello,
You are welcome. Glad it helps. Any questions, please feel free to contact us. Have a great day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Same thing here. The problem is the data range. For some reason, even when the data type is text, MS Excel still looks at it as a number. But if you hit enter, it looks at it as text. So I usually end up with the data range where some of it is numbers and others, text.

SOLUTION: Use IFERROR function to address BOTH possibilities: IFERROR(VLOOKUP(TEXT(A1,0),$A$1:$A$100,1,FALSE),VLOOKUP(VALUE(A1),$A$1:$A$100,1,FALSE)). Hope this helps.
This comment was minimized by the moderator on the site
Unfortunately this method does not Always work. I import numbers in a column defined as tekst. I lookup these numbers in a table in which the numbers are also stored as tekst. I would say a Vlookup should work, but nor the standard lookup, nor the lookup with TEXT() or VALUE() function as expected. When I retype all values in the columns it works as expected, so there's no error in the formula.
This comment was minimized by the moderator on the site
I have the same problem @Rens, does anybody know a solution for this?
This comment was minimized by the moderator on the site
Same thing here. The problem is the data range. For some reason, even when the data type is text, MS Excel still looks at it as a number. But if you hit enter, it looks at it as text. So I usually end up with the data range where some of it is numbers and others, text.

SOLUTION: Use IFERROR function to address BOTH possibilities: IFERROR(VLOOKUP(TEXT(A1,0),$A$1:$A$100,1,FALSE),VLOOKUP(VALUE(A1),$A$1:$A$100,1,FALSE)). Hope this helps.
This comment was minimized by the moderator on the site
This is what I do and is perfect.
This comment was minimized by the moderator on the site
Same thing here. The problem is the data range. For some reason, even when data type is text, it looks like it's still looked on as a number. But if you hit enter, it looks at it as text. So I usually would end up with the data range where some of it is numbers and others text.

SOLUTION: Use IFERROR function to address BOTH possibilities: IFERROR(VLOOKUP(TEXT(A1,0),$A$1:$A$100,1,FALSE),VLOOKUP(VALUE(A1),$A$1:$A$100,1,FALSE)). Hope this helps.
This comment was minimized by the moderator on the site
Hello Jaji, thanks, this works, I hope in all cases. Nevertheless it looks like a bug to me.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations