Conditional formating based on 2 variables

markwight

New Member
Joined
Apr 25, 2005
Messages
34
I would like to change a cell color based on two variables

If date (in cell G3) is < than todays data and the value (in E3) does not equal 'complete' than the formating for row 3 is red.

Thanks for all the great help!!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
Select the cells you want to format and use

Formula is | =AND($G3< TODAY(),$E3<>"complete")
 

markwight

New Member
Joined
Apr 25, 2005
Messages
34
Cannot get it to work. Is a variable missing from your formula

If G3 <( Today) and E3<>'Complete' then formating red

Thanks
 

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
Oh, shoot. I didn't check it after I posted, and the board ate the stuff after the < symbol. I always forget about that :rolleyes:

Should be:

Formula is | =AND($G3< TODAY(),$E3<>"complete")

(without the space before TODAY--had to add that so it would show up)

I fixed it in my above post, as well.
 
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,995
Messages
5,834,778
Members
430,321
Latest member
yemisimi11

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