OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

calculating totals from multiple colums

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
timknoop
Newbie
Newbie


Joined: 29 Jun 2011
Posts: 3

PostPosted: Mon Nov 28, 2011 12:31 pm    Post subject: calculating totals from multiple colums Reply with quote

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?
Back to top
View user's profile Send private message
Sliderule
Super User
Super User


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

PostPosted: Mon Nov 28, 2011 5:28 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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