Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I am very happy with the whole site and would like to extend my compliments to all of you who work to make it one of the most useful sites (If not THE Most Useful) ...and the easiest to navigate..."

Geography

Where in the world do Tek-Tips members come from?

simple question regarding conditional formatting in excel 2010Helpful Member! 

Nostradamus (TechnicalUser)
30 Jul 12 4:41
Hi.

I'm trying to use condiational formatting in excel 2010 to do the following.

I have column with different dates
2008-04-22
2012-07-30
2010-01-23
etc

I want to change the background color if the date in each cell reaches a certain age.
For instance. If $A$1 is a older then a year, change background color to red.
I've made this work in ONE cell doing this.
I've made a conditional formatting with the follow formula
=Today()-$A$1>365 and changed background color.

However I don't know how to make this work in every row. I've tried copying this by dragging the corner of the cell downwards. no success. I've tried copying the format of the cell and paste it, but that doesn't copy this format.
I want to easily apply this to every row so that it automatically changes this to
=Today()-$A$2>365
=Today()-$A$3>365
=Today()-$A$4>365

How do I do that? Should I use the conditional formatting differently?
As it is now, I have to manually add a new rule for every row, and I have several hundreds.
Feels like this is easily fixed, but I'm totally new to excel.

thanks in advance.
Helpful Member!  SkipVought (Programmer)
30 Jul 12 8:05
hi,

1. select ALL the cells you want Conditionally Formatted

2. activate the CF Wizard

3. the TOP-LEFT-CELL/ROW of you selection is the frame of reference.

so assuming that the TOP-LEFT-CELL/ROW is A2

=Today()-$A2>365

Your formula will propagate to each row.

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

Nostradamus (TechnicalUser)
30 Jul 12 8:35
I tried that the first time, but I didn't recieve any color.
It led me to believe that the method was wrong.
I wrote
=Today()-$A2>365
When I checked the rules again Excel had put the formula in quotas for some weird reason.
="Today()-$A2>365"

When I deleted them it worked like a charm.

Thanks *star*

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close