Conditional Formatting formula

Oh!Calcutta

New Member
Joined
Jun 15, 2011
Messages
26
Dear All,

I want to have a formula/VBA Code for my data described as below:

Col A date (dd/mm/yyyy) with the oldest date being 01/04/2009
Col B amount due from customers
Col C name of customers

I want to colour cells in red/blue of Col A when the date is 3 to 5 years old and corresponding Col B amount & Col C customer name should also be formatted in the same colour as in Col A.

Please help.

Thanks in advance.

:eek: Oh!Calcutta
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
use conditional formatting

=AND($A1>=DATE(YEAR(TODAY())-5,MONTH(TODAY()),DAY(TODAY())), $A1<=DATE(YEAR(TODAY())-3,MONTH(TODAY()),DAY(TODAY())))
should be able to apply to column A, B, and C
and down the rows

what version of excel do you have

what do you mean by
I want to colour cells in red/blue
 
Upvote 0
use conditional formatting

=AND($A1>=DATE(YEAR(TODAY())-5,MONTH(TODAY()),DAY(TODAY())), $A1<=DATE(YEAR(TODAY())-3,MONTH(TODAY()),DAY(TODAY())))
should be able to apply to column A, B, and C
and down the rows

what version of excel do you have

what do you mean by

I'm using Excel 2007.

I want fonts & cell borders to be coloured in red/blue.

Thanks
 
Upvote 0
I created a file with the conditional format added

but cannot attach

the above will work and you can format borders and fonts
 
Upvote 0

Forum statistics

Threads
1,214,559
Messages
6,120,203
Members
448,951
Latest member
jennlynn

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