Conditonal Format based on another Cells value.

Double99

New Member
Joined
Jul 11, 2011
Messages
29
Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Can someone please help me with a conditional format question.
<o:p></o:p>
<o:p></o:p>
I have a range of dates in Column A
Some numbers in Column B and..<o:p></o:p>
Two separate Dates in Column C. (Example Below)
<o:p></o:p>
<o:p></o:p>
I want to add a rule that says 'if a date is equal or greater than the date in C1, then italic the number in Column B.<o:p></o:p>
<o:p></o:p>
I also want to add another rule that says 'if a date is equal or less than the date in C2, then italic the number in Column B.

Note: I want to be able to change the dates in C1 and C2.

<o:p></o:p>
I know how to write the rules but because column B is not a date I don't know how to make the conditional format dependant on another cells value, therefore I don't know the formula to write :(
<o:p></o:p>
<o:p></o:p>
If someone could help me, that ould be great!
<o:p></o:p>
<o:p></o:p>
Thanks in advanced..<o:p></o:p>
<o:p></o:p>
Cris
<o:p></o:p>
<o:p></o:p>
EXAMPLE:
<o:p></o:p>
<o:p></o:p>
.......A ..............B ......C<o:p></o:p>
1 ....01/02/11 ....18 ....02/02/11<o:p></o:p>
2 ....02/02/11 ....18 ....05/02/11<o:p></o:p>
3 ....03/02/11 ....18<o:p></o:p>
4 ....04/02/11 ....18<o:p></o:p>
5 ....05/02/11 ....18<o:p></o:p>
6 ....06/02/11 ....18<o:p></o:p>
7 ....07/02/11 ....18<o:p></o:p>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi Cris

Select Column B and apply conditional formatting and change in the dialog to Formula Is and use the following formula:

=B1>=$C$1

and apply your italic format.

Add another condition and Formula Is and:

=B1<=$C$2

and apply your italic format. Then hit OK.

The above formulas assume you are starting in B1, if B2 make the first formula

=B2>=$C$1

etc
 
Upvote 0
Many thanks for this…
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
As a follow up question,
<o:p></o:p>
Do I have to apply each conditional format separately for each row?. Or is there a quicker way of doing this ‘ie Copy and Paste Format?’ so that it changes the B part automatically?
<o:p></o:p>
It just that I’ve done this for the whole year and don’t fancy putting in 365 conditional formats just to change the B part.
<o:p></o:p>
Note: Colum B’s figure has been generated from a formula.
<o:p></o:p>
EXAMPLE:<o:p></o:p>
……………………….Conditional Format would be..
<o:p></o:p>
line 1 – B1 ……=B1>=$C$1 ………=B1<=$C$2
<o:p></o:p>
line 2 – B2 ……=B2>=$C$1 ………=B2<=$C$2
<o:p></o:p>
line 3 – B3 ……=B3>=$C$1 ………=B3<=$C$2
<o:p></o:p>
line 4 – B4 ……=B4>=$C$1 ………=B4<=$C$2
<o:p></o:p>
line 5 – B5 ……=B5>=$C$1 ………=B5<=$C$2
<o:p></o:p>
line 6 – B6 ……=B6>=$C$1 ………=B6<=$C$2
<o:p></o:p>
line 7 – B7 ……=B7>=$C$1 ………=B7<=$C$2<o:p></o:p>
 
Upvote 0
Select all your cells in column B (eg B2:B366) and apply the CF with the formula as before:

=B2>=$C$1

This will then be applied to each row in the selected range
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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