98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Conditional Formatting
Conditional Formatting
Resolved · High Priority · Version 2007
Stuart has attended:
Excel Intermediate course
PowerPoint Intermediate Advanced course
Conditional Formatting
Good morning. I'm having a little trouble with formulas in Excel.
I have setup a s.s with all our contracts on i.e. start date, end date, cancellation date (normally 90 days in a contract) etc. I want the s.s to highlight (red) 3 months before the cancellation date so our team are aware when are contracts are coming to an end so we can re tender. Cancellation dates are in Columns G if this helps.
I know if the IF function but im struggling, please help.
Many thanks
Stuart
RE: Conditional Formatting
Hi Stuart,
Thanks for your question.
I had the same query a few years ago, and one of my fellow trainers here at Best STL showed me a solution. I hope it works for you, too...
Create another column (eg. H) and make it the formula: =$G1-TODAY()
Copy the formula down the whole of column H. Format the whole column to be Number format with 0 decimal places. You should find that the number in column H now represents the number of days left before the expiry date is up.
Now, to format the s.s, set up a Conditional Formatting on the s.s cell that you want to change colour.
If you haven't used Conditional Formatting before, select the cell you want to change the colour of, then go to Format menu -> Conditional Formatting.
In the drop-down box, choose 'formula is', and put: =$H1<90 in the text box next to it. Then click 'format' button and change format to text colour Red.
What you're saying is, if the value in column H is less than 90, highlight THIS value in red.
I just made it so the number of days remaining was highlighted as Red. But you can make any column/value you want to be red if you follow the formula above.
See attachment for more details.
If this answer resolves your query, please mark the question as 'resolved' (see below). Otherwise, please post a follow-up response to this post, and I will assist you further.
Regards, Rich
Attached files...
RE: Conditional Formatting
Hello Stuart
Thank you for your question.
Can you please clarify what is that you would like to come up in red - is it the cancellation date (when it is 3 months before the cancellation date); or the end date (when it is 3 months before the end date)?
Kind regards
Amanda
RE: Conditional Formatting
Hi Amanda
I would like 3 months before the cancellation date please
Regards
Stuart
RE: Conditional Formatting
Hi Stuart
I notice that my colleague Rich has posted a reply to you with an example spreadsheet attached....does that answer your question, or do you still need help?
Kind regards
Amanda
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Change the Print button so it brings up the Print dialogue boxIf you want to bring up the Print dialogue box to check your print settings when you hit the Print button, do the following: |