Conditional formatting

Uneducated_Rick

New Member
Joined
May 4, 2012
Messages
1
Hi,

I've got a spreadsheet containing my data pulled from various sources and appears to be working fine.

Column C contains data about the region (sometimes a name, sometimes a number - thank you to the person who decided this was acceptable).

Column E contains a KPI value.

What I've been asked is if we can conditionally format column E so that for each region we highlight the top third green, middle third amber and bottom third red.

I tried using the formula =AND(C5=1,F5>PERCENTILE(F$5:F$489,0.33)) but this highlights based on the entire data set, not the regional range. I know I could redefine my range to be the correct length but this means every month having to change all the formulas.

Is there any way to use the percentile command for a defined subset? Data is sorted on column C so could a macro be written with a variable based on the start and end row numbers of the values in column C?

Thanks for any help


p.s. using Excel 2010
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,223,970
Messages
6,175,718
Members
452,667
Latest member
vanessavalentino83

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