SUM Function

U

uplink600

Hi

I have a simple =SUM function on a worksheet which adds the values in
column. Trouble is some of the values are #value!
errors and the =SUM function returns the same error. How do
I get the function =SUM(Orders!N8:N2000) to ignore the cells with th
error and just add the cells with normal currency values.

Please advise

Thanks

V
 
A

Andy Brown

How do
I get the function =SUM(Orders!N8:N2000) to ignore the cells with the
error and just add the cells with normal currency values.

Brute force-wise,

=SUMIF(range,">0")+SUMIF(range,"<0")

For more elegance, use Aladin Akyurek's suggested array (CTRL+Shift+Enter)
formula,

=SUM(IF(ISNUMBER(range),range))

Rgds,
Andy
 

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

Top