ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If and (and) formula to allow a zero answer (https://www.excelbanter.com/excel-worksheet-functions/5562-if-formula-allow-zero-answer.html)

inthestands

If and (and) formula to allow a zero answer
 
I am trying to use the following formula
=IF(AND(A21.31,A2<.95)"","",ROUND(B2,2))

The response I am trying to get is if A2 Is greater than 1.31 and less than
..95 then give me no answer in B2, but if A2 falls within this parameter, then
round B2 to two decimals into C2. What am I doing wrong?

thanks in advance,
--
inthestands

Trevor Shuttleworth

I suspect this is what you want:

=IF(OR(A21.31,A2<.95),"",ROUND(B2,2))

or

=IF(OR(A2.95,A2<1.31),"",ROUND(B2,2))

A2 cannot be greater than 1.31 AND less than 0.95. You can have a value
less than 1.31 AND greater than 0.95. And you can have a value that is
greater than 1.31 OR less than 0.95.

Regards

Trevor


"inthestands" wrote in message
...
I am trying to use the following formula
=IF(AND(A21.31,A2<.95)"","",ROUND(B2,2))

The response I am trying to get is if A2 Is greater than 1.31 and less
than
.95 then give me no answer in B2, but if A2 falls within this parameter,
then
round B2 to two decimals into C2. What am I doing wrong?

thanks in advance,
--
inthestands




Trevor Shuttleworth

Sorry

the second formula should have been:

=IF(AND(A2.95,A2<1.31),"",ROUND(B2,2))


Regards

Trevor


"Trevor Shuttleworth" wrote in message
...
I suspect this is what you want:

=IF(OR(A21.31,A2<.95),"",ROUND(B2,2))

or

=IF(OR(A2.95,A2<1.31),"",ROUND(B2,2))

A2 cannot be greater than 1.31 AND less than 0.95. You can have a value
less than 1.31 AND greater than 0.95. And you can have a value that is
greater than 1.31 OR less than 0.95.

Regards

Trevor


"inthestands" wrote in message
...
I am trying to use the following formula
=IF(AND(A21.31,A2<.95)"","",ROUND(B2,2))

The response I am trying to get is if A2 Is greater than 1.31 and less
than
.95 then give me no answer in B2, but if A2 falls within this parameter,
then
round B2 to two decimals into C2. What am I doing wrong?

thanks in advance,
--
inthestands






Frank Kabel

Hi
try:
=IF(OR(A21.31,A2<.95)"","",ROUND(B2,2))


--
Regards
Frank Kabel
Frankfurt, Germany

"inthestands" schrieb im
Newsbeitrag ...
I am trying to use the following formula
=IF(AND(A21.31,A2<.95)"","",ROUND(B2,2))

The response I am trying to get is if A2 Is greater than 1.31 and

less than
.95 then give me no answer in B2, but if A2 falls within this

parameter, then
round B2 to two decimals into C2. What am I doing wrong?

thanks in advance,
--
inthestands



Frank Kabel

Hi
make this
=IF(OR(A21.31,A2<.95),"",ROUND(B2,2))

--
Regards
Frank Kabel
Frankfurt, Germany

"Frank Kabel" schrieb im Newsbeitrag
...
Hi
try:
=IF(OR(A21.31,A2<.95)"","",ROUND(B2,2))


--
Regards
Frank Kabel
Frankfurt, Germany

"inthestands" schrieb im
Newsbeitrag

...
I am trying to use the following formula
=IF(AND(A21.31,A2<.95)"","",ROUND(B2,2))

The response I am trying to get is if A2 Is greater than 1.31 and

less than
.95 then give me no answer in B2, but if A2 falls within this

parameter, then
round B2 to two decimals into C2. What am I doing wrong?

thanks in advance,
--
inthestands




duane


AND(A21.31,A2<.95) is not possible so you should get a false result


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=274722


Ken Wright

Because A2 can NEVER be greater than 1.31 AND less than 0.95. I think you are
looking for OR:-

In cell C2

=IF(OR(A21.31,A2<.95),"",ROUND(B2,2))

However, this only sorts out cell C2, I don't know what you have/want in B2, so
I'll guess at something like:-

In cell B2

=IF(OR(A21.31,A2<.95),"",Your_Current_Formula_In_ B2)

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"inthestands" wrote in message
...
I am trying to use the following formula
=IF(AND(A21.31,A2<.95)"","",ROUND(B2,2))

The response I am trying to get is if A2 Is greater than 1.31 and less than
.95 then give me no answer in B2, but if A2 falls within this parameter, then
round B2 to two decimals into C2. What am I doing wrong?

thanks in advance,
--
inthestands



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004



K.S.Warrier

hi,
I think you may require the following
In b2 put the formula as =if(and(a21.31,a2<.95),"",round(a2,2))
You have shown one more "" before "" in the above.Please try.
K.S.Warrier

"inthestands" wrote:

I am trying to use the following formula
=IF(AND(A21.31,A2<.95)"","",ROUND(B2,2))

The response I am trying to get is if A2 Is greater than 1.31 and less than
.95 then give me no answer in B2, but if A2 falls within this parameter, then
round B2 to two decimals into C2. What am I doing wrong?

thanks in advance,
--
inthestands


Ken Wright

LOL - Take a look at what you just put in there, and then think about how those
two conditions could ever both be TRUE at the same time, which is the whole
point of the AND function. :-)

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"K.S.Warrier" wrote in message
...
hi,
I think you may require the following
In b2 put the formula as =if(and(a21.31,a2<.95),"",round(a2,2))
You have shown one more "" before "" in the above.Please try.
K.S.Warrier

"inthestands" wrote:

I am trying to use the following formula
=IF(AND(A21.31,A2<.95)"","",ROUND(B2,2))

The response I am trying to get is if A2 Is greater than 1.31 and less than
.95 then give me no answer in B2, but if A2 falls within this parameter, then
round B2 to two decimals into C2. What am I doing wrong?

thanks in advance,
--
inthestands



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004




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

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