ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count If (https://www.excelbanter.com/excel-worksheet-functions/246809-count-if.html)

Eán[_2_]

Count If
 
How do I write a formula that will return a '1' if an adjoining cells
contains a value between 1 - 7?
Help please - many thanks.

JudithJubilee

Count If
 
Hi Ean,

Try:

=IF(AND(A1=1,A1<=7),1,0)
--
Hope this helps


"Eán" wrote:

How do I write a formula that will return a '1' if an adjoining cells
contains a value between 1 - 7?
Help please - many thanks.


Jacob Skaria

Count If
 
Try
=IF(AND(A1=1,A1<=7),1,"")

If this post helps click Yes
---------------
Jacob Skaria


"Eán" wrote:

How do I write a formula that will return a '1' if an adjoining cells
contains a value between 1 - 7?
Help please - many thanks.


Mike H

Count If
 


=--AND(A1=1,A1<=7)

Mike

"Eán" wrote:

How do I write a formula that will return a '1' if an adjoining cells
contains a value between 1 - 7?
Help please - many thanks.


Dave Peterson

Count If
 
Another one:

=(A1=1)*(A1<=7)

Multiplying is like using AND.
(Adding is like using OR)

Eán wrote:

How do I write a formula that will return a '1' if an adjoining cells
contains a value between 1 - 7?
Help please - many thanks.


--

Dave Peterson


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

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