ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula: If 2 values (in a range of six) are >3 then TRUE, FALSE (https://www.excelbanter.com/excel-discussion-misc-queries/49567-formula-if-2-values-range-six-%3E3-then-true-false.html)

IFfunction

Formula: If 2 values (in a range of six) are >3 then TRUE, FALSE
 
I would like to write an IF formula with the condition:
IF two or more values in a range of six values are <3 then state "true"

I only know how to conditon "if one number in a range is <3 then true. How
to do it when you want to know if there are at least two numbers that show <3?


Niek Otten

=COUNTIF(A1:A6,"<3")2

Or, if you require Text instead of Booleans,

=IF(COUNTIF(A1:A6,"<3")2,"True","False")

Kind regards,

Niek Otten

"IFfunction" wrote in message
...
I would like to write an IF formula with the condition:
IF two or more values in a range of six values are <3 then state "true"

I only know how to conditon "if one number in a range is <3 then true. How
to do it when you want to know if there are at least two numbers that show
<3?




Bob Phillips

As an example

=IF(COUNTIF(A1:E1,"<3")1,"true","")

--
HTH

Bob Phillips

"IFfunction" wrote in message
...
I would like to write an IF formula with the condition:
IF two or more values in a range of six values are <3 then state "true"

I only know how to conditon "if one number in a range is <3 then true. How
to do it when you want to know if there are at least two numbers that show

<3?





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

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