[Solved] Standard filter multiple condtitions
[Solved] Standard filter multiple condtitions
Is there a way using standard filter the way like this: coumn A = 1 AND (coumn B = 'x' OR column B = 'y').
Last edited by Hagar Delest on Thu Aug 16, 2018 9:56 pm, edited 1 time in total.
Reason: tagged solved
Reason: tagged solved
OpenOffice 4.1 on Windows 10
Re: standard filter multiple condtitions
Welcome to the forum!
It doesn't seem to work in whatever order I specify the criteria. Parentheses cannot be used; AND has a higher priority than OR. If you use LibreOffice it's easy to achieve using the autofilter.
It doesn't seem to work in whatever order I specify the criteria. Parentheses cannot be used; AND has a higher priority than OR. If you use LibreOffice it's easy to achieve using the autofilter.
AOO 4.1.15 & LO 24.2.2 on Windows 10
Re: standard filter multiple condtitions
Thank you Alex! I've just changed to LibreOffice, and you were right, it has the function I was looking for.
OpenOffice 4.1 on Windows 10
Re: standard filter multiple condtitions
You can do it in OpenOffice Calc too.
In the Standard Filter dialog, click the More options button and tick regular expressions.
Condition:
In the Standard Filter dialog, click the More options button and tick regular expressions.
Condition:
Code: Select all
A = 1
AND B = x|y
Re: standard filter multiple condtitions
If I ckeck the option regular expression, nothing happens, so there is not any input field I could type in.
OpenOffice 4.1 on Windows 10
Re: standard filter multiple condtitions
OK. I found it, I have to use the dropdown field.
It is a little strange and not a common way of using a dropdown anyway. So, I can click on this field, and insted of picking an option from the drop down list (options related to that column) I can directly type in this field. Thanks, it works too, so now I can go back to OpenOffice Calc as well.
It is a little strange and not a common way of using a dropdown anyway. So, I can click on this field, and insted of picking an option from the drop down list (options related to that column) I can directly type in this field. Thanks, it works too, so now I can go back to OpenOffice Calc as well.
OpenOffice 4.1 on Windows 10
Re: standard filter multiple condtitions
The database component Base can do this easily, even with spreadsheet data.
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] Standard filter multiple condtitions
One more thing: You can merge arbitrarily complex criteria in a calculated field and filter that, e.g.
=AND($A2=1 ; OR($B2="x" ; $B2="y"))
=AND($A2=1 ; OR($B2="x" ; $B2="y"))
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice