Is there a way to write a formula that will leave a cell blank if a
specified value is a positive number, but will calculate a percentage
if the value is a negative number? I know how to write these formulas
separately, but cannot seem to get it right bringing them together in
one cell. Not sure if this is even possible.

Signature
cgroninger
Arvi Laanemets - 09 May 2008 16:00 GMT
Hi
=IF(TrueCondition,Expression1,Expression2)
Like
=IF(X1="","",SUM(A:A))
Arvi Laanemets
> Is there a way to write a formula that will leave a cell blank if a
> specified value is a positive number, but will calculate a percentage
> if the value is a negative number? I know how to write these formulas
> separately, but cannot seem to get it right bringing them together in
> one cell. Not sure if this is even possible.
Gaurav - 09 May 2008 16:00 GMT
Something like
=if(B2="","",B2/A2)
the details you gave were only good to make assumptions. If this is not what
you want, post back with more details.
> Is there a way to write a formula that will leave a cell blank if a
> specified value is a positive number, but will calculate a percentage
> if the value is a negative number? I know how to write these formulas
> separately, but cannot seem to get it right bringing them together in
> one cell. Not sure if this is even possible.
Gaurav - 09 May 2008 16:04 GMT
Sorry it would be
=if(B2>0,"",B2/A2)
> Something like
>
[quoted text clipped - 8 lines]
>> separately, but cannot seem to get it right bringing them together in
>> one cell. Not sure if this is even possible.
Peo Sjoblom - 09 May 2008 16:01 GMT
=IF(A2>0,"",percentage_formula)

Signature
Regards,
Peo Sjoblom
> Is there a way to write a formula that will leave a cell blank if a
> specified value is a positive number, but will calculate a percentage
> if the value is a negative number? I know how to write these formulas
> separately, but cannot seem to get it right bringing them together in
> one cell. Not sure if this is even possible.