Highlight Duplicate Value, 3 Column check

nazeem

New Member
Joined
May 26, 2016
Messages
27
hi,

I need to find duplicate in a set of data mentioned below in which there is three columns Date, Employee Code, Amount. These 3 column we need to check in each row to identify the duplicate. In the given data 2 Lines with emp code AHP-SHJ-06-07 and AHP-SHJ-06-03 is duplicate.

DateBill No.Emp CodeEmp NameAmountDescription
1/6/2017108824AHP-SHJ-06-07ABC353.00RESIDENCE RENEW FOR ABC
5/6/201799374AHP-SHJ-06-03DEF353.00RESIDENCE RENEW FOR DEF
22-6-201799385AHP-DXB-16-01GHI453.00RESIDENCE RENEW FOR GHI
23-6-201748313AHP-DXB-BR-02-17JKL453.00NEW RESIDENCE FOR JKL
5/6/201799384AHP-SHJ-06-03DEF353.00RESIDENCE RENEW FOR DEF
4/6/201729296AHP-SHJ-06PQR90.00APPLIED PROFESSION CHANGE IN PQR
1/6/201731427AHP-SHJ-06-07ABC353.00ID FOR MOHAMMED ABC


<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
hi,

I need to find duplicate in a set of data mentioned below in which there is three columns Date, Employee Code, Amount. These 3 column we need to check in each row to identify the duplicate. In the given data 2 Lines with emp code AHP-SHJ-06-07 and AHP-SHJ-06-03 is duplicate.

DateBill No.Emp CodeEmp NameAmountDescription
1/6/2017108824AHP-SHJ-06-07ABC353.00RESIDENCE RENEW FOR ABC
5/6/201799374AHP-SHJ-06-03DEF353.00RESIDENCE RENEW FOR DEF
22-6-201799385AHP-DXB-16-01GHI453.00RESIDENCE RENEW FOR GHI
23-6-201748313AHP-DXB-BR-02-17JKL453.00NEW RESIDENCE FOR JKL
5/6/201799384AHP-SHJ-06-03DEF353.00RESIDENCE RENEW FOR DEF
4/6/201729296AHP-SHJ-06PQR90.00APPLIED PROFESSION CHANGE IN PQR
1/6/201731427AHP-SHJ-06-07ABC353.00ID FOR MOHAMMED ABC

<tbody>
</tbody>

G2 = A2&C2&E2
H2 = IF(MATCH(G2,$G$2:$G$8,0)=ROW()-1,"","Duplicate")
 
Upvote 0
Hi,
You can use this formula and you won't need a helper column.
Code:
=IF(COUNTIFS($D$3:$D$9,D3,$E$3:$E$9,E3,$G$3:$G$9,G3) > 1,"Duplicate","")
 
Last edited:
Upvote 0
G2 = A2&C2&E2
H2 = IF(MATCH(G2,$G$2:$G$8,0)=ROW()-1,"","Duplicate")


Thanks for the reply,

But there is a problem in the result.

DateBill No.Emp CodeEmp NameAmountDescriptionDateEmp CodeAmountResult
1/6/2017108824AHP-SHJ-06-07ABC353.00RESIDENCE RENEW FOR ABC42741AHP-SHJ-06-07353Duplicate
5/6/201799374AHP-SHJ-06-03DEF353.00RESIDENCE RENEW FOR DEF42861AHP-SHJ-06-03353Duplicate
22-6-201799385AHP-DXB-16-01GHI453.00RESIDENCE RENEW FOR GHI22-6-2017AHP-DXB-16-01453Duplicate
23-6-201748313AHP-DXB-BR-02-17JKL453.00NEW RESIDENCE FOR JKL23-6-2017AHP-DXB-BR-02-17453Duplicate
5/6/201799384AHP-SHJ-06-03DEF353.00RESIDENCE RENEW FOR MNO42861AHP-SHJ-06-03353Duplicate
4/6/201729296AHP-SHJ-06PQR90.00APPLIED PROFESSION CHANGE IN PQR42831AHP-SHJ-0690Duplicate
1/6/201731427AHP-SHJ-06-07ABC353.00ID FOR MOHAMMED ABC42741AHP-SHJ-06-07353Duplicate

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Thanks for the reply,

But there is a problem in the result.

DateBill No.Emp CodeEmp NameAmountDescriptionDateEmp CodeAmountResult
1/6/2017108824AHP-SHJ-06-07ABC353.00RESIDENCE RENEW FOR ABC42741AHP-SHJ-06-07353Duplicate
5/6/201799374AHP-SHJ-06-03DEF353.00RESIDENCE RENEW FOR DEF42861AHP-SHJ-06-03353Duplicate
22-6-201799385AHP-DXB-16-01GHI453.00RESIDENCE RENEW FOR GHI22-6-2017AHP-DXB-16-01453Duplicate
23-6-201748313AHP-DXB-BR-02-17JKL453.00NEW RESIDENCE FOR JKL23-6-2017AHP-DXB-BR-02-17453Duplicate
5/6/201799384AHP-SHJ-06-03DEF353.00RESIDENCE RENEW FOR MNO42861AHP-SHJ-06-03353Duplicate
4/6/201729296AHP-SHJ-06PQR90.00APPLIED PROFESSION CHANGE IN PQR42831AHP-SHJ-0690Duplicate
1/6/201731427AHP-SHJ-06-07ABC353.00ID FOR MOHAMMED ABC42741AHP-SHJ-06-07353Duplicate

<tbody>
</tbody>

maybe the cell references were not properly set, I've tested it on my end and it is working fine.. this formula marks the duplicate instances and not the first one.. anyway, I think you got the help that you needed..
 
Upvote 0

Forum statistics

Threads
1,214,780
Messages
6,121,525
Members
449,037
Latest member
tmmotairi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top