conditional format formula or macro help

danushka

Well-known Member
Joined
Sep 6, 2009
Messages
693
Dear friends my document column "P" & "Q" data like below.column "P" data all dates..

column "P"
9-Jul
9-Jul
8-Jul
5-Jul
9-Jul

column "Q"
9
25
9
10
25

My requirement is if column "P" yesterday date & column "Q" value more than 7 , then that column "Q" value should highlight in yellow.that yesterday date is not fix.it should be like (=TODAY()-1)..

pls give me conditional format formula or macro for this.thanks in advance..
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Seems like you have just about given the formula yourself. :)

For my layout, select Q2:Qxx and apply the CF formula shown.

Excel Workbook
PQ
1DateValue
29-Jul9
39-Jul25
48-Jul9
55-Jul10
69-Jul25
7
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
Q21. / Formula is =AND(P2=TODAY()-1,Q2>7)Abc
 
Upvote 0
Hi,

Select Q1:Q5
CF > New Rule > Use a formula to determine...
Insert this formula
=AND($P1=TODAY()-1,$Q1>7)
Fill ---> yellow

HTH

M.

-EDIT-
I hadnt seen Peter's reply

M.
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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