Forum Discussion
Conditional Formatting the results of a Filter formula
- Jul 18, 2023
Thanks. You'll have to include the Project Type column in the filter.
And the conditional formatting formula should refer to the column on the RESULTS sheet.
You can hide column E on the RESULTS sheet if you wish.
See the attached version.
Select the column that you want to color.
I'll assume that the active cell in the selection is in row 1.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=$G1="EXISTING"
Click Format...
Activate the Fill tab.
Select blue as highlight color.
Click OK, then click OK again.
Repeat these steps, but with the formula
=$G1="NEW"
and yellow as highlight color.
- pcorbittJul 17, 2023Copper ContributorGreat, Hans. Thank you. That works well for the static array, but if I change more of my data to ACTIVE status, and thereby extend the array, the formatting does not automatically apply. Is it possible to fix that?
- HansVogelaarJul 18, 2023MVP
Did you select a large enough range to accommodate more results?
- pcorbittJul 18, 2023Copper Contributor
HansVogelaar - I did. I had applied the CF to just 4 cells, and it came out just right...like this:
then when tried to change another company on my list to ACTIVE and it came out like this:
so I tried to add the CF to more cells below and got this...
Could my FILTER be wrong?
=FILTER('Projects 2023'!A3:B310,'Projects 2023'!A3:A310="ACTIVE")