ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF function to blank without getting #value in sum function (https://www.excelbanter.com/excel-worksheet-functions/27862-if-function-blank-without-getting-value-sum-function.html)

Brad Stevenson

IF function to blank without getting #value in sum function
 
I am trying to format an IF function to relay information from one cell to
the other. If I use the value of 0 (zero) in the "true if false" portion of
my function, then my SUM function for the row works fine... but I want the
cell to be blank if there is no info to relay. However, when I use the ""
for blank, then I get the #value figure in my SUM function.

The SUM function is from a worksheet which was formatted by someone else,
and I cannot change it. Is there a way to change the IF function to perform
a cell blank if false, but not to put the #value in my SUM function?

Thks.



Max

Possibly, with your IFs set to return zeros instead of ""s, a simple way to
get a clean look would be just to suppress extraneous zeros from showing on
the sheet, via:
Click Tools Options View tab Uncheck "Zero values" OK
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Brad Stevenson" wrote in message
...
I am trying to format an IF function to relay information from one cell to
the other. If I use the value of 0 (zero) in the "true if false" portion

of
my function, then my SUM function for the row works fine... but I want the
cell to be blank if there is no info to relay. However, when I use the ""
for blank, then I get the #value figure in my SUM function.

The SUM function is from a worksheet which was formatted by someone else,
and I cannot change it. Is there a way to change the IF function to

perform
a cell blank if false, but not to put the #value in my SUM function?

Thks.





Brad Stevenson

OK I feel dumb now.

Thanks Max!

Brad


"Max" wrote in message
...
Possibly, with your IFs set to return zeros instead of ""s, a simple way
to
get a clean look would be just to suppress extraneous zeros from showing
on
the sheet, via:
Click Tools Options View tab Uncheck "Zero values" OK
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Brad Stevenson" wrote in message
...
I am trying to format an IF function to relay information from one cell
to
the other. If I use the value of 0 (zero) in the "true if false" portion

of
my function, then my SUM function for the row works fine... but I want
the
cell to be blank if there is no info to relay. However, when I use the
""
for blank, then I get the #value figure in my SUM function.

The SUM function is from a worksheet which was formatted by someone else,
and I cannot change it. Is there a way to change the IF function to

perform
a cell blank if false, but not to put the #value in my SUM function?

Thks.







Biff

Hi!

The SUM() function will ignore text so if you are using a formula that
returns formula blanks ("") it should work.

Is your sum function actually just something like this:

=A1+A2+A3+A4 ???

A formula like that above will return an error if there are text entries in
the range(which is what formula blanks are - TEXT)

If, as you say, you can't change it then a possible work around is to have
your other formula return zero and use conditional formatting to hide the
zero. Just set the font color to be the same as the fill color if the cell
value equals zero.

Biff

"Brad Stevenson" wrote in message
...
I am trying to format an IF function to relay information from one cell to
the other. If I use the value of 0 (zero) in the "true if false" portion
of my function, then my SUM function for the row works fine... but I want
the cell to be blank if there is no info to relay. However, when I use the
"" for blank, then I get the #value figure in my SUM function.

The SUM function is from a worksheet which was formatted by someone else,
and I cannot change it. Is there a way to change the IF function to
perform a cell blank if false, but not to put the #value in my SUM
function?

Thks.




Max

You're welcome, Brad !

OK I feel dumb now


LOL! I felt the same way, too, until I learnt about this and the other
10,000 or so things from the kind folks here in the excel newsgroups <g

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Brad Stevenson" wrote in message
...
OK I feel dumb now.

Thanks Max!

Brad




Defoes Right Boot

Another possibility is to use the ISERROR function and nest your original IF
function within another like this :

=IF(ISERROR(original IF function),"",original IF function)

This basically says "If the original IF function returns an error, return a
blank cell, otherwise return the value from the original IF function."

HTH

Phil

"Brad Stevenson" wrote:

I am trying to format an IF function to relay information from one cell to
the other. If I use the value of 0 (zero) in the "true if false" portion of
my function, then my SUM function for the row works fine... but I want the
cell to be blank if there is no info to relay. However, when I use the ""
for blank, then I get the #value figure in my SUM function.

The SUM function is from a worksheet which was formatted by someone else,
and I cannot change it. Is there a way to change the IF function to perform
a cell blank if false, but not to put the #value in my SUM function?

Thks.





All times are GMT +1. The time now is 03:15 AM.

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