Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

conditional formatting

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Conditional Formatting

Conditional Formatting

ResolvedVersion 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...

highlight-days-left.xls

RE: Conditional Formatting

Rich

Im still having problems, is there any way i could sent you the s.s?

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

RE: Conditional Formatting

Resolved, thanks very much for your help!

Excel tip:

Naming and Using Constants

Constants make calculations easier so worksheets are more easily understood. Constant values also need to be given relevant and memorably names. It is also easier to change the value of a constant.

For example:
Instead of entering 17.5% in each cell when you generate a VAT amount you could name a Constant "VAT" and assigning a "0.175" value to it. To do this:

From the 'Insert' menu select 'Name', then select 'Define'.

Enter the constant

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.