• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Selecting data with conditional formating

Hello, I applied conditional formatting on column S and Column X. I want to select all the value highlighted as Red in both the columns.

How can I achieve it? For example, if I am applying a filter on column S based on the color red, then I am missingthe value in column X.

Don't know how to apply a filter on both the columns so I don't miss any highlighted data. Attached picture has the data


Thank you,
Nitika Manhas
 

Attachments

  • Capture.PNG
    Capture.PNG
    111.9 KB · Views: 6
I am sorry , I think I fail to explain it properly :-(

I will try again... If I am applying filter to column S(based on color) to pick the highlighted cells than I am missing cells x4,x26,x27 and x28
if I apply filter to Column X(based on color) than I miss S13,S15, S17,S18,S21,S22... I don't want to miss any highlighted cells in column S and Colum X..
 
In future, Office 365 will allow
= FILTER(Table1, (Table1???<0) + (Table1[X]<0) )

I have converted the data range to a table to make addressing data dynamic.
The plus (+) has been used in place of the Boolean operator OR to retain an array of criteria for the FILTER.

The result is a data extract that changes dynamically in response to both changes in the size of the data table and to the criteria.
The key is that the formula is only to be found in cell Extract!B3. The cells used for the rest of the output are, in fact, empty.

Note: There are places ??? where I wanted an S in square brackets but these were treated as controls by the site.
Perhaps there is an escape character that would allow me to use the bracket as a literal?
 

Attachments

  • Filtered table - chandoo3 (PB).xlsx
    26.2 KB · Views: 6
Last edited:
Another way, is repeating the headers and underneath for :
  1. AND criteria enter your conditions on same row
  2. OR criteria enter on a new row
Then apply advanced filter and select the conditions range, apply filter in range.
Hello G,

Thank you for the solution, I did not see any formulas in the sheet, could you please elaborate point 1 and 2?
 
Thank you for the solution, I did not see any formulas in the sheet, could you please elaborate point 1 and 2?
There aren't any.

As you can see in the criteria range (here rows 1 -> 3), you have 2 rows with criteria, each row contains only 1 criteria in the example. In this case "OR" is applied as logic by the advanced filter.
If you'd put them on the same line "AND" logic is applied. It would then filter where S and X are "<0".
61725
 
Back
Top