Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 01-15-2006, 01:32 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2006
Posts: 18
OS: xp


Conditional Formatting using Dates in Excel

I am having difficulty finding an approach to activate conditional formatting of a cell that that contains a persons name based on date data entered into two other cells.

What I am trying to achieve is to have the employees name formatted to indicate that they are unavailable for dispatch because the computer's date (today()) is the start date, finish date or any date in between those dates that have been entered elsewhere on the worksheet for their vacation time.

Has anyone else set up anything similar that might work?

Thanks
scoochie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-16-2006, 10:08 AM   #2 (permalink)
Superhuman Computer
 
ReeKorl's Avatar
 
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,610
OS: WinXP Pro SP2

My System

Unfortunately, the conditional formatting doesn't allow you to change the formatting of a cell depending on the contents of another cell. If you can live with the cell next to the person's name being coloured green/red then you could try this:

Create a new column directly to the right of the person's name (I'll assume you have the person's name in A column, and the new one in B). This column needs a formula to return true/false if TODAY() is between two dates (which I'll assume you have in C as start date and D as end date). This formula will be
Code:
=AND(TODAY()>=C1,TODAY()<=D1)
Conditional format the B column to show green if FALSE and red if TRUE (if TRUE then today is in the blocked out dates, therefore red).

If this isn't good enough, you'll need to use some VBA code to do it. Post back if you need this instead and I'll see what I can come up with.
__________________
"Sorry, the number you have dialled is imaginary. Please rotate dial by 90 degrees and try again."
ReeKorl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-16-2006, 07:52 PM   #3 (permalink)
Registered User
 
Join Date: Jan 2006
Posts: 18
OS: xp


Works well

Thanks,

As a matter of fact...this formula and method works ideally for what I need and the extra column creation was not needed. I entered the formula into both the first and last name cells for the employee in question, referenced the two cells with the dates in the formula and chose to format the cells with the names to "strike out" the text when their value is true. I assume now than since I can apply up to 3 conditions to a cell, that I could theoretically ad the conditions of "less than 7 days til vacation starts" and less than two days when vacation ends". I am unsure of the formulas to achieve this, however, I am trying.

Thanks so much for your help!
scoochie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-17-2006, 05:34 AM   #4 (permalink)
Registered User
 
Join Date: Jan 2006
Posts: 18
OS: xp


ReeKorl,

Your help is immeasurable! Based on your formula, I know have the name cells conditionally formatted based on a true/false condition for 7 days before vacation, vacation, and 2 days before return from vacation based on the dates in two separate cells elsewhere on the work sheet. If any one is interested in the formulas or a sample worksheet, I will post it on request.

Gotta go,

Thanks again!
scoochie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 05:11 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85