Filter individual cells without removing the entire row

Discuss the spreadsheet application
Post Reply
Steffi
Posts: 1
Joined: Tue May 16, 2017 10:12 pm

Filter individual cells without removing the entire row

Post by Steffi »

Hello,

I am importing numerical data into calc.
I would like to know if it is possible to filter out the outliers without removing the whole row with a filter or searching for and replacing a specific value.

For example, I would like to filter out each cell that has a value greater than 20 or less than 10, and replace them with a 0 or a blank cell.
I also need a macro to do so.
Any help would be much appreciated.

Thanks.
OpenOffice 4.1.3 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Filter individual cells without removing the entire row

Post by Villeroy »

=OR(A1>=10;A1<=20)*A1
=AND(A1>=10;A1<=20)*A1
Last edited by Villeroy on Fri May 19, 2017 7:26 am, edited 1 time in total.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: Filter individual cells without removing the entire row

Post by RusselB »

Villeroy's suggestion is a formula that would go in a different column.
You can get the same results using the Standard Filter or Advanced Filter (but not Auto-Filter).
Due to the relative simplicity of your example, I would recommend using the Standard Filter.
Note: With either Villeroy's suggestion, or mine, all of the data should be imported first. Neither of these are for attempting to import just the filtered content into the spreadsheet.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Filter individual cells without removing the entire row

Post by Villeroy »

outliers.ods
(16.13 KiB) Downloaded 78 times
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply