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

generating a list of unique values in a range of data

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
rod.c.johnson
General User
General User


Joined: 25 Feb 2005
Posts: 14
Location: Greece

PostPosted: Wed Feb 24, 2010 8:01 am    Post subject: generating a list of unique values in a range of data Reply with quote

Sorry folks but it has been a long time since I worked with spreadsheets.

I have a range of data (numbers, dates and text) and I would like to generate a list of the unique number values in the range. I am not sure what the best way to do this is.

I had thought to sort the data by the number and use the if function to compare a number with the next number in the column, but this gives me many blank cells between each unique number. I would like something that doesn't require user intervention to generate the list, so as my data range grows, the list of unique values will grow.

There must be a simpler way but I can't think of it.

Any suggestions would be appreciated

Rod
_________________
Rod C. Johnson
------------------------------------------
Registered Linux User #249090
Back to top
View user's profile Send private message Send e-mail
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Wed Feb 24, 2010 1:09 pm    Post subject: Reply with quote

Select the column in question and apply menu:Data>Filter>Standard copying non-empty values to a target cell with no duplicates.
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
rod.c.johnson
General User
General User


Joined: 25 Feb 2005
Posts: 14
Location: Greece

PostPosted: Thu Feb 25, 2010 2:35 am    Post subject: Reply with quote

Thanks I can work with this. I wanted to have it constantly updated but I think I can figure it out now.
_________________
Rod C. Johnson
------------------------------------------
Registered Linux User #249090
Back to top
View user's profile Send private message Send e-mail
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Thu Feb 25, 2010 4:14 am    Post subject: Reply with quote

Define the source range as database range (Data>Define...)
Perform the operation once.
Keep your list properly. Insert cells for new records. This will update all references automatically (formulas, charts and more).

menu:Data>Refresh will refresh the target range.

In a database (even a database from a sheet) it could be as easy as:
SELECT DISTINCT "Column X" FROM "TableName"
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
Robert Tucker
Moderator
Moderator


Joined: 16 Aug 2004
Posts: 3407
Location: Manchester UK

PostPosted: Thu Feb 25, 2010 5:28 am    Post subject: Reply with quote

Note:

Google Docs has a "Unique" function.

http://docs.google.com/support/bin/answer.py?hl=en&answer=92022

[See http://www.oooforum.org/forum/viewtopic.phtml?t=93611‚Äč]
_________________
OpenOffice 4.0.0 and LibreOffice 4.x.x on Fedora 20, Ubuntu 13.10, Windows 8.1 Preview (Triple Boot)
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