[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
timknoop
Newbie

Joined: 29 Jun 2011
Posts: 3

 Posted: Mon Nov 28, 2011 12:31 pm    Post subject: calculating totals from multiple colums Hey i need to calculate totals from multiple cells but they are not all in the same columns. for example i have numbers in culumn 'B' in rows 5, 11, 12, 18-24, 27-30 AND in column 'G' rows 5-9, 11-16, 18-25, etc. How can i get OO to calculate all these numbers for me and if i were to add more rows (such as 'B' 6-12, 25-30, etc) would it total those numbers for me as well?
Sliderule
Super User

Joined: 29 May 2004
Posts: 2473
Location: 3rd Rock From The Sun

Posted: Mon Nov 28, 2011 5:28 pm    Post subject:

According to Calc Help ( F1 key or from the Menu: Help -> OpenOffice.org Help ) for SUM function :

 Calc Help: SUM function wrote: SUM Adds all the numbers in a range of cells. Syntax SUM(Number1; Number2; ...; Number30) Number 1 to Number 30 are up to 30 arguments whose sum is to be calculated.

Therefore, per your description, in the cell you want it to calculate the additions . . . it might be:

 Code: =SUM( B5; B11:B12; B18:B24; B27:B30; G5:G9; G11:G16; G18:G25 )

Likewise, per documentation, you can have up to 30 parameters, and, if more are needed, just use multiple SUM functions . . . where each SUM may have a maximum of 30 parameters.

I hope this helps, please be sure to let me / us know.

Sliderule

Thanks to add [Solved] in your first post Title ( edit button ) if your issue has been fixed / resolved.
moksrosha
Newbie

Joined: 17 Feb 2013
Posts: 1

 Posted: Sun Feb 17, 2013 11:17 pm    Post subject: I have two columns; unit price and total price and I need to get a running total at the bottom of each column. I've read a couple of Access books and they suggest using =Sum([Unit Price]) but I have not been able to make this work. Am I missing something somewhere? Do I need a query or can I run this directly from the main table?_________________ project training in ahmedabad
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group