ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with Highlighting all duplicates in a row (https://www.excelbanter.com/excel-discussion-misc-queries/22900-help-highlighting-all-duplicates-row.html)

Jimv

Help with Highlighting all duplicates in a row
 
I am trying to highlight duplicates in a row and am using the explanation:

Highlighting Duplicate Entries

Our first task is to highlight the cells in Range1 that are duplicates. We
use Excel's Conditional
Formatting tool to accomplish this. First, highlight the entire Range1.
Then, select the
Conditional Formatting tool from the Format menu: Format-Conditional
Formatting.
Change the "Cell Value Is" option to "Formula Is" and enter the following
formula in the
formula text box:

=IF(COUNTIF(Range1, A5)1,TRUE,FALSE)

Where A5 is the first cell in Range1. Then, click the Format button and
select the font or
color you want your cell formatted with. Finally, click OK. Duplicate
entries in Range1 will be
formatted as you selected. For example, if "Able" occurs twice in Range1,
both
occurrences of "Able" will appear highlighted.

I am changing "A5" to the first cell in the row and still nothing happens.
what am I doing wrong?

thanks

Jim


Bob Phillips

Select the range as stated, and assuming that we are highlighting duplicates
in row 1 starting at a1, just use the formula

=COUNTIF($1:$1,A1)1

this shows all the duplicates, first and subsequent times.

If you just want to show subsequent times, use

=COUNTIF($A1:A1,A1)1

I would use the latter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jimv" wrote in message
...
I am trying to highlight duplicates in a row and am using the explanation:

Highlighting Duplicate Entries

Our first task is to highlight the cells in Range1 that are duplicates. We
use Excel's Conditional
Formatting tool to accomplish this. First, highlight the entire Range1.
Then, select the
Conditional Formatting tool from the Format menu: Format-Conditional
Formatting.
Change the "Cell Value Is" option to "Formula Is" and enter the following
formula in the
formula text box:

=IF(COUNTIF(Range1, A5)1,TRUE,FALSE)

Where A5 is the first cell in Range1. Then, click the Format button and
select the font or
color you want your cell formatted with. Finally, click OK. Duplicate
entries in Range1 will be
formatted as you selected. For example, if "Able" occurs twice in Range1,
both
occurrences of "Able" will appear highlighted.

I am changing "A5" to the first cell in the row and still nothing happens.
what am I doing wrong?

thanks

Jim




Jimv

Bob,

What if I am working in a colum?

"Bob Phillips" wrote:

Select the range as stated, and assuming that we are highlighting duplicates
in row 1 starting at a1, just use the formula

=COUNTIF($1:$1,A1)1

this shows all the duplicates, first and subsequent times.

If you just want to show subsequent times, use

=COUNTIF($A1:A1,A1)1

I would use the latter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jimv" wrote in message
...
I am trying to highlight duplicates in a row and am using the explanation:

Highlighting Duplicate Entries

Our first task is to highlight the cells in Range1 that are duplicates. We
use Excel's Conditional
Formatting tool to accomplish this. First, highlight the entire Range1.
Then, select the
Conditional Formatting tool from the Format menu: Format-Conditional
Formatting.
Change the "Cell Value Is" option to "Formula Is" and enter the following
formula in the
formula text box:

=IF(COUNTIF(Range1, A5)1,TRUE,FALSE)

Where A5 is the first cell in Range1. Then, click the Format button and
select the font or
color you want your cell formatted with. Finally, click OK. Duplicate
entries in Range1 will be
formatted as you selected. For example, if "Able" occurs twice in Range1,
both
occurrences of "Able" will appear highlighted.

I am changing "A5" to the first cell in the row and still nothing happens.
what am I doing wrong?

thanks

Jim





Bob Phillips

Then use

=COUNTIF($A$1:A1,A1)1

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jimv" wrote in message
...
Bob,

What if I am working in a colum?

"Bob Phillips" wrote:

Select the range as stated, and assuming that we are highlighting

duplicates
in row 1 starting at a1, just use the formula

=COUNTIF($1:$1,A1)1

this shows all the duplicates, first and subsequent times.

If you just want to show subsequent times, use

=COUNTIF($A1:A1,A1)1

I would use the latter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jimv" wrote in message
...
I am trying to highlight duplicates in a row and am using the

explanation:

Highlighting Duplicate Entries

Our first task is to highlight the cells in Range1 that are

duplicates. We
use Excel's Conditional
Formatting tool to accomplish this. First, highlight the entire

Range1.
Then, select the
Conditional Formatting tool from the Format menu: Format-Conditional
Formatting.
Change the "Cell Value Is" option to "Formula Is" and enter the

following
formula in the
formula text box:

=IF(COUNTIF(Range1, A5)1,TRUE,FALSE)

Where A5 is the first cell in Range1. Then, click the Format button

and
select the font or
color you want your cell formatted with. Finally, click OK. Duplicate
entries in Range1 will be
formatted as you selected. For example, if "Able" occurs twice in

Range1,
both
occurrences of "Able" will appear highlighted.

I am changing "A5" to the first cell in the row and still nothing

happens.
what am I doing wrong?

thanks

Jim







Jimv

Thanks Bob, that worked!

"Bob Phillips" wrote:

Then use

=COUNTIF($A$1:A1,A1)1

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jimv" wrote in message
...
Bob,

What if I am working in a colum?

"Bob Phillips" wrote:

Select the range as stated, and assuming that we are highlighting

duplicates
in row 1 starting at a1, just use the formula

=COUNTIF($1:$1,A1)1

this shows all the duplicates, first and subsequent times.

If you just want to show subsequent times, use

=COUNTIF($A1:A1,A1)1

I would use the latter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jimv" wrote in message
...
I am trying to highlight duplicates in a row and am using the

explanation:

Highlighting Duplicate Entries

Our first task is to highlight the cells in Range1 that are

duplicates. We
use Excel's Conditional
Formatting tool to accomplish this. First, highlight the entire

Range1.
Then, select the
Conditional Formatting tool from the Format menu: Format-Conditional
Formatting.
Change the "Cell Value Is" option to "Formula Is" and enter the

following
formula in the
formula text box:

=IF(COUNTIF(Range1, A5)1,TRUE,FALSE)

Where A5 is the first cell in Range1. Then, click the Format button

and
select the font or
color you want your cell formatted with. Finally, click OK. Duplicate
entries in Range1 will be
formatted as you selected. For example, if "Able" occurs twice in

Range1,
both
occurrences of "Able" will appear highlighted.

I am changing "A5" to the first cell in the row and still nothing

happens.
what am I doing wrong?

thanks

Jim









All times are GMT +1. The time now is 06:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com