ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional Formatting Minimim Value (https://www.excelbanter.com/excel-discussion-misc-queries/261116-conditional-formatting-minimim-value.html)

Curt

Conditional Formatting Minimim Value
 
I would like to have conditional formatting for the minimum value in a range.
I only want to format the minimum value if only one cell has that value.

Here is the formula to check if there is only one minimum value:

=IF(COUNTIF(A1:A10,MIN(A1:A10))=1,TRUE,FALSE)


For example,

data set (4,5,5,5,5) format cell with "4"

data set (4,4,5,5,5) do not format any cells.

Luke M[_4_]

Conditional Formatting Minimim Value
 
Selecting cell A1, CF formula is:
=AND(A1=MIN($A1:$A10),COUNTIF($A1:$A10,MIN($A1:$A1 0))=1)

Copy across to apply to cells A1:A10, copy down as needed.

--
Best Regards,

Luke M
"Curt" wrote in message
...
I would like to have conditional formatting for the minimum value in a
range.
I only want to format the minimum value if only one cell has that value.

Here is the formula to check if there is only one minimum value:

=IF(COUNTIF(A1:A10,MIN(A1:A10))=1,TRUE,FALSE)


For example,

data set (4,5,5,5,5) format cell with "4"

data set (4,4,5,5,5) do not format any cells.




מיכאל (מיקי) אבידן

Conditional Formatting Minimim Value
 
For range A1:A10
Select the range and CF as per the formula:
=AND(A1=MIN(A$1:A$10),COUNTIF(A$1:A$10,MIN(A$1:A$1 0))=1)
Micky


"Curt" wrote:

I would like to have conditional formatting for the minimum value in a range.
I only want to format the minimum value if only one cell has that value.

Here is the formula to check if there is only one minimum value:

=IF(COUNTIF(A1:A10,MIN(A1:A10))=1,TRUE,FALSE)


For example,

data set (4,5,5,5,5) format cell with "4"

data set (4,4,5,5,5) do not format any cells.



All times are GMT +1. The time now is 04:01 AM.

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