Hi guys.
I'm putting together a spreadsheet and for the life of me i can't get a simple total sum/calculation to work. I've took a screenshot so you guys can see what i'm tryin to achieve.
Essentially, i want to add a column together, including both negative sums (in red) and positive (in green) to give me a combined total in a lower box. However, it keeps spitting out errors at me because of errors found in other rows.
I basically need a formula to ignore rows with errors and just add up all other rows. Can anyone write me one out quick? I'd really appreciate it.
Title Edited. A descriptive title for posts helps others who are searching for solutions and increases the chances of a reply [robleyd, Moderator].
Ignore errors in SUM
-
- Posts: 2
- Joined: Fri Jun 07, 2019 12:56 am
Ignore errors in SUM
Last edited by robleyd on Fri Jun 07, 2019 1:46 am, edited 1 time in total.
Reason: Title Edited
Reason: Title Edited
OpenOffice 3.1 on Windows 10
Re: An easy one (I hope)
It might be easier to not have errors in the first place You haven't indicated what the formulae in G, H and I are, but you could use IF and ISBLANK to only perform those calculations if there is data in whichever of A-F causes the divide by zero error. Something along the lines of:
Code: Select all
IF(ISBLANK(E5); ""; <your formula here>)
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
-
- Posts: 2
- Joined: Fri Jun 07, 2019 12:56 am
Re: Ignore errors in SUM
Hmm, not sure i understand. I've attached the file so you can maybe see for yourself what im trying to achieve. Aside from the basic maths behind it thats really all i can do - i don't know the functions or their capabilities so there's probably a far better way around it that i'm not seeing. Ignorance isn't bliss. lol
- Attachments
-
- Record (Weekly).ods
- (16.33 KiB) Downloaded 72 times
OpenOffice 3.1 on Windows 10
Re: Ignore errors in SUM
See the attachment where I've modified the first week according to what I think you want. Note that the structure you have is going to get a little unwieldy when you have hundreds of weeks of data. You might consider adding a first column containing the date; you can then use tools like Pivot Table to summarise your data.
There is a comprehensive list of functions here in the Wiki. If you are new to spreadsheets, you may find the following to be useful resources.
[Tutorial] Ten concepts that every Calc user should know
OpenOffice Spreadsheet Tutorial for Beginners with Examples
[Tutorial] Ten concepts that every Calc user should know
OpenOffice Spreadsheet Tutorial for Beginners with Examples
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
- MrProgrammer
- Moderator
- Posts: 4906
- Joined: Fri Jun 04, 2010 7:57 pm
- Location: Wisconsin, USA
Re: Ignore errors in SUM
See attachment, sheet Direct answer to your question. However I don't recommend that. It's better to avoid the #DIV/0! errors in the first place, as robleyd has demonstrated.Watchamacallit wrote:I basically need a formula to ignore rows with errors and just add up all other rows
I agree. Also, the spreadsheet is formatted to death. See attachment, sheet How I would organize the data. It includes a Pivot Table. If you want to spend your time formatting, use styles, not Format → Cells.robleyd wrote:Note that the structure you have is going to get a little unwieldy when you have hundreds of weeks of data.
At the very least, read the Ten Concepts tutorial.Watchamacallit wrote:Aside from the basic maths behind it thats really all i can do - i don't know the functions or their capabilities so there's probably a far better way around it that i'm not seeing.
If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the title. You can select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).