PDA

View Full Version : Solved: Add negatives?



Blackie50
04-22-2010, 01:17 AM
Hi,

I have a range of cells G43:G48 - each cell has a formula e.g.
=ROUND(E43*F43,2).

Is it possible to add only the negative results from these cells in another cell G49?

Not all the cells are used in every situation in which case I get a #N/A - I have tried to used the IFISERROR function but can't seem to figure it out.

any help appreciated

Jon

mdmackillop
04-22-2010, 01:30 AM
=SUMIF(G43:G48,"<0")

Blackie50
04-22-2010, 02:01 AM
Thanks v much - any ideas how to get the =ROUND(E43*F43,2) to include the if(iserror) function so it doesn't return #N/A if no values in E43 and/or F43.

regards
Jon

mdmackillop
04-22-2010, 02:56 AM
It should not error in that circumstance, but the general solution is
=IF(ISERR(ROUND(E43*F43,2)),"Error",ROUND(E43*F43,2))
"Error" can be replaced with 0 or "" or any other value/text

Blackie50
04-22-2010, 03:14 AM
Ok Thanks again - I had figured it out in the meantime - I got my brackets in the wrong place.

regards

Jon