:D snasui.com ยินดีต้อนรับ :D
ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย :thup: สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ :arrow: ระบุ Version ของ Excel
:!: โปรดทราบ :!:
  1. กรุณาอ่านกฎการใช้บอร์ด (Forum rules) ในตำแหน่งด้านบนของแต่ละบอร์ด
  2. การสมัครสมาชิก การ Login การกู้คืนรหัสผ่าน
    1. สมัครสมาชิกดูขั้นตอนได้ที่ :arrow: สมัครสมาชิก
    2. Login เข้าระบบโดยคลิกปุ่ม Login ตรงมุมขวาบนของหน้านี้ :roll:
    3. การ Login ผ่าน Facebook ดูวิธีที่ :arrow: Login ผ่าน Facebook
    4. ลืมรหัสผ่านสามารถรับรหัสใหม่ได้ที่ :arrow: Reset รหัสผ่าน
  3. มีปัญหาการใช้งาน แจ้งผู้ดูแลระบบได้ที่ :arrow: ติดต่อผู้ดูแลระบบ
  4. กำหนดการตั้งค่าส่วนตัว เช่นตั้งค่าภาษาเป็นไทยหรืออังกฤษดูได้ที่ :arrow: ตั้งค่าส่วนตัว
  5. การตั้งและตอบกระทู้ดูได้ที่ :arrow: วิธีการตั้งและตอบกระทู้
  6. การจัดรูปแบบตัวอักษรด้วย bbcode ในช่องแสดงความคิดเห็นดูได้ที่ :arrow: จัดรูปแบบตัวอักษร
  7. กำหนดขนาดตัวอักษรใน Browser ดูได้ที่ :arrow: กำหนดขนาดตัวอักษรใน Browser

Get uniques

ฟอรัมถาม-ตอบปัญหาการใช้งาน MS Excel and VBA
Forum rules
  1. ไม่อนุญาตให้ใช้ภาษาแชทในการถามและตอบปัญหา ไม่ใช้คำว่า "คับ" หรือ "อ่ะครับ" แทนคำว่า "ครับ" ไม่ใช้คำว่า "เด๋ว" แทนคำว่า "เดี๋ยว" เป็นต้น เนื่องจากเมื่อแปลเป็นภาษาต่างประเทศแล้วจะให้ความหมายผิดไปจากที่ควรจะเป็น
  2. ห้ามถามโดยระบุชื่อผู้ตอบและต้องตั้งชื่อกระทู้ให้สื่อถึงปัญหาที่จะถาม ไม่ตั้งชื่อว่า ช่วยด้วยครับ, มีปัญหามาปรึกษาครับ เป็นต้น
  3. กรุณาอธิบายปัญหาและระบุคำตอบที่ต้องการมาในกระทู้ด้วยเสมอถึงแม้จะอธิบายไว้ในไฟล์แนบแล้วก็ตาม ทั้งนี้เพื่ออำนวยความสะดวกแก่เพื่อนสมาชิกในการค้นหาข้อมูล
  4. กรุณาแนบไฟล์ตัวอย่างพร้อมแสดงคำตอบที่ถูกต้องมาในไฟล์ด้วยเพื่อให้ง่ายต่อการทำความเข้าใจและสะดวกต่อการตอบคำถาม (ขนาดไฟล์ไม่เกิน 500Kb ขนาดภาพไม่เกิน 800*600 Pixel) ไม่แนบเป็น Link มาจากแหล่งอื่นที่อาจจะถูกลบทิ้งไปโดยต้นทางในภายหลัง นอกจากนี้ไม่ควรแนบไฟล์ที่มีข้อมูลสำคัญอันก่อให้เกิดความเสียหายกับตนเองและผู้อื่น
  5. กรณีเป็นคำถามเกี่ยวกับ Programming เช่น VBA, VB.Net, C#, SQL ฯลฯ ต้องลองเขียนมาเองก่อนเสมอ ถามเฉพาะที่ติดปัญหา ระบุ Module, Procedure ที่ติดปัญหาให้ชัดเจน กรุณาโพสต์ Code ให้แสดงเป็น Code คือเปิดด้วย [code] และปิดด้วย [/code] ตัวอย่างเช่น [code]dim r as range[/code] เพื่อให้แตกต่างจากข้อความทั่วไป สะดวกในการอ่านและทดสอบ (คลิกเพื่อดูตัวอย่าง)
  6. กรุณาแจ้งผลการใช้งานเมื่อได้รับคำตอบว่าตรงกับความต้องการหรือไม่
sna
Silver
Silver
Posts: 640
Joined: Tue May 05, 2020 8:18 am
Excel Ver: 2013,2016

Get uniques

#1

Post by sna »

Hi there,
Hi to everyone here,I need your expertise on this.
is there a way when I add a Same user in column 12 that already exist, it will retain the unique value in column D and remove the duplicate value?
Example highlight in color yellow"Dipika Yadav" already exist in row 7, but in column D the "CHS08" is the unique value that should retain and delete or remove(CHS02,CHS06) the duplicate.
Hope you can help me on this.
You do not have the required permissions to view the files attached to this post.
User avatar
norkaz
Gold
Gold
Posts: 1543
Joined: Wed Jan 12, 2011 7:59 pm
Excel Ver: 2013,365

Re: Get uniques

#2

Post by norkaz »

...

Try this.

E2

=IFERROR(LOOKUP(2,1/ISERROR(SEARCH(TRIM(MID(SUBSTITUTE(D2,",",REPT(" ",50)),(COLUMN($G2:$M2)-COLUMN($G2)+1)*50-49,50)),VLOOKUP(A2,$A$2:$D$11,4,0))),TRIM(MID(SUBSTITUTE(D2,",",REPT(" ",50)),(COLUMN($G2:$M2)-COLUMN($G2)+1)*50-49,50))),D2)

Norkaz
You do not have the required permissions to view the files attached to this post.
sna
Silver
Silver
Posts: 640
Joined: Tue May 05, 2020 8:18 am
Excel Ver: 2013,2016

Re: Get uniques

#3

Post by sna »

hi...
formula should be reference in Column C(UserID) not Column A (First Name)
User avatar
norkaz
Gold
Gold
Posts: 1543
Joined: Wed Jan 12, 2011 7:59 pm
Excel Ver: 2013,365

Re: Get uniques

#4

Post by norkaz »

...

If column C is the keyword, change the VLOOKUP columns reference as below.

E2

=IFERROR(LOOKUP(2,1/ISERROR(SEARCH(TRIM(MID(SUBSTITUTE(D2,",",REPT(" ",50)),(COLUMN($G2:$M2)-COLUMN($G2)+1)*50-49,50)),VLOOKUP(C2,$C$2:$D$11,2,0))),TRIM(MID(SUBSTITUTE(D2,",",REPT(" ",50)),(COLUMN($G2:$M2)-COLUMN($G2)+1)*50-49,50))),D2)

Norkaz
sna
Silver
Silver
Posts: 640
Joined: Tue May 05, 2020 8:18 am
Excel Ver: 2013,2016

Re: Get uniques

#5

Post by sna »

if I enter same user(Column C) it shows existing request in column E as seen in the image below. If column D is existing for user in column C can we have column E says " No new request provided"?
User avatar
snasui
Site Admin
Site Admin
Posts: 30761
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 365
Contact:

Re: Get uniques

#6

Post by snasui »

sna wrote: Thu Feb 03, 2022 12:00 pm If I enter same user(Column C) it shows existing request in column E as seen in the image below.
:D Not found the image in your post. Please attach the image again.
sna
Silver
Silver
Posts: 640
Joined: Tue May 05, 2020 8:18 am
Excel Ver: 2013,2016

Re: Get uniques

#7

Post by sna »

here is an image after test more on column c
You do not have the required permissions to view the files attached to this post.
User avatar
norkaz
Gold
Gold
Posts: 1543
Joined: Wed Jan 12, 2011 7:59 pm
Excel Ver: 2013,365

Re: Get uniques

#8

Post by norkaz »

...

E2

=IF(C2&D2=C1&D1,"No new request provided",IFERROR(LOOKUP(2,1/ISERROR(SEARCH(TRIM(MID(SUBSTITUTE(D2,",",REPT(" ",50)),(COLUMN($G2:$M2)-COLUMN($G2)+1)*50-49,50)),VLOOKUP(C2,$C$2:$D$11,2,0))),TRIM(MID(SUBSTITUTE(D2,",",REPT(" ",50)),(COLUMN($G2:$M2)-COLUMN($G2)+1)*50-49,50))),D2))

Norkaz
You do not have the required permissions to view the files attached to this post.
Post Reply