Conditional formatting depending on cell values

fable

New Member
Joined
Nov 16, 2012
Messages
24
Hey guys, seen as you were so efficient last time, was wondering if you might be able to help me once more.

Taking this down to brass tacks as it were, I have a table with two date columns, and I want excel to highlight all the dates in the same row that are between these values.

e.g


n1ow0w.png


So each row will highlight the dates (D:I) within the start and end range (B:C) and vary themselves appropriately down the rows?

Pretty sure this is doable with just the conditional formatting, think I might just be being a touch slow about how to do it....

Any help would be appreciated!!

Thanks

~Fable
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Select your range D:I that you want to format.

Then choose the following options from the ribbon:
1- Conditional Formatting
2- Highlight Cells Rules
3- Between
4- In the fist box enter =$B2 in the second box enter =$C2 then choose formatting you want and press OK

Excel Workbook
BCDEFGHIJ
1StartEnd
21/12/20134/5/20141/10/20131/15/20132/3/201312/1/20131/1/20143/1/20146/1/2014
31/1/20132/4/20131/11/20131/24/20132/1/20132/5/20135/1/20135/2/20135/3/2013
411/1/20132/4/20141/12/201310/2/201310/31/201311/1/201312/1/20131/30/20143/24/2014
Sheet1
 
Upvote 0
You're welcome.
One thing to check with conditional formatting is to go to Manage Rules, then Edit and make sure Excel didn't put quotation marks around your formula. Other thing that can cause problems is how you lock either rows or columns.
 
Upvote 0
The other thing I'm now attempting to do is to get excel to highlight the cells in column B & C where C is less than thirty days from today's date.

Now, I tried =$C2<=(TODAY()+30) but it's not quite what I'm looking for.

Any tips?
 
Upvote 0
Fable,

Then choose the following options from the ribbon:
1- Conditional Formatting
2- Use a Formula to determine which cells to format
3- Enter in =$C2<=(TODAY()+30)
4- Select your formatting


Try that!
 
Upvote 0
The other thing I'm now attempting to do is to get excel to highlight the cells in column B & C where C is less than thirty days from today's date.

Now, I tried =$C2<=(TODAY()+30) but it's not quite what I'm looking for.

Any tips?

What do you mean by "not quite what I'm looking for".

I tried your formula and it seems to work??
Excel Workbook
BCDE
1StartEnd
21/12/20134/5/2014Formula
31/1/20132/4/2013=$C2
411/1/20132/4/2014
58/1/20138/22/2013
6
Sheet
 
Upvote 0
Fable,

Then choose the following options from the ribbon:
1- Conditional Formatting
2- Use a Formula to determine which cells to format
3- Enter in =$C2<=(TODAY()+30)
4- Select your formatting


Try that!


Surprisingly that's exactly what I was doing?

And again -that exact formula works today, and didn't yesterday. How Bizarre.

Thanks again!

~F
 
Upvote 0
Fable,

How about this?
Select your range B:C that you want to format.

Then choose the following options from the ribbon:
1- Conditional Formatting
2- Format only Cells that contain
3- Cell Value
4- Less than or equal to
5- In the next field box enter =Today()-30 then choose formatting you want and press OK

Is this what you want?
Also:

The other thing I'm now attempting to do is to get excel to highlight the cells in column B & C where C is less than thirty days from today's date.

Now, I tried =$C2<=(TODAY()+30) but it's not quite what I'm looking for.

You mentioned you want less than 30 days from today's date, your example shows plus 30 days from today's date. You want less right??
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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