Solved

Program expiration dates in excel

Posted on 2014-01-02
6
385 Views
Last Modified: 2014-01-05
I like to create an excel file, where the days available between date certified and due date, will give me the results in red, amber, or green color.
Explanation below:
Number of days since certification  XX DAYS             CELL 1:E
Due expiration date                         4/8/2014            CELL 2:E
Date certified                                   4/8/2013            CELL 3:E
                                                                                     CELL 4:E
"Number of days since certification" in CELL 1:E will change from the result of "Date certified" in CELL 3:E and the current Date.
60 days before "Due expiration date" i need cell 4:E to become amber.
On "Due expiration date", i need cell 4:E to become red.
All other days before "Due expiration date", cell 4:E will be green.
Also CELL 4:E will show the amount of days left leading up to the expiration date.

Can someone give me feedback on this.
0
Comment
Question by:christoforatos1968
  • 3
  • 2
6 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39752390
Select cell E4, and go to Home|Conditional Formatting|New Rule

Select "Use a formula to determine which cells to format" from top section, then enter formula:

=AND($E$3-Today()<60,$E$3-Today()>0)

click Format and choose Amber from Fill tab.

Click Ok, then click New Rule and repeat above with formula:

=$E$3=TODAY()

and click Format and choose RED

Then Ok, New Rule and

=$E$3-TODAY()>60

and choose Green from the Fill tab.

click Ok, then Ok again to end

In Cell E4 you can use formula: =$E$3-TODAY()
0
 
LVL 12

Expert Comment

by:Harry Lee
ID: 39752437
Please see the sample.

I think this is what you need.
Conditional-Format-Sample.xlsx
0
 

Author Comment

by:christoforatos1968
ID: 39753933
I receive an error message for this formula " =AND($E$3-Today()<60,$E$3-Today()>0) ".
Please view screenshot.
Error-message.PNG
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 23

Expert Comment

by:NBVC
ID: 39754003
It might be because of your Excel version...

Try with a semi-colon instead:

=AND($E$3-TODAY()<60;$E$3-TODAY()>0)
0
 
LVL 12

Expert Comment

by:Harry Lee
ID: 39754402
Christoforatos,

You don't need complicated formula like that. Just use stacked conditional format like my sample.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39754479
Hardly complicated formulas....
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

17 Experts available now in Live!

Get 1:1 Help Now