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.
 

Some videos you may like

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
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)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,658
Messages
5,597,403
Members
414,142
Latest member
Banyangt

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