Incorrect Sum output (1 Viewer)

ScottXe

Registered User.
Local time
Today, 16:52
Joined
Jul 22, 2012
Messages
123
I have two columns getting the values from other worksheet. On other column, I have a simple sum function, such as =sum(P3,Q3). When the P3 is 0.01600046 and Q3 is blank, the output is 0.00000. Can someone advise the possible error for this scenario. Thanks!
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:52
Joined
May 7, 2009
Messages
19,246
=sum(if(isblank(p3),0,p3), if(isblank(q3),0,q3))
 

ScottXe

Registered User.
Local time
Today, 16:52
Joined
Jul 22, 2012
Messages
123
Thanks for your idea! It does not work out my issue. Upon close examination, the looked blank cell is not blank using isblank function. The cause is the looked numeric value is not a numeric value, text value. If I use value function with looked numeric value, the sum output is correct but the blank cell will cause incorrect output again. Is there any appropriate function for this scenario?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:52
Joined
May 7, 2009
Messages
19,246
add IsNumeric to your expression.

=sum(if(Or(isblank(p3),Not(IsNumber(p3))),0,p3), if(Or(isblank(q3),Not(IsNumber(q3))),0,q3))
 
Last edited:

ScottXe

Registered User.
Local time
Today, 16:52
Joined
Jul 22, 2012
Messages
123
It now turns out "#NAME?". Very strange!
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:52
Joined
May 7, 2009
Messages
19,246
i edited it instead of IsNumeric, i change it to IsNumber.
 

Users who are viewing this thread

Top Bottom