On 18/07/11 10:35, Wayne Stidolph wrote:
I have a variable numbers of data elements for each day, and I'd like to
hide all but the last of each day (or export only the last-of-day values);
is there an easy way?

Example data:
row | date | reading number | value | ...
1 | 7/1/2011 | 1 | 3
2 | 7/2/2011 | 1 | 6
3 | 7/2/2011 | 2 | 7
4 | 7/2/2011 | 3 | 5
5 | 7/4/2011 | 1 | 4
6 | 7/5/2011 | 1 | 5
7 | 7/5/2011 | 2 | 6

So I'd like to extract:
1 | 7/1/2011 | 1 | 3


4 | 7/2/2011 | 3 | 5
5 | 7/4/2011 | 1 | 4

7 | 7/5/2011 | 2 | 6

Is there a way to use conditional formatting to hide a row, based on a test
of the reading number of the current row compared to the reading number of
the next row?

Hi Wayne,

Conditional formatting just changes the look. Not sure it can be used to hide data.

Create an extra column after reading row. Put formula that compares next rows reading number with current rows reading number, insert a value - e.g. 'END', to represent end of day - then use autofilter to hide the data you don't want to see.

The formula would look something like this...

=IF(CurrentRowReadingNumber > NextRowReadingNumber, "END", "")

--
Cheers Simon

   Simon Cropper
   Website Administrator
   http://www.fossworkflowguides.com
   The fossWorkflow Guides
   (c) Simon Cropper CC-BY-SA 3.0 Australia
   http://creativecommons.org/licenses/by-sa/3.0/au/deed.en

--
Unsubscribe instructions: E-mail to [email protected]
In case of problems unsubscribing, write to [email protected]
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to