Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Putty
 
Posts: n/a
Default How do I conditional format for data that's repeated

I would like to highlight data using Conditional Formatting from a list of
numbers but only want to highlight the 2 smallest numbers.

E.g. Data list = 6,7,8,1,9,2,4,2

The result should highlight the number 1 BUT ONLY THE FIRST 2 - I don't want
both 2s highlighted.

Thanks,

  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
if your data is in A1:A10 try the following:
- select this range
- goto the conditional format dialog
- enter the following formula:
=RANK(A1,$A$1:$A$10,TRUE)+COUNTIF($A$1:$A1,A1)-1<=2
- choose your color

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
I would like to highlight data using Conditional Formatting from a

list of
numbers but only want to highlight the 2 smallest numbers.

E.g. Data list = 6,7,8,1,9,2,4,2

The result should highlight the number 1 BUT ONLY THE FIRST 2 - I

don't want
both 2s highlighted.

Thanks,


  #3   Report Post  
Putty
 
Posts: n/a
Default

This still highlights the repeated number (2 in my example). HELP!

"Frank Kabel" wrote:

Hi
if your data is in A1:A10 try the following:
- select this range
- goto the conditional format dialog
- enter the following formula:
=RANK(A1,$A$1:$A$10,TRUE)+COUNTIF($A$1:$A1,A1)-1<=2
- choose your color

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
I would like to highlight data using Conditional Formatting from a

list of
numbers but only want to highlight the 2 smallest numbers.

E.g. Data list = 6,7,8,1,9,2,4,2

The result should highlight the number 1 BUT ONLY THE FIRST 2 - I

don't want
both 2s highlighted.

Thanks,



  #4   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
I tested it for your data example and it worked for me:
- in which cells is your data exactly
- what is the exact formula you have entered

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
This still highlights the repeated number (2 in my example). HELP!

"Frank Kabel" wrote:

Hi
if your data is in A1:A10 try the following:
- select this range
- goto the conditional format dialog
- enter the following formula:
=RANK(A1,$A$1:$A$10,TRUE)+COUNTIF($A$1:$A1,A1)-1<=2
- choose your color

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
I would like to highlight data using Conditional Formatting from

a
list of
numbers but only want to highlight the 2 smallest numbers.

E.g. Data list = 6,7,8,1,9,2,4,2

The result should highlight the number 1 BUT ONLY THE FIRST 2 - I

don't want
both 2s highlighted.

Thanks,




  #5   Report Post  
Putty
 
Posts: n/a
Default

My data is in B3:R3 and I used:
=RANK(B3,$B$3:$R$3,TRUE)+COUNTIF($B$3:$B3,B3)-1<=2

and I will copy this formula to many rows below it.

Many thanks ...
Jeff



"Frank Kabel" wrote:

Hi
I tested it for your data example and it worked for me:
- in which cells is your data exactly
- what is the exact formula you have entered

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
This still highlights the repeated number (2 in my example). HELP!

"Frank Kabel" wrote:

Hi
if your data is in A1:A10 try the following:
- select this range
- goto the conditional format dialog
- enter the following formula:
=RANK(A1,$A$1:$A$10,TRUE)+COUNTIF($A$1:$A1,A1)-1<=2
- choose your color

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
I would like to highlight data using Conditional Formatting from

a
list of
numbers but only want to highlight the 2 smallest numbers.

E.g. Data list = 6,7,8,1,9,2,4,2

The result should highlight the number 1 BUT ONLY THE FIRST 2 - I
don't want
both 2s highlighted.

Thanks,







  #6   Report Post  
Putty
 
Posts: n/a
Default

Woops I meant ...

=RANK(B3,$B3:$R3,TRUE)+COUNTIF($B3:$R3,B3)-1<=2

and my data is:
7,10,9,7,7,9,6,4,6,2,1,3,2,6,7,8,7

The 1 and the first 2 should get highlighted.

Thanks again.



"Putty" wrote:

My data is in B3:R3 and I used:
=RANK(B3,$B$3:$R$3,TRUE)+COUNTIF($B$3:$B3,B3)-1<=2

and I will copy this formula to many rows below it.

Many thanks ...
Jeff



"Frank Kabel" wrote:

Hi
I tested it for your data example and it worked for me:
- in which cells is your data exactly
- what is the exact formula you have entered

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
This still highlights the repeated number (2 in my example). HELP!

"Frank Kabel" wrote:

Hi
if your data is in A1:A10 try the following:
- select this range
- goto the conditional format dialog
- enter the following formula:
=RANK(A1,$A$1:$A$10,TRUE)+COUNTIF($A$1:$A1,A1)-1<=2
- choose your color

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
I would like to highlight data using Conditional Formatting from

a
list of
numbers but only want to highlight the 2 smallest numbers.

E.g. Data list = 6,7,8,1,9,2,4,2

The result should highlight the number 1 BUT ONLY THE FIRST 2 - I
don't want
both 2s highlighted.

Thanks,





  #7   Report Post  
Putty
 
Posts: n/a
Default

To clarify ... it doesn't have to be the FIRST 2 ... but rather either 2.

"Putty" wrote:

Woops I meant ...

=RANK(B3,$B3:$R3,TRUE)+COUNTIF($B3:$R3,B3)-1<=2

and my data is:
7,10,9,7,7,9,6,4,6,2,1,3,2,6,7,8,7

The 1 and the first 2 should get highlighted.

Thanks again.



"Putty" wrote:

My data is in B3:R3 and I used:
=RANK(B3,$B$3:$R$3,TRUE)+COUNTIF($B$3:$B3,B3)-1<=2

and I will copy this formula to many rows below it.

Many thanks ...
Jeff



"Frank Kabel" wrote:

Hi
I tested it for your data example and it worked for me:
- in which cells is your data exactly
- what is the exact formula you have entered

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
This still highlights the repeated number (2 in my example). HELP!

"Frank Kabel" wrote:

Hi
if your data is in A1:A10 try the following:
- select this range
- goto the conditional format dialog
- enter the following formula:
=RANK(A1,$A$1:$A$10,TRUE)+COUNTIF($A$1:$A1,A1)-1<=2
- choose your color

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
I would like to highlight data using Conditional Formatting from
a
list of
numbers but only want to highlight the 2 smallest numbers.

E.g. Data list = 6,7,8,1,9,2,4,2

The result should highlight the number 1 BUT ONLY THE FIRST 2 - I
don't want
both 2s highlighted.

Thanks,





  #8   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
use:
=RANK(B3,$B$3:$R$3,TRUE)+COUNTIF($B$3:B$3,B3)-1<=2

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
My data is in B3:R3 and I used:
=RANK(B3,$B$3:$R$3,TRUE)+COUNTIF($B$3:$B3,B3)-1<=2

and I will copy this formula to many rows below it.

Many thanks ...
Jeff



"Frank Kabel" wrote:

Hi
I tested it for your data example and it worked for me:
- in which cells is your data exactly
- what is the exact formula you have entered

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
This still highlights the repeated number (2 in my example).

HELP!

"Frank Kabel" wrote:

Hi
if your data is in A1:A10 try the following:
- select this range
- goto the conditional format dialog
- enter the following formula:
=RANK(A1,$A$1:$A$10,TRUE)+COUNTIF($A$1:$A1,A1)-1<=2
- choose your color

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im

Newsbeitrag
...
I would like to highlight data using Conditional Formatting

from
a
list of
numbers but only want to highlight the 2 smallest numbers.

E.g. Data list = 6,7,8,1,9,2,4,2

The result should highlight the number 1 BUT ONLY THE FIRST

2 - I
don't want
both 2s highlighted.

Thanks,






  #9   Report Post  
Putty
 
Posts: n/a
Default

Frank ... Thank you so much! You the man!

Jeff

"Frank Kabel" wrote:

Hi
use:
=RANK(B3,$B$3:$R$3,TRUE)+COUNTIF($B$3:B$3,B3)-1<=2

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
My data is in B3:R3 and I used:
=RANK(B3,$B$3:$R$3,TRUE)+COUNTIF($B$3:$B3,B3)-1<=2

and I will copy this formula to many rows below it.

Many thanks ...
Jeff



"Frank Kabel" wrote:

Hi
I tested it for your data example and it worked for me:
- in which cells is your data exactly
- what is the exact formula you have entered

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im Newsbeitrag
...
This still highlights the repeated number (2 in my example).

HELP!

"Frank Kabel" wrote:

Hi
if your data is in A1:A10 try the following:
- select this range
- goto the conditional format dialog
- enter the following formula:
=RANK(A1,$A$1:$A$10,TRUE)+COUNTIF($A$1:$A1,A1)-1<=2
- choose your color

--
Regards
Frank Kabel
Frankfurt, Germany

"Putty" schrieb im

Newsbeitrag
...
I would like to highlight data using Conditional Formatting

from
a
list of
numbers but only want to highlight the 2 smallest numbers.

E.g. Data list = 6,7,8,1,9,2,4,2

The result should highlight the number 1 BUT ONLY THE FIRST

2 - I
don't want
both 2s highlighted.

Thanks,







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
conditional format of data tables in charts [email protected] Charts and Charting in Excel 2 January 25th 05 04:56 PM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 8th 04 12:02 AM
make a conditional format the default Fred Evans Excel Discussion (Misc queries) 3 December 6th 04 06:01 AM
Conditional format rexmann Excel Discussion (Misc queries) 4 December 2nd 04 01:01 PM
Conditional Format With SUMIF Minitman Excel Worksheet Functions 3 November 1st 04 03:58 PM


All times are GMT +1. The time now is 09:52 AM.

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

About Us

"It's about Microsoft Excel"