Cell format based on filter selection

LC1234

New Member
Joined
Nov 10, 2005
Messages
12
Is there a way to custom format a cell based on what is selected by a filter?

My original data has 4 columns, and looks like this:

Metric Store VAB $s
1 A Var (1,000)
1 A Act 1,000
1 A Bud 2,000
1 B Var 250
1 B Act 1,500
1 B Bud 1,250
1 C Var (250)
1 C Act 750
1 C Bud 1,000
2 A Var 250
2 A Act 1,500
2 A Bud 1,250
2 B Var (215)
2 B Act 1,250
2 B Bud 1,465
2 C Var 111
2 C Act 1,555
2 C Bud 1,444

In my spreadsheet cells A1,A2 & A11 are in font color black and cells A3:A10 and A12:A19 are in font color=white. (It makes it easier to read, but allows the filters work.) Same thing with the Store column. Cells B1, B2, B5, B8, B11, B14, B17 are black, the rest in the column are white.

If I filter by STORE A, everything is ok. I can see the Metric and Store cause it is already in a black font. But if I filter by STORE B, I need cells A5 and A14 to change from white to black, and if I filter by STORE C, I need cells A8 and A17 to change from white to black.

Thanks!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,078
Latest member
skydd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top