Conditional Format - Letter and Date within same cell

MelRJ

New Member
Joined
Sep 19, 2013
Messages
12
Hi all,

I need some help creating a formula that will highlight a cell if the cell begins with the letter F and not A. I would like to be able to highlight past due cells as well as highlight those coming up within 2 weeks. I have half the equation but ma having some trouble on the second portion.

=AND(LEFT($G2,1)="F",G2<TODAY()-100)<today()-100)< strong="">


This is a portion of the tracker I am trying to add the above to:
F: 02/06/2015 F: 02/16/2015 F: 02/23/2015 F: 02/24/2015 F: 03/31/2015
A: 07/29/2014 A: 08/06/2014 A: 08/13/2014 A: 08/14/2014 A: 09/18/2014
A: 08/22/2014 A: 09/01/2014 A: 09/08/2014 A: 09/09/2014 A: 10/14/2014
A: 09/02/2014 A: 09/16/2014 A: 09/21/2014
A: 09/03/2013 A: 10/04/2013 A: 10/02/2013 A: 10/03/2013 A: 11/07/2013
F: 05/27/2015 F: 06/04/2015 F: 06/11/2015 F: 06/12/2015 F: 07/17/2015
A: 04/17/2014 A: 05/12/2014 A: 06/02/2014 A: 06/02/2014 A: 06/02/2014

So if the cell contains F and the date is past due highlight red. If the cell contains F and the date is coming up in two weeks highlight yellow. Otherwise no highlight.</today()-100)<>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Your F cells are going to be text so may need to reconstruct a date out of them first to get your formula

Cell date is date(right(A1,4),mid(A1,4,2),mid(A1,7,2))

You can then use your conditional formatting around that
 
Upvote 0
Thank you! That worked perfectly.

=AND(LEFT(G2,1)="F",DATE(RIGHT(G2,4),MID(G2,4,2),MID(G2,7,2))<TODAY()-1)
 
Upvote 0

Forum statistics

Threads
1,215,514
Messages
6,125,263
Members
449,219
Latest member
daynle

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