formula compare date computer with date of column and highlight

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,429
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
hello
i would formula if the date in my computer the same in column f then gives me in column c finish and highlight by red if the date in my computer less than column f then give me not finish and highlight green
input
1.JPG


output
2.JPG
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
you can use an IF() with TODAY()

=IF( F2 < = Today() , "Not Finished" , "Finished")

Then use a conditional formatting - 2 rules
Set rule 1 formula
F2 < = Today()
RED FONT

2nd Rule
F2 > Today()
Green Font

But I dont understand your Example
29th Aug is in the future (based on todays date 20th May
and so why is this finished ?
also
the other contents of column F are not valid dates
 
Upvote 0
thanks etaf and i'm sorry about make confusing i was hurry to do my post your are right every thing what said your formula not complete it gives me "not finish" even the empty cell moreover i want the formatting condition about column g and ,are you sure colored font not back?
a new output
ا2.JPG
 
Last edited:
Upvote 0
sorry got the formula wrong way around
=IF(F2<TODAY(),"Finished","Not Finished")

For the Condtional format
you could use
RED
G1 = "finish"

Green
G1 = "Not Finish"

Book1
EFG
1first dateend datecase
25/1/20Finished
35/2/20Finished
45/3/20Finished
55/4/20Finished
65/5/20Finished
75/23/20Not Finished
85/24/20Not Finished
95/25/20Not Finished
105/26/20Not Finished
115/10/20Finished
125/11/20Finished
135/12/20Finished
145/23/20Not Finished
155/24/20Not Finished
165/25/20Not Finished
175/26/20Not Finished
185/17/20Finished
195/18/20Finished
205/19/20Finished
215/20/20Not Finished
225/21/20Not Finished
235/22/20Not Finished
245/23/20Not Finished
255/24/20Not Finished
265/25/20Not Finished
275/26/20Not Finished
285/27/20Not Finished
295/28/20Not Finished
305/29/20Not Finished
Sheet1
Cell Formulas
RangeFormula
G2:G30G2=IF(F2<TODAY(),"Finished","Not Finished")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G:GExpression=G1="Not Finished"textNO
G:GExpression=G1="Finished"textNO
 
Upvote 0
hi, etaf i try to use from condition formatting but no changes i choose from condition formating choice number2 "Format cells that contain only" then

i choose list drop down this specific text and i write this =G4="not finish" and press format to choose color and press ok !
 
Upvote 0
for 2007, 2010 , 2013 or 2016 excel version
Conditional Formatting

Highlight applicable range >>

select the column G


Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:


=G1 = "not finish"


FormatÖ [Number, Font, Border, Fill] text font green
choose the format you would like to apply when the condition is true
OK >> OK

then add another rule

Highlight applicable range >>

select the column G


Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:


=G1 = "finish"


FormatÖ [Number, Font, Border, Fill] text font red
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Cross posted without links AGAIN!!

You know the rules, please comply.
 
Upvote 0
hi, Fluff as far as i know this is not the same subject the main post is the formula and highlight but my post in another forum is solve problem condition formatting that's why i don't provide the link in the beginning despite this
here the link
problem condition formating
 
Upvote 0

Forum statistics

Threads
1,215,335
Messages
6,124,326
Members
449,155
Latest member
ravioli44

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