Conditional Formatting with IF statement

bemp87

Board Regular
Joined
Dec 10, 2016
Messages
102
Hi Community,

i'm needing some help with a Conditional Formatting using a IF statement. Here is what i have so far:

Column A: Name Of Customer (A1-Bob, A2-Sally etc.)
Column B: Date last contacted Customer: (A1: 09/01/2018, A2 10/01/2018)

I am trying to Conditionally format for the date entered in column B, if it is equal to or greater than 20 days from that date to fill the cell Yellow..


So far the formula i have is:

=IF(TODAY()-B2=>20....

I'm not sure if what I am trying to do is possible, but i feel I'm just missing something... Any help would be appreciated.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I'm not exactly sure of your requirement, but in general you do not need an IF function like that in a Conditional Formatting formula
Try just
=TODAY()-B2>=20

If the statement evaluates to TRUE then the conditional formatting will be applied.
If the condition evaluates to FALSE or an error then formatting is not applied.

I'm not sure whether you need < or > in your formula but whatever it is it should come before the = sign not after it like you have posted.
 
Last edited:
Upvote 0
Thanks Peter- this worked perfectly, to think I was one mistake off...

You're the best!
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,484
Members
448,967
Latest member
visheshkotha

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