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

How to Create A Table of Sums sorted by Labels?

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


Joined: 22 Oct 2007
Posts: 2

PostPosted: Mon Feb 02, 2009 8:02 pm    Post subject: How to Create A Table of Sums sorted by Labels? Reply with quote

I have some data that is of the following format (the column names are different than this, but this is just illustrative):

A 1
B 0
C 1
D 0
A 1
C 1
D 0
B 1
A 1
B 0
D 1
C 0

the letters are in one column, and the numbers are in the next column over.

What I would like to do is get Calc to calculate the sum of what each letter got.

In my example, for instance, I'd like something like:

A: 3
B: 1
C: 2
D: 1

Because if you add the numbers next to "A" through the entire data set, you get 3, etc.

Does this make sense? How do I do this in Calc?
_________________
I LOVE MYSELF
Back to top
View user's profile Send private message
Leion
Newbie
Newbie


Joined: 03 Feb 2009
Posts: 4

PostPosted: Tue Feb 03, 2009 1:55 am    Post subject: Reply with quote

Think you can look at the sumif function

try
=SUMIF(L4:L9;"=A";M4:M9)

replace the L4:L9 to the range that contains your ABC
and replace the M4:M9 with the number range
and replace the =A to =B and so on


see
http://www.openofficetips.com/blog/archives/2004/12/basic_functions_7.html
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