Logical user defined function using colored cells

marpop

New Member
Joined
Feb 6, 2012
Messages
2
Hi,
I would like to kindly ask for code for the following situation:
I have results (calculated by formula) for a number of people in one column. The top 20% of the results are red colored cells and the bottom 20% of the results are blue colored cells, the cells of the remaining 60% of the results are not colored. I applied conditional formatting to color the top 20% and the bottom 20% of the cells. I need to determine a percentage for each of the cells in question, and I think I need a user defined function, where:
If the reference cell is red, result in next column is 15%
If the reference cell is blue, result in next column is 5%
If the reference cell is not colored, result in next column is 10%
Thank you very much in advance!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,214,829
Messages
6,121,826
Members
449,051
Latest member
excelquestion515

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