Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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 users+help@global.libreoffice.org
In case of problems unsubscribing, write to postmaster@documentfoundation.org
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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.