snasui.com ยินดีต้อนรับ
ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
ฟอรัมถาม-ตอบปัญหาการใช้งานสูตรและฟังก์ชัน Excel
Forum rules
ไม่อนุญาตให้ใช้ภาษาแชทในการถามและตอบปัญหา ไม่ใช้คำว่า "คับ" หรือ "อ่ะครับ" แทนคำว่า "ครับ" ไม่ใช้คำว่า "เด๋ว" แทนคำว่า "เดี๋ยว" เป็นต้น เนื่องจากเมื่อแปลเป็นภาษาต่างประเทศแล้วจะให้ความหมายผิดไปจากที่ควรจะเป็น
ห้ามถามโดยระบุชื่อผู้ตอบและต้องตั้งชื่อกระทู้ให้สื่อถึงปัญหาที่จะถาม ไม่ตั้งชื่อว่า ช่วยด้วยครับ, มีปัญหามาปรึกษาครับ เป็นต้น
กรุณาอธิบายปัญหาและระบุคำตอบที่ต้องการมาในกระทู้ด้วยเสมอถึงแม้จะอธิบายไว้ในไฟล์แนบแล้วก็ตาม ทั้งนี้เพื่ออำนวยความสะดวกแก่เพื่อนสมาชิกในการค้นหาข้อมูล
กรุณาแนบไฟล์ตัวอย่างพร้อมแสดงคำตอบที่ถูกต้องมาในไฟล์ด้วยเพื่อให้ง่ายต่อการทำความเข้าใจและสะดวกต่อการตอบคำถาม (ขนาดไฟล์ไม่เกิน 500Kb ขนาดภาพไม่เกิน 800*600 Pixel) ไม่แนบเป็น Link มาจากแหล่งอื่นที่อาจจะถูกลบทิ้งไปโดยต้นทางในภายหลัง นอกจากนี้ไม่ควรแนบไฟล์ที่มีข้อมูลสำคัญอันก่อให้เกิดความเสียหายกับตนเองและผู้อื่น
กรณีเป็นคำถามเกี่ยวกับ Programming เช่น VBA, VB.Net, C#, SQL ฯลฯ ต้องลองเขียนมาเองก่อนเสมอ ถามเฉพาะที่ติดปัญหา ระบุ Module, Procedure ที่ติดปัญหาให้ชัดเจน กรุณาโพสต์ Code ให้แสดงเป็น Code คือเปิดด้วย [code] และปิดด้วย [/code] ตัวอย่างเช่น [code]dim r as range[/code] เพื่อให้แตกต่างจากข้อความทั่วไป สะดวกในการอ่านและทดสอบ (คลิกเพื่อดูตัวอย่าง)
กรุณาแจ้งผลการใช้งานเมื่อได้รับคำตอบว่าตรงกับความต้องการหรือไม่
jwwam
Member
Posts: 29 Joined: Tue Mar 19, 2019 8:43 am
#1
Post
by jwwam » Mon Apr 08, 2019 9:48 am
รบกวนสอบถามค่ะ
จากรูปภาพที่แนบมา
ต้องการให้มันแสดงค่าว่า Aisle 1 มี SO no. อะไรบ้าง (ปล.สามารถแสดงค่า SO no. ที่่ซ้ำกันได้) ไม่ทราบว่าต้องเขียนสูตร vlookup ยังไงเหรอคะ หรือสามารถใช้สูตรอื่นได้คะ
You do not have the required permissions to view the files attached to this post.
puriwutpokin
Guru
Posts: 3801 Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365
#2
Post
by puriwutpokin » Mon Apr 08, 2019 10:50 am
ลองแนบไฟล์ตัวอย่างมาดูครับ
jwwam
Member
Posts: 29 Joined: Tue Mar 19, 2019 8:43 am
#3
Post
by jwwam » Mon Apr 08, 2019 2:50 pm
puriwutpokin wrote: Mon Apr 08, 2019 10:50 am
ลองแนบไฟล์ตัวอย่างมาดูครับ
ไฟล์แนบค่ะ
You do not have the required permissions to view the files attached to this post.
puriwutpokin
Guru
Posts: 3801 Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365
#4
Post
by puriwutpokin » Mon Apr 08, 2019 2:58 pm
ที่ K31=IFERROR(INDEX($C$20:$C$47,SMALL(IF($A$20:$A$47="Aisle 1",ROW($C$20:$C$47)-ROW($C$19)),ROWS($K$31:$K31))),"") กด Ctrl+Shift+Enter
jwwam
Member
Posts: 29 Joined: Tue Mar 19, 2019 8:43 am
#5
Post
by jwwam » Mon Apr 08, 2019 5:28 pm
puriwutpokin wrote: Mon Apr 08, 2019 2:58 pm
ที่ K31=IFERROR(INDEX($C$20:$C$47,SMALL(IF($A$20:$A$47="Aisle 1",ROW($C$20:$C$47)-ROW($C$19)),ROWS($K$31:$K31))),"") กด Ctrl+Shift+Enter
ขออนุญาตถามเพิ่มเติมนะคะ
ถ้าต้องการให้มันไปแสดงที่ lay out I คอลัมน์ B ต้องเขียนสูตรยังไงคะ ตามไฟล์ข้างต้นเลยค่ะ
puriwutpokin
Guru
Posts: 3801 Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365
#6
Post
by puriwutpokin » Mon Apr 08, 2019 6:21 pm
Cut ช่วงที่ต้องการย้าย แล้วไปวางที่ปลายทางเลยครับ
jwwam
Member
Posts: 29 Joined: Tue Mar 19, 2019 8:43 am
#7
Post
by jwwam » Tue Apr 09, 2019 9:20 am
puriwutpokin wrote: Mon Apr 08, 2019 6:21 pm
Cut ช่วงที่ต้องการย้าย แล้วไปวางที่ปลายทางเลยครับ
ยังไงเหรอคะ
puriwutpokin
Guru
Posts: 3801 Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365
#8
Post
by puriwutpokin » Tue Apr 09, 2019 9:56 am
jwwam wrote: Tue Apr 09, 2019 9:20 am
puriwutpokin wrote: Mon Apr 08, 2019 6:21 pm
Cut ช่วงที่ต้องการย้าย แล้วไปวางที่ปลายทางเลยครับ
ยังไงเหรอคะ
ดูตามไฟล์แนบครับ Cut ช่วงที่จะย้ายแล้วไปว่า ในที่ต้องการครับ
You do not have the required permissions to view the files attached to this post.
jwwam
Member
Posts: 29 Joined: Tue Mar 19, 2019 8:43 am
#9
Post
by jwwam » Tue Apr 09, 2019 9:22 pm
puriwutpokin wrote: Tue Apr 09, 2019 9:56 am
jwwam wrote: Tue Apr 09, 2019 9:20 am
puriwutpokin wrote: Mon Apr 08, 2019 6:21 pm
Cut ช่วงที่ต้องการย้าย แล้วไปวางที่ปลายทางเลยครับ
ยังไงเหรอคะ
ดูตามไฟล์แนบครับ Cut ช่วงที่จะย้ายแล้วไปว่า ในที่ต้องการครับ
เข้าใจแล้วค่ะ ขอบคุณมากๆค่ะ
แต่ว่าพอมาทำในไฟล์นี้มันไม่ขึ้นค่ะ รบกวนดูให้หน่อยได้ไหมคะ
You do not have the required permissions to view the files attached to this post.
puriwutpokin
Guru
Posts: 3801 Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365
#10
Post
by puriwutpokin » Tue Apr 09, 2019 9:41 pm
ที่ B3=IFERROR(INDEX(Barcode!$C$2:$C$2000,SMALL(IF(Barcode!$A$2:$A$2000=$B$2,IF(Barcode!$C$2:$C$2000<>"",ROW(Barcode!$C$2:$C$2000)-ROW(Barcode!$C$1))),ROWS($B$3:$B3))),"") กด Ctrl+Shift+Enter คัดลอกลงครับ
jwwam
Member
Posts: 29 Joined: Tue Mar 19, 2019 8:43 am
#11
Post
by jwwam » Thu Apr 11, 2019 10:57 am
puriwutpokin wrote: Tue Apr 09, 2019 9:41 pm
ที่ B3=IFERROR(INDEX(Barcode!$C$2:$C$2000,SMALL(IF(Barcode!$A$2:$A$2000=$B$2,IF(Barcode!$C$2:$C$2000<>"",ROW(Barcode!$C$2:$C$2000)-ROW(Barcode!$C$1))),ROWS($B$3:$B3))),"") กด Ctrl+Shift+Enter คัดลอกลงครับ
ได้แล้วค่ะ ขอบคุณมากๆค่ะ
ขออนุญาตรบกวนอีกเรื่องได้ไหมคะ
พอดีทำ Conditional Formatting ที่ชีท lay out I และ Lay out II ให้เสิร์ชตัวเลขไหนแล้วขึ้นสีที่ตัวเลขนั้น แต่ว่าทำแล้วขึ้นสีเพี้ยนหมดเลยค่ะ ไม่ขึ้นตามที่กำหนดเลย
ตามไฟล์แนบค่ะ
You do not have the required permissions to view the files attached to this post.
puriwutpokin
Guru
Posts: 3801 Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365
#12
Post
by puriwutpokin » Thu Apr 11, 2019 11:47 am
ลองดูตามไฟล์แนบครับ
You do not have the required permissions to view the files attached to this post.
jwwam
Member
Posts: 29 Joined: Tue Mar 19, 2019 8:43 am
#13
Post
by jwwam » Thu Apr 11, 2019 1:34 pm
puriwutpokin wrote: Thu Apr 11, 2019 11:47 am
ลองดูตามไฟล์แนบครับ
ได้แล้วค่ะ ขอบคุณมากๆเลยค่ะ