A report was exported to Excel. When using =sum(start:end)
I'm still too new with Excel to be sure of my answers; but, in my test
with numbers entered into cells as text, the following array formula
=SUM(--TEXT(A4:A8,"#."&REPT("#",15)))
entered using Ctrl+Shift+<Enter> seemed to work. Obviously, if you knew a
maximum number of decimal places, you could dump the REPT function call
and simply specify it.
I was thinking... assuming I am right and the array formula I posted is a
valid solution to the problem, there is probably no reason to use the REPT
function call... simply specifying 15 # signs after the decimal point would
make more sense. I was originally going to try and add only as many # signs
as the longest decimal and then decided that wasn't necessary... then, in my
haste, I simply plopped in a 15 into the REPT function instead of thinking
about what that meant). So, for the record, the array formula I am proposing
is
=SUM(--TEXT(A4:A8, "#.###############"))
again, entered by using Ctrl+Shift+<Enter>. Of course the above will fail if
the range of cells contains an empty cell. If you have to cater to that
possibility, it looks like this array formula could be used instead...
=SUM(--("0"&TEXT(A4:A8, "#.###############")))
again, entered by using Ctrl+Shift+<Enter>.
Rick