How to change the font color based on another column

stile

New Member
Joined
Aug 14, 2002
Messages
4
I have a column of dates which is column A. I have another column, B, which is either Approved or Rejected (so 1 or 0). How can I set the font color on column A1 based on whether B1 is Approved or Rejected?

Thanks in advance.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
On 2002-10-18 13:04, stile wrote:
I have a column of dates which is column A. I have another column, B, which is either Approved or Rejected (so 1 or 0). How can I set the font color on column A1 based on whether B1 is Approved or Rejected?

Thanks in advance.

(1.) Select all the relevant cells in A.
(2.) Activate Format|Conditional Formatting.
(3.) Choose Formula Is for Condition 1.
(4.) Enter the following in the white box:

=B2=1

(5.) Activate the Format button.
(6.) Choose a color from the Font tab.
(7.) Click OK, OK.

Note. I assumed that the data start at row 2, hence B2 in the formula. I also assumed that B houses 1 for Approved and 0 for Rejected.
 

JohnG

Board Regular
Joined
Feb 18, 2002
Messages
165
First format the cell(s) with Custom and enter [Red]"REJECTED";[Green]"PASS"

Now enter a formula where 1 true(rejected) 0 False(OK) such as
=IF(B1>2,1,0)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,867
Messages
5,834,079
Members
430,260
Latest member
MANICX100

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
Top