Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 2010 - get result if cell 'between' certain numbers 1

Status
Not open for further replies.

dsmith910

Technical User
Jan 16, 2003
127
GB
Hi
Am sure I've seen something somewhere which will help!

I want to have a formula which says something like:

if(A1=between15and22,1,0)

i.e. if cell A1 has a value between 15 and 22 then put 1 otherwise 0

Anyone know what I need to do.
Thanks
 

hi,
[tt]
=if(and(A1>=15,A1<=22),1,0)
[/tt]


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top