Conditional Formatting

ashani

Active Member
Joined
Mar 14, 2020
Messages
347
Office Version
  1. 365
Platform
  1. Windows
Hi
i would like a conditional formatting on cell A2 - there is a date and I want it to turn Red if it exceeds 7 days from the date in A1 i.e. if 01/05/2020 and if A2 date is 09/05/2020 or higher than cell turn red.

Thank you
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
us a conditional format rule
=A1+7 < = A2
 
Upvote 0
hi Etaf,

Thank you for your reply.

How can i stop conditional formatting if A2 is blank. For example i'm using icon but when there is nothing in A2 it's still showing as Tick mark.
 
Upvote 0
you could also use an AND()
=AND( A2<>"", A1+7 < = A2 )
 
Upvote 0
Hi guys
thank you for your reply and help.
I'm using the below formula currently - so if 0 then X icon and if 1 then tick Icon. How can I put it so if the cell A2 is blank than no Icon.
Currently, where it's blank - it's still showing as 1 means Tick there.

VBA Code:
=IF(A1+8<=A2,0,1)

Thank you
 
Upvote 0
anyone please guide me on this.
so its icon set in conditional formatting
1 = tick
2 = cross
and if blank = exclamation mark

that's what I'm looking to achieve.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,745
Messages
6,126,633
Members
449,323
Latest member
Smarti1

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