LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2010, 04:05 AM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
openoffice calc question


Hi, I hope this is the correct forum to post in but there is nothing else obvious. I want to group together all duplicates in a spreadsheet. Let's keep it simple, an ID which appears multiple times in the worksheet - let's look at ID, date, time (assume that the semi colons are cell separators)

1234;27-jan-2010;10:00:00
3579;27-jan-2010;12:30:00
1234;27-jan-2010;15:31:00

so 1234 appears 2 times today. First of all I get the IDs sorted - sort on column A:

1234;27-jan-2010;10:00:00
1234;27-jan-2010;15:31:00
3579;27-jan-2010;12:30:00

Now I want to add a column to highlight duplicates so I get a new column B, in B1 I add =if(a1=a2;"*";" ") and drag this down through the file giving me:

1234;*;27-jan-2010;10:00:00
1234; ;27-jan-2010;15:31:00
3579; ;27-jan-2010;12:30:00

Obviously the file is much bigger. I want to group all the asterisks together. On the surface I sort on column B but this column contains a formula so the response is unpredictable.

I am sure there is some function (USE VALUE?) where I can redefine the formula as the value it returns. In this case the cells would assume the values "*" or " " enabling me to sort.

Does this make any sense? Is there a USE VALUE function as I can not see it in any of the tutorials. TIA
 
Old 01-27-2010, 04:46 AM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
What you are trying to do is on the edge of what a spreadsheet can do and where a database takes over. However, when I have had similar problems I have normally resorted to using another sheet. You can refer to the data onto the second sheet and sort this sheet, because the original sheet will remain in the format given and the asterisks on the second sheet should group as you require.
 
1 members found this post helpful.
Old 01-27-2010, 02:40 PM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
thanks graemef. I will try the 2nd sheet and see what I can manage.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] OpenOffice Calc question: copying down Steve W Linux - Software 7 12-14-2008 04:38 AM
openoffice.org calc question hexter Linux - Desktop 5 09-02-2006 10:46 PM
openoffice calc question buffed317 Linux - General 1 09-11-2004 03:27 PM
OpenOffice Calc formula question Bigun Linux - Software 2 08-16-2004 03:07 PM
openoffice calc question... marsques Linux - Software 2 07-10-2004 04:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration