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

Grouping/sorting similar numbers.

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


Joined: 04 Jun 2009
Posts: 2
Location: /dev/planet/earth/somewhere

PostPosted: Thu Jun 04, 2009 11:42 pm    Post subject: Grouping/sorting similar numbers. Reply with quote

Hello,

Is there a easy way to use Calc to resolve following problem:
I have info prodcut code, for example 123 and quantity, for example 2
There are same codes in several places in table.
Like:
123....3
223....2
123....1
332....5.

I need to have sum all quantity for product 123, as in this example, so i will have table with info:
123...4
223...2
332...5


Thank you for your help in advance.
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Fri Jun 05, 2009 1:21 am    Post subject: Reply with quote

http://www.openofficetips.com/?s=datapilot
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Fri Jun 05, 2009 5:22 am    Post subject: Reply with quote

Or, assuming codes in column A and quantities in column B:
=SUMIF(A1:A4;"=123";B1:B4)
however, this requires a formula for each code and the Data Pilot does not.
Back to top
View user's profile Send private message
Arpa
Newbie
Newbie


Joined: 04 Jun 2009
Posts: 2
Location: /dev/planet/earth/somewhere

PostPosted: Mon Jun 08, 2009 3:47 am    Post subject: Reply with quote

Thank you both, datapilot did the trick;)
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