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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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.
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,222,182
Messages
6,164,436
Members
451,895
Latest member
donnykonny

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