ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Desplay zero if yes (https://www.excelbanter.com/excel-worksheet-functions/7764-desplay-zero-if-yes.html)

Pat

Desplay zero if yes
 
=I29-J29

If the above formula returns a value greater than "0" (zero) and S29
contains the value "Yes" return "0" On the otherhand if S29 contains nothing
return whtaever value =I29-J29 returns.

Is this possible?

Thank you if you know.

Pat



Frank Kabel

Hi
=IF(AND(I29-J290,S29,"Yes"),0,I29-J29)

--
Regards
Frank Kabel
Frankfurt, Germany

Pat wrote:
=I29-J29

If the above formula returns a value greater than "0" (zero) and S29
contains the value "Yes" return "0" On the otherhand if S29 contains
nothing return whtaever value =I29-J29 returns.

Is this possible?

Thank you if you know.

Pat




JE McGimpsey

one way:

=IF(ISBLANK(S29),I29-J29,IF(AND(I29J29,S29="Yes"),0,"Undefined"))



In article ,
"Pat" wrote:

=I29-J29

If the above formula returns a value greater than "0" (zero) and S29
contains the value "Yes" return "0" On the otherhand if S29 contains nothing
return whtaever value =I29-J29 returns.

Is this possible?

Thank you if you know.

Pat


Ian P

Should be: =IF(AND(I29-J290,S29="Yes"),0,I29-J29)

Ian P

"Frank Kabel" wrote:

Hi
=IF(AND(I29-J290,S29,"Yes"),0,I29-J29)

--
Regards
Frank Kabel
Frankfurt, Germany

Pat wrote:
=I29-J29

If the above formula returns a value greater than "0" (zero) and S29
contains the value "Yes" return "0" On the otherhand if S29 contains
nothing return whtaever value =I29-J29 returns.

Is this possible?

Thank you if you know.

Pat





Pat

Hello Frank,

I am getting a #VALUE! error returned.

Pat


"Frank Kabel" wrote in message
...
Hi
=IF(AND(I29-J290,S29,"Yes"),0,I29-J29)

--
Regards
Frank Kabel
Frankfurt, Germany

Pat wrote:
=I29-J29

If the above formula returns a value greater than "0" (zero) and S29
contains the value "Yes" return "0" On the otherhand if S29 contains
nothing return whtaever value =I29-J29 returns.

Is this possible?

Thank you if you know.

Pat







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

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