If value betwenn 0% and 50% than yes

C

chrismania

Hi guys
what is the formule for this problem
If the value of a cell is between 0% and 50% than yes else now

Thanks
 
C

Chip Pearson

Try something like

=IF(AND(A1>=0,A1<=0.5),"yes","no")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com (e-mail address removed)
 
R

Ron Rosenfeld

Hi guys
what is the formule for this problem
If the value of a cell is between 0% and 50% than yes else now


=IF(AND(A1,A1<50%),"Yes","Now")

(0% and 50% will both --> "Now" as they are not "between" as you specified)


--ron
 
P

Patrick Molloy

=IF(A1<=.5,"yes","no")

as this is a programming forum

If Range("A1").Value <= 0.5 then
Range("A2").Value = "yes"
else
Range("A2").Value = "no"
end if


Patrick Molloy
Microsoft Excel MVP
 
R

Ron Rosenfeld

=IF(AND(A1,A1<50%),"Yes","Now")

(0% and 50% will both --> "Now" as they are not "between" as you specified)


--ron

typo: Should have been =IF(AND(A1>0,A1<50%),1,0)


--ron
 
C

Chrissy

Not quite Patrick - you forgot about negative numbers.
Your solution should read
=IF(AND(A1>=0,A1<=0.5),"yes","no")

as this is a programming forum

If Range("A1").Value <= 0.5 AND Range("A1").Value >= 0 then
Range("A2").Value = "yes"
else
Range("A2").Value = "no"
end if

Also - the OP did use "yes" and "now".

Chrissy.



Patrick Molloy said:
=IF(A1<=.5,"yes","no")

as this is a programming forum

If Range("A1").Value <= 0.5 then
Range("A2").Value = "yes"
else
Range("A2").Value = "no"
end if


Patrick Molloy
Microsoft Excel MVP
-----Original Message-----
Hi guys
what is the formule for this problem
If the value of a cell is between 0% and 50% than yes else now

Thanks



------------------------------------------------
[/url]
~~ View and post usenet messages directly from http://www.ExcelForum.com/

.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top