stefanaalten
Board Regular
- Joined
- Feb 1, 2011
- Messages
- 76
- Office Version
- 365
- Platform
- Windows
Hi,
I often find I want to use data filters to select rows based on multiple columns, but can't seem to do this without adding extra columns to artificially create the OR condition. Here's a simplified example to illustrate my question. In practice I have a spreadsheet with several thousand rows and around 30 columns each with indicators (mainly of the "Yes/No" variety)
In the example I can easily use the filters (i.e. the drop-down lists with check boxes) to create an AND style query without needing the extra column, i.e. show me rows where the item is both blue and solid. However, if I want to see rows where the item is either blue or solid (or both), I need to add a new column.
In the trivial example that's easily done, but with 30 columns the permutations multiply massively. Is there a way of using existing filters to create an OR type query?
Many thanks!
I often find I want to use data filters to select rows based on multiple columns, but can't seem to do this without adding extra columns to artificially create the OR condition. Here's a simplified example to illustrate my question. In practice I have a spreadsheet with several thousand rows and around 30 columns each with indicators (mainly of the "Yes/No" variety)
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Item | Colour | Matter | Colour or matter | ||
2 | A | Blue | Solid | Blue or solid | ||
3 | B | Blue | Liquid | Blue or solid | ||
4 | C | Red | Solid | Blue or solid | ||
5 | D | Red | Liquid | Neither blue nor solid | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D5 | D2 | =IF(OR(B2="Blue",C2="Solid"),"Blue or solid","Neither blue nor solid") |
In the example I can easily use the filters (i.e. the drop-down lists with check boxes) to create an AND style query without needing the extra column, i.e. show me rows where the item is both blue and solid. However, if I want to see rows where the item is either blue or solid (or both), I need to add a new column.
In the trivial example that's easily done, but with 30 columns the permutations multiply massively. Is there a way of using existing filters to create an OR type query?
Many thanks!