Hi Noorain,

Thank you for the code, I think I'm getting some clue for my code,
I'll try and let you know, thanks again.

Best regards,
Amar

On 19/01/2012, NOORAIN ANSARI <noorain.ans...@gmail.com> wrote:
> Dear Amar,
>
> Please try it..
>
> Sub Find_Duplicate_Entry()
> Dim cel As Variant
> Dim myrng As Range
> Set myrng = Range("C2:C" & Range("C65536").End(xlUp).Row)
> myrng.Interior.ColorIndex = xlNone
> For Each cel In myrng
> clr = 10
> If Application.WorksheetFunction.CountIf(myrng, cel) > 1 Then
> cel.Interior.ColorIndex = 10 + clr
> clr = clr + 10
> End If
> Next
> End Sub
>
> --
> Thanks & regards,
> Noorain Ansari
> *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>
> *http://noorain-ansari.blogspot.com/* <http://noorain-ansari.blogspot.com/>
>
> On Thu, Jan 19, 2012 at 2:59 PM, Kasireddy Amarender
> <kassi.re...@gmail.com>wrote:
>
>> Hi Noorain,
>>
>> Thank you for these formulaes. but I'm actually using VBA macro's to
>> do a task it'll be really great if you could let me know in VBA.
>>
>> Here is my current code, I don't know I'm not able to highlight the
>> duplicates.
>>
>> Sub Test1()
>>
>> For J1 = 10 To 500
>>        If Cells(J1, 1).Value = "XYZ" And Cells(J1 + 1, 2) = "ABC" Then
>>                J1 = J1 + 1
>>            For k = 1 To 7
>>
>>            If Cells(J1 + k, 2).Value = "Key" Then
>>                    For Each i In Range("C:C")
>>                            If i.Value = Cells(J1, 3).Value Then
>>                                Count = Count + 1
>>                                If Count >= 1 Then Cells(J1 + k,
>> 3).Interior.color = 65535
>>                                'MsgBox "Amar"
>>                                'Cells(J1 + l + 1, 3).Interior.color =
>> 65535 + 2000
>>                            End If
>>                    Next i
>>            End If
>>            Next k
>>
>>            If Count >= 1 Then MsgBox "Duplicates are there, please check"
>>
>>        End If
>>
>> End Sub
>>
>>
>>
>>
>> On 19/01/2012, NOORAIN ANSARI <noorain.ans...@gmail.com> wrote:
>> > Dear Amar,
>> >
>> > Please use below formula to count total unique name
>> > *=SUM(1/COUNTIF(B2:B6,B2:B6))
>> > *press ctrl+Shift+Enter
>> >
>> > or  use this one to check unique or Duplicate Entry.
>> > *=IF(COUNTIF($B$2:B2,B2)>1,"Duplicate","Unique")
>> > *
>> > see attached sheet..................
>> >
>> > --
>> > Thanks & regards,
>> > Noorain Ansari
>> > *http://excelmacroworld.blogspot.com/*<
>> http://excelmacroworld.blogspot.com/>
>> > *http://noorain-ansari.blogspot.com/* <
>> http://noorain-ansari.blogspot.com/>
>> >
>> > On Thu, Jan 19, 2012 at 2:25 PM, Kasireddy Amarender
>> > <kassi.re...@gmail.com>wrote:
>> >
>> >> Hi Experts,
>> >>
>> >> I'm facing a problem in identifying duplicate names in a column.
>> >>
>> >> Here is what I'm looking for.
>> >>
>> >> If there are duplicates in column A i.e.
>> >>
>> >> A1 = Amar
>> >> A2= Vijay
>> >> A3 = Suresh
>> >> A4 = Ravi
>> >> A5 = Amar
>> >>
>> >> Then I would like to interior color A1 and A5 as they are duplicates,
>> >> I would like to use the cell references rather than Range's as in my
>> >> sheet Column is fixed but rows are not fixed.
>> >>
>> >> It'll be great if you can help me with this.
>> >>
>> >> Thanks in advance,
>> >> Amar
>> >>
>> >> --
>> >> FORUM RULES (986+ members already BANNED for violation)
>> >>
>> >> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> >> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> >> will not get quick attention or may not be answered.
>> >>
>> >> 2) Don't post a question in the thread of another member.
>> >>
>> >> 3) Don't post questions regarding breaking or bypassing any security
>> >> measure.
>> >>
>> >> 4) Acknowledge the responses you receive, good or bad.
>> >>
>> >> 5)  Cross-promotion of, or links to, forums competitive to this forum
>> >> in
>> >> signatures are prohibited.
>> >>
>> >> NOTE  : Don't ever post personal or confidential data in a workbook.
>> Forum
>> >> owners and members are not responsible for any loss.
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------------------------------
>> >> To post to this group, send email to excel-macros@googlegroups.com
>> >>
>> >
>> > --
>> > FORUM RULES (986+ members already BANNED for violation)
>> >
>> > 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will
>> > not get quick attention or may not be answered.
>> >
>> > 2) Don't post a question in the thread of another member.
>> >
>> > 3) Don't post questions regarding breaking or bypassing any security
>> > measure.
>> >
>> > 4) Acknowledge the responses you receive, good or bad.
>> >
>> > 5)  Cross-promotion of, or links to, forums competitive to this forum in
>> > signatures are prohibited.
>> >
>> > NOTE  : Don't ever post personal or confidential data in a workbook.
>> Forum
>> > owners and members are not responsible for any loss.
>> >
>> >
>> ------------------------------------------------------------------------------------------------------
>> > To post to this group, send email to excel-macros@googlegroups.com
>> >
>>
>> --
>> FORUM RULES (986+ members already BANNED for violation)
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>>
>> 2) Don't post a question in the thread of another member.
>>
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>>
>> 4) Acknowledge the responses you receive, good or bad.
>>
>> 5)  Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE  : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> ------------------------------------------------------------------------------------------------------
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
> not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5)  Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE  : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
> ------------------------------------------------------------------------------------------------------
> To post to this group, send email to excel-macros@googlegroups.com
>

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to