ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Multiple conditions for one function (https://www.excelbanter.com/excel-worksheet-functions/171377-multiple-conditions-one-function.html)

Minnie2627

Multiple conditions for one function
 
I want a function to occur when a value in one cell is greater than 0 and
when it equals zero. However when the cell is blank i do not want the
function to occur or for there to be anything visible in the cell. Right now
it is treating a blank cell as zero.

Ron Coderre

Multiple conditions for one function
 
With
A1: (a number, zero, or blank)

Try this:
=IF(A1="","",IF(A1,"your < zero formula","your = zero formula"))

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Minnie2627" wrote in message
...
I want a function to occur when a value in one cell is greater than 0 and
when it equals zero. However when the cell is blank i do not want the
function to occur or for there to be anything visible in the cell. Right
now
it is treating a blank cell as zero.




Carim[_2_]

Multiple conditions for one function
 
Hi,

Following should help ...

=IF(AND(A1=0,A1<""),"YES","")

HTH

Marcelo

Multiple conditions for one function
 
=if(a1=0;function;"")

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Minnie2627" escreveu:

I want a function to occur when a value in one cell is greater than 0 and
when it equals zero. However when the cell is blank i do not want the
function to occur or for there to be anything visible in the cell. Right now
it is treating a blank cell as zero.


David Biddulph[_2_]

Multiple conditions for one function
 
=IF(AND(A2<"",A2=0),"whatever you want","")
--
David Biddulph

"Minnie2627" wrote in message
...
I want a function to occur when a value in one cell is greater than 0 and
when it equals zero. However when the cell is blank i do not want the
function to occur or for there to be anything visible in the cell. Right
now
it is treating a blank cell as zero.




David Biddulph[_2_]

Multiple conditions for one function
 
And how does that treat a blank cell, Marcelo?
--
David Biddulph

"Marcelo" wrote in message
...
=if(a1=0;function;"")

hth


"Minnie2627" escreveu:

I want a function to occur when a value in one cell is greater than 0 and
when it equals zero. However when the cell is blank i do not want the
function to occur or for there to be anything visible in the cell. Right
now
it is treating a blank cell as zero.




Marcelo

Multiple conditions for one function
 
yes you are right, I lost some part of the question.

sorry for the mistake
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"David Biddulph" escreveu:

And how does that treat a blank cell, Marcelo?
--
David Biddulph

"Marcelo" wrote in message
...
=if(a1=0;function;"")

hth


"Minnie2627" escreveu:

I want a function to occur when a value in one cell is greater than 0 and
when it equals zero. However when the cell is blank i do not want the
function to occur or for there to be anything visible in the cell. Right
now
it is treating a blank cell as zero.






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

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