Thread: #VALUE! in cell
View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default #VALUE! in cell

Remember, Pete, that the difference between
=SUM(B8:C8)*G8
and
=(B8+C8)*G8
is that the former will *not* return #VALUE! if B8 or C8 is text (such as
"0") but the latter *will* return a #VALUE! error in such circumstances.
Either will return #VALUE! if G8 is text.

The best solution would be to avoid putting text values into the formula,
but one solution would (strangely) be
=SUM(B8:C8)*SUM(G8), which would treat any text values as zero.
[We certainly would't want to see =SUM(B8+C8)*G8, or =SUM(B8+C8)*SUM(G8),
because either of those would return #VALUE! if B8 or C8 is text, and the
SUM function does nothing useful round B8+C8.]

A healthier solution would be =IF(COUNT(B8,C8,G8)=3,(B8+C8)*G8,"")
--
David Biddulph

"Pete_UK" wrote in message
...
Perhaps you have a formula in B8 or C8 that returns "0" rather than 0.
Note the first of these is a text value and this will give you the
#VALUE error if you try to use it with arithmetic. Or, it could be
that a formula in G8 is returning a number enclosed within quotes, and
again this is a text value and will give that error.

Only you know what formulae you have, as you have not shared those
with us.

Note that you don't really need the SUM in this case - you could write
your formula as:

=(B8+C8)*G8

Hope this helps.

Pete

On Dec 19, 1:38 am, datub wrote:
My formula is =SUM(B8:C8)*G8 where either B8 or C8 will always =0. How do
I
not get this value" #VALUE!" when the cells are not in use?