#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 173
Default Counting duplicates

I need to be able to show any duplicates in a list it will look like this

A B C D

ROAD NAME NUMBER STATUS NUMBER OF TIMES APPEARED

I need to highlight the duplicates so that if a road name and a house in
that road keeps appearing with the same status will be either (Yes or no) i
can have in a column the number of times it has appeared and maybe highlight
its latest entry in a colour so for example Gerald Road No:14 appears for the
third time the latest entry has 3 in red in the D column. Ideally as they
type it in it will show them then.

This really has me stumped i have been looking at other macros or formulas
but i am still stuck
Many Thanks for looking
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Counting duplicates

Add a formula in D2

=SUMPRODUCT(--($A$1:$A$100=A1),--($B$1:$B$100=B1)

to get the count.

Then use conditional formatting to highlight them

select A2:D100
goto menu FormatConditional Formatting
change Condition to Formula Is
add a formula of =$E21
click Format button
select Pattern tab
choose a colour
OK
OK

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Neil" wrote in message
...
I need to be able to show any duplicates in a list it will look like this

A B C D

ROAD NAME NUMBER STATUS NUMBER OF TIMES APPEARED

I need to highlight the duplicates so that if a road name and a house in
that road keeps appearing with the same status will be either (Yes or no)

i
can have in a column the number of times it has appeared and maybe

highlight
its latest entry in a colour so for example Gerald Road No:14 appears for

the
third time the latest entry has 3 in red in the D column. Ideally as they
type it in it will show them then.

This really has me stumped i have been looking at other macros or formulas
but i am still stuck
Many Thanks for looking



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 173
Default Counting duplicates

Thanks for the reply Bob
I may be a bit stupid here but i cannot get it to work correctly or maybe i
explained myself wrong.
I am trying to get it so in the D column it will show if that the matching
entry in A and B ( the address) will show if it has been entered more than 2
times if in column c i have "yes" in it. so if it is more than 2 times i can
use a filter to list the address that meet these conditions. And the
highlighting the address if it appears more than once on the last entry.
Sorry it seems so complicated.
But your help is greatly appreicated

Thanks again

"Bob Phillips" wrote:

Add a formula in D2

=SUMPRODUCT(--($A$1:$A$100=A1),--($B$1:$B$100=B1)

to get the count.

Then use conditional formatting to highlight them

select A2:D100
goto menu FormatConditional Formatting
change Condition to Formula Is
add a formula of =$E21
click Format button
select Pattern tab
choose a colour
OK
OK

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Neil" wrote in message
...
I need to be able to show any duplicates in a list it will look like this

A B C D

ROAD NAME NUMBER STATUS NUMBER OF TIMES APPEARED

I need to highlight the duplicates so that if a road name and a house in
that road keeps appearing with the same status will be either (Yes or no)

i
can have in a column the number of times it has appeared and maybe

highlight
its latest entry in a colour so for example Gerald Road No:14 appears for

the
third time the latest entry has 3 in red in the D column. Ideally as they
type it in it will show them then.

This really has me stumped i have been looking at other macros or formulas
but i am still stuck
Many Thanks for looking




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Counting duplicates

You need an extra condition it seems

=SUMPRODUCT(--($C$1:$C$100="Yes"),--($A$1:$A$100=A1),--($B$1:$B$100=B1)


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Neil" wrote in message
...
Thanks for the reply Bob
I may be a bit stupid here but i cannot get it to work correctly or maybe

i
explained myself wrong.
I am trying to get it so in the D column it will show if that the matching
entry in A and B ( the address) will show if it has been entered more than

2
times if in column c i have "yes" in it. so if it is more than 2 times i

can
use a filter to list the address that meet these conditions. And the
highlighting the address if it appears more than once on the last entry.
Sorry it seems so complicated.
But your help is greatly appreicated

Thanks again

"Bob Phillips" wrote:

Add a formula in D2

=SUMPRODUCT(--($A$1:$A$100=A1),--($B$1:$B$100=B1)

to get the count.

Then use conditional formatting to highlight them

select A2:D100
goto menu FormatConditional Formatting
change Condition to Formula Is
add a formula of =$E21
click Format button
select Pattern tab
choose a colour
OK
OK

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Neil" wrote in message
...
I need to be able to show any duplicates in a list it will look like

this

A B C D

ROAD NAME NUMBER STATUS NUMBER OF TIMES APPEARED

I need to highlight the duplicates so that if a road name and a house

in
that road keeps appearing with the same status will be either (Yes or

no)
i
can have in a column the number of times it has appeared and maybe

highlight
its latest entry in a colour so for example Gerald Road No:14 appears

for
the
third time the latest entry has 3 in red in the D column. Ideally as

they
type it in it will show them then.

This really has me stumped i have been looking at other macros or

formulas
but i am still stuck
Many Thanks for looking






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 173
Default Counting duplicates

Thanks Bob

It works great but is it possible to amend it so if the column that has YES
in is blank it ignores the count on the entry as the number appears in the
count when it has the same address but a blank in the yes column, although it
doesn't add this to the total.it just means on the filter they can select for
example all 3 entries but just show the latest so they won't have the same
address listed on the count several times? sorry to be a pain

Many thanks

"Bob Phillips" wrote:

You need an extra condition it seems

=SUMPRODUCT(--($C$1:$C$100="Yes"),--($A$1:$A$100=A1),--($B$1:$B$100=B1)


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Neil" wrote in message
...
Thanks for the reply Bob
I may be a bit stupid here but i cannot get it to work correctly or maybe

i
explained myself wrong.
I am trying to get it so in the D column it will show if that the matching
entry in A and B ( the address) will show if it has been entered more than

2
times if in column c i have "yes" in it. so if it is more than 2 times i

can
use a filter to list the address that meet these conditions. And the
highlighting the address if it appears more than once on the last entry.
Sorry it seems so complicated.
But your help is greatly appreicated

Thanks again

"Bob Phillips" wrote:

Add a formula in D2

=SUMPRODUCT(--($A$1:$A$100=A1),--($B$1:$B$100=B1)

to get the count.

Then use conditional formatting to highlight them

select A2:D100
goto menu FormatConditional Formatting
change Condition to Formula Is
add a formula of =$E21
click Format button
select Pattern tab
choose a colour
OK
OK

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Neil" wrote in message
...
I need to be able to show any duplicates in a list it will look like

this

A B C D

ROAD NAME NUMBER STATUS NUMBER OF TIMES APPEARED

I need to highlight the duplicates so that if a road name and a house

in
that road keeps appearing with the same status will be either (Yes or

no)
i
can have in a column the number of times it has appeared and maybe
highlight
its latest entry in a colour so for example Gerald Road No:14 appears

for
the
third time the latest entry has 3 in red in the D column. Ideally as

they
type it in it will show them then.

This really has me stumped i have been looking at other macros or

formulas
but i am still stuck
Many Thanks for looking








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Counting duplicates

Do you want to repeat that with different words?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Neil" wrote in message
...
Thanks Bob

It works great but is it possible to amend it so if the column that has

YES
in is blank it ignores the count on the entry as the number appears in the
count when it has the same address but a blank in the yes column, although

it
doesn't add this to the total.it just means on the filter they can select

for
example all 3 entries but just show the latest so they won't have the same
address listed on the count several times? sorry to be a pain

Many thanks

"Bob Phillips" wrote:

You need an extra condition it seems

=SUMPRODUCT(--($C$1:$C$100="Yes"),--($A$1:$A$100=A1),--($B$1:$B$100=B1)


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Neil" wrote in message
...
Thanks for the reply Bob
I may be a bit stupid here but i cannot get it to work correctly or

maybe
i
explained myself wrong.
I am trying to get it so in the D column it will show if that the

matching
entry in A and B ( the address) will show if it has been entered more

than
2
times if in column c i have "yes" in it. so if it is more than 2 times

i
can
use a filter to list the address that meet these conditions. And the
highlighting the address if it appears more than once on the last

entry.
Sorry it seems so complicated.
But your help is greatly appreicated

Thanks again

"Bob Phillips" wrote:

Add a formula in D2

=SUMPRODUCT(--($A$1:$A$100=A1),--($B$1:$B$100=B1)

to get the count.

Then use conditional formatting to highlight them

select A2:D100
goto menu FormatConditional Formatting
change Condition to Formula Is
add a formula of =$E21
click Format button
select Pattern tab
choose a colour
OK
OK

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Neil" wrote in message
...
I need to be able to show any duplicates in a list it will look

like
this

A B C

D

ROAD NAME NUMBER STATUS NUMBER OF TIMES APPEARED

I need to highlight the duplicates so that if a road name and a

house
in
that road keeps appearing with the same status will be either (Yes

or
no)
i
can have in a column the number of times it has appeared and maybe
highlight
its latest entry in a colour so for example Gerald Road No:14

appears
for
the
third time the latest entry has 3 in red in the D column. Ideally

as
they
type it in it will show them then.

This really has me stumped i have been looking at other macros or

formulas
but i am still stuck
Many Thanks for looking








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting and duplicates Jeff Excel Discussion (Misc queries) 1 October 23rd 06 03:18 PM
counting duplicates Among Many Sheets, Possible?? Mhz New Users to Excel 5 July 5th 06 02:23 AM
i need to find duplicates! ASAP mj Excel Worksheet Functions 4 February 25th 06 12:50 AM
Finding Duplicates nospaminlich Excel Worksheet Functions 4 February 5th 05 11:57 PM
Counting Repeated text or duplicates in a list Repeatdude Excel Discussion (Misc queries) 5 November 26th 04 07:10 PM


All times are GMT +1. The time now is 04:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"