"" + Number = #VALUE!

  • Thread starter Thread starter Donny
  • Start date Start date
D

Donny

I have an equation in A1:

=if(H1<45,"",H1)

This is fine, if H1 is less than 45, then A1 stays blank. I don't want
it to have a zero, because that would show up in a plot, it should be
blank. But, in cell B1, I want the equation:

=10+A1

This works fine if A1 has a value (<45), but it won't work if A1 has
"" in it. I want:

10 + "" = 10

not:
10 + "" = #VALUE!

Any suggestions without making "" be a zero?

Chris
 
Best to treat it with an if/then
If you want it to be A1+10, then do
=if(isblank(A1),10,A1+10)
 
Why not just use

=10+IF(A1<>"",A1,0)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
A1 can't be blank because it has a formla in it. Better to use:

=IF(A1="",10,A1+10)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 
One more:

=10+N(A1)


I have an equation in A1:

=if(H1<45,"",H1)

This is fine, if H1 is less than 45, then A1 stays blank. I don't want
it to have a zero, because that would show up in a plot, it should be
blank. But, in cell B1, I want the equation:

=10+A1

This works fine if A1 has a value (<45), but it won't work if A1 has
"" in it. I want:

10 + "" = 10

not:
10 + "" = #VALUE!

Any suggestions without making "" be a zero?

Chris
 
Are you sure that your "" doesn't get treated as zero in a plot the same way
that a zero is? In general, "" cells are treated as zeros, so to get the
plot to ignore it the recommendation is to replace "" in your formula by
NA().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top