Originally Posted by
DonkeyOte
If copied from the web I suspect the values contain a non-breaking space - this is CHAR(160)
To correct the simplest approach is to:
a) highlight the numerical data
b) run Edit -> Replace
-- Find What: hold ALT and type 0160 on Numerical keypad if using a laptop hold ALT and FN and type 0160 on numerical keypad.
-- Replace With: leave blank
-- click OK.
You should find your numerical values are coerced to numbers and your SUM now returns a value.
The other alternative which works without altering the underlying values is to use SUMPRODUCT rather than SUM, ie:
=SUMPRODUCT(--SUBSTITUTE(A1:A10,CHAR(160),""))
but this is less efficient than correcting the underlying data first hand
Bookmarks