conditional formatting
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

Conditional Formatting

The UK's most regular instructor-led training courses.
Training information: excel-courses-london · Excel training london · Microsoft Excel Training London
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version 2003

Conditional Formatting

Priya has attended:
Excel Intermediate course

by - delegate Priya [1 post] (2008 Jul 1 Tue, 16:44) replyReply

How do I make cells turn a certain colour when an expiry date has been reached eg all cells to turn red on 1 July

Excel VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 Nov 25 Tue + 26 Wed Bayswater 6 book now £455 £515
2003 2008 Nov 26 Wed + 27 Thu Bloomsbury 2 book now £495 £495
2003 2008 Dec 1 Mon + 2 Tue Bloomsbury 2 book now £495 £495
2003 2008 Dec 4 Thu + 5 Fri Bloomsbury 5 book now £450 £485
2007 2008 Dec 11 Thu + 12 Fri Bayswater 5 book now £475 £515
2007 2009 Jan 8 Thu + 9 Fri Bloomsbury 6 book now £450 £475
Full Schedule: See all 37 Excel VBA course dates.
Bookings currently available until 26th November 2009.

RE: Conditional Formatting

by - trainer Pete platinum contributer[799 posts] (2008 Jul 17 Thu, 08:22) Edited on 2008 Jul 17 Thu, 08:25 replyReply

Hi Priva,

Thank you for your post, welcome to the forum, in reply to your question:

First highlight the range of cells that you want to apply the formatting to. For example, select all of column A since we don't know how many rows will have expiration date values.
Next, under the Format menu, select Conditional Formatting.
When the Conditional Formatting window appears, select "Formula Is" in the drop down. Then enter the following formula:
=ISBLANK(A1)=TRUE
What this formula means is that if any cells in column A are blank, do not apply any formatting. The value of A1 is put in the IsBlank function since this is the first value in the range of cells that you've selected. Since the formula uses relative referencing each value in column A will be evaluated individually.
Next, click on the Add button to create a second condition.
In Condition 2, select "Cell Value Is" in the first drop down and "less than"/”greater than” (dependant where your target date is [future or past]) in the second drop down. Then enter the following formula:
=NOW() (and dependent on whether you are using either the less than or greater than enter the number of days between now and 1st July (ie +30 for in 30 days time) so your entry would be =NOW()+30
Next, click on the Format button for Condition 2.
When the Format Cells window appears, select the Font tab. Then select the colour that you'd like to see the expired dates displayed in. In your example, select red. Then click on the OK button.
Return to the Conditional Formatting window.
Click on the OK button again.
Now when you return to the spreadsheet, the conditional formatting will be applied.

I hope that has solved your problem, if so please click the resolved link, regards Pete


Related articles

· How to check for and reduce errors in Microsoft Excel
· Advanced Excel Training - takes you to the next level
· Microsoft Excel Features and Functions for Accountants
· Customized Financial Excel Courses in London
· How to Create Better Excel Spreadsheets: Part One

Please browse our web site to find out more about
excel-courses-london and other Microsoft training courses.

Excel tip:

Missing Field handle

If your field handle goes missing all you need to do is go to tools > options > edit tab and then make sure that the check boxes for paste and insert buttons are checked.

View all Excel hints and tips

Rate this page:
3.5/5 (2 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz