Toni
Please advise which LO version you are using and your OS. This will help us
determine if the problem is a know issue with a specific version of LO or
with a particular OS.
For your problem, I was able to replicate the behavior in LO 3.4.4 and try
the following:
=sum(if(isnumber(b5),-b5,0),if(isnumber(c5),-c5,0),if(isnumber(d5),d5,0,if(isnumber(e5),e5,0))
Alternate
=sum(if(isnumber(d5),d5,0),if(isnumber(e5),e5,0))-sum(if(isnumber(b5),b5,0),if(isnumber(c5),c5,0))
I am validating that the data is actually a number (isnumber(cell) = true)
and using either the value in the cell if true or 0 if it is not a number.
Without redesigning your entire spreadsheet this may be the simplest way to
fix your problem.
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.