Excel - Macros - Coloring Cells

r_nj

New Member
Joined
Nov 11, 2005
Messages
10
:confused:
I would like to get some help to create a macro as I have just joined a firm as a Jr. Analyst - I am still learning Macros - please help..

I would like to change the color of the cell based on the following:

For Column A,B,D,E,L : color highest 2 numbers- RED, lowest 2 numbers -yellow


For column C, if the % is 50% and above then green, if between 50.1% and 45% then blue, if lower than 44.9% then - black
 
After trying the lowest number formula with CF it colored all the null cells - please help.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
<ul>[*]=AND((A1<=SMALL(MyRange,2)),NOT(ISBLANK(A1)))[/list]This would exclude blank (empty) cells from consideration. You'd need a different test if the "null" values you have are the result of formulas, for a nullstring will actually get counted among the LARGE values (odd thing that).
 
Upvote 0
Hi r-nj, thanks for posting this as I had a very similar question.

I am also a Jr. Analyst, are you working in the financial industry?

Good luck!
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,947
Members
449,095
Latest member
nmaske

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