Solved

Need Excel formula for date calculations that will change the color of the cell's text and background as indicated.

Posted on 2014-09-22
3
435 Views
Last Modified: 2014-09-24
We need formulas for Excel to calculate dates.  Example: Indicate if date in cell C12 (9/21/2014) is greater than 30 days  but less than 45 days from TODAY by turning the cell color to bold background YELLOW and the Type will be bold BLACK.  If cell C12 is equal to or greater than 45 days from TODAY it will turn the cell to bold RED background and the Type will be bold WHITE. Otherwise leave the cell as normal WHITE background and normal Black Type.  The formulas will automatically update each time the file is opened.  It will automatically use the computer's date.  

I have not done any of this yet but I believe that:
1.  The cell or cells in question should be first highlighted.
2.  Click the Home Tab, Conditional Formatting, and New Rules (or color scales).
3.  A formula should be entered that follows the above rules.

How should the formulas appear?
Where should the formula be placed?

I guess that the formula will look something like the following:
(I am sure that these are incorrect but they may give you an idea of what we want done.

If TODAY()-E2>29 AND <45 THEN color the cell (Bold Yellow, Bold Black type)
If TODAY()-E2>44 THEN color the cell (Bold Red, Bold White type)
If TODAY()-E2<30 THEN leave the cell color (White, Black type)

After dates are entered into the cells, we need to know if the deadlines are near or past due.  We want the formulas to automatically update each time the file is opened.
0
Comment
Question by:sherman6789
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Flyster earned 500 total points
ID: 40337622
If the date in question is in C12, use these rules:

=C12 >TODAY()+44  (Format Red fill with White Bold font)
=C12 >TODAY()+30 (Format Yellow fill with Bold Black font)

Using the Today() function will automatically update the cells each say.

Flyster
0
 

Author Closing Comment

by:sherman6789
ID: 40342815
Thank you for our quick response.  This has helped me with several similar projects.
-sherman6789
0
 
LVL 22

Expert Comment

by:Flyster
ID: 40342817
Glad I could help!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now