conditional formatting

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

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

Conditional Formatting

resolvedResolved · 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...

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:

Change the Print button so it brings up the Print dialogue box

If you want to bring up the Print dialogue box to check your print settings when you hit the Print button, do the following:

1. Right-click on the toolbar that displays the Print button.

2. Select Customise.

3. Click on the Print button on the toolbar to select it, then hold the left mouse button down and drag the button towards the screen below. The button should come off the toolbar.

4. In the Customise dialogue box on your screen, select the Commands tab.

5. Select File from the Categories list, and then locate the Print... icon (looks like the normal Print button, but the word Print has three dots following it).

6. Click on the Print... icon to select it, then use your left mouse to drag and drop the icon onto the toolbar at the top of the screen.

7. Close the Customise dialogue box.

View all Excel hints and tips


Server loaded in 0.1 secs.