Page 1 of 1

ตรวจสอบข้อมูลซ้ำกันและข้อมูลที่ข้ามไป

Posted: Wed Apr 29, 2015 11:30 am
by p_d
เรียนท่านผู้รู้
ดิฉันมีปัญหาเกี่ยวกับการทำข้อมูล ซึ่งที่การรันจากระะบบออกมา ชุดข้อมูลจะเหมือนกัน ต่างกันตรงชุดข้อมูลท้าย ๆ ซึ่งมีการเรียงลำดับกันรันไปเรือย ๆ ตามไฟล์แนบในคอลัมภ์ A
ส่วนคอลัมภ์ B คือสิ่งที่ต้องการ โดยมีเงื่อนไขดังนี้
1.หากข้อมูลที่พบกระโดดข้ามลำดับใดไปเห็นเว้นว่างไว้ให้เห็นว่าโดนข้ามไป
2.แสดงข้อมูลนี้มีการซ้ำกันให้เห็นชัดเจน

ลองใช้ vlookup ก็ไม่ตรงกับวัตถุประสงค์ รบกวนชี้แนะด้วยค่ะ

ขอบคุณค่ะ
p_d

Re: ตรวจสอบข้อมูลซ้ำกันและข้อมูลที่ข้ามไป

Posted: Wed Apr 29, 2015 2:55 pm
by snasui
:D การทำเช่นนั้นต้องอาศัย VBA ลองเขียนมาเองก่อน ติดตรงไหนค่อยถามกันต่อครับ

Re: ตรวจสอบข้อมูลซ้ำกันและข้อมูลที่ข้ามไป

Posted: Wed May 06, 2015 5:10 pm
by DhitiBank
Please see attached file for using formula to solve your problem but it has a little difference from your sample and needs some columns for solving. Also uses conditional formatting to highlight the duplicates (Sorry for my bad English, I have not Thai keyboard layout now)

Re: ตรวจสอบข้อมูลซ้ำกันและข้อมูลที่ข้ามไป

Posted: Wed May 06, 2015 5:26 pm
by DhitiBank
Limitation:
1. The Format of your source data must be the same, for example:-
- each code start with "A1MXC30JTB-BK-5-B-3-20150402-" following by running number "xxxxx", the last is "-B"

2. Adjust the formula in column J according to your data
=IF(I2="","",COUNTIF($H$2:$H$106,I2))
and copy the formula down