conditional formats
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training add this page to your favourites/bookmarksBookmark page

view a printable version of this pagePrintable version
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

Conditional formats

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

resolvedResolved · Low Priority · Version 2003

No ranking yet
1 post
replyReplyThu 7 Jan 2010, 16:24Delegate Marjorie said...

Marjorie has attended:
Excel Intermediate course

Conditional formats

how do I change a whole row based on conditional formats?

Excel VBA Intro Intermediate 2 day course
Version Date Location Places
available
Book Next place rate (£)
Pay by
Card
Pay by
Invoice
2003 Mon 22 + Tue 23 Mar 2010 Bloomsbury 0 FULL    
2007 Tue 6 + Wed 7 Apr 2010 Bloomsbury 4 Book now £470 £475
2003 Wed 7 + Thu 8 Apr 2010 Southwark 7 Book now £445 £450
2007 Thu 15 + Fri 16 Apr 2010 Bloomsbury 0 FULL    
2003 Wed 21 + Thu 22 Apr 2010 Bloomsbury 7 Book now £445 £450
2007 Wed 28 + Thu 29 Apr 2010 Bloomsbury 6 Book now £445 £450
Full Schedule: See all 35 Excel VBA Intro Intermediate course dates.
Bookings currently available until 22nd December 2010.

Diamond
1,056 posts
replyReplyFri 8 Jan 2010, 10:16Trainer Andrew said...

RE: conditional formats

Hi Marjorie

Here is the note I've put together re conditional formats that apply across multiple cells and rows. Let me know if you have any feedback on it as it involves lots of steps and I'm sure it can be improved.

The trick to making this work is to apply a formula based conditional format and then check to see if the absolute reference in the formula needs to be amended to allow you to apply the format across all rows of your list.

For example: In a row that has three cells as follows:

A1 B1 C1
.5 XYZ On Track

We might want the conditional formatting for A1 to A3 go green when the status is On Track.

Highlight Cells A1 to C1
From the format menu choose Conditional Formatting
Change the condition control from "Cell value is..." to "Formula is" then click into the field box to make it active and collapse the dialogue box using the button with the red flash. Click into the A3 cell as this contains the value that will trigger the formatting.

Expand the dialogue box by clicking the button with the red flash again and note the formula:


=$C$1


The formula assumes the references must be absolute. This is OK for this line will want this format to be applied to the remaining rows in our list.

Regardless of how many records we have the column containing the test will always C but row number will.

In this case remove the dollar symbol before the reference to row 1 to switch it from Absolute to a Relative reference.

Next we need to complete the formula with the test as follows:

=$C1="On Track"

Lastly click the format button to decide the formatting that should apply if the condition is true. You might decide to set the patter to be green and the Font to White and Bold so it stands out.

Click OK and you should now find that the cells A1 to C1 go green with white text when C1 contains the text On Track. With anything else in C1 the text reverts back to normal.

Now Click on one of the cells that contain this conditional formatting rule (either A1, B1 or C1) and click the format painter button on the top toolbar (looks like paint brush). You can now "paint" this conditional format over any other records in your database (e.g. A2 through to C2, A3 to C3 and so on).

Because we removed the dollar symbol from before the row number in the Conditional formula Excel will test the contents of the current row in column C, not just the first row.


I hope this helps. I realise this is quite a long answer - do let me know if you have any questions.

Kind regards,
Andrew

Thu 14 Jan 2010: Automatically marked as resolved.


Related articles

· Excel Macros for the Non-Programmer
· What's Better Than the Help Function in Excel? Microsoft Training
· VBA Excel 2007
· Reasons Why VBA for Excel Training Fails
· Why Excel Training (Sometimes) Doesn't Work and What You Can Do About It

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

Excel tip:

Change the default location for opening and saving spreadsheets

If you are always opening spreadsheets from and/or saving documents to a specific location that is not My Documents, save time by setting this folder as the default for opening files from and saving files to.

Here's how:
1. Go to Tools - Options.

2. Select the General tab.

3. Enter the pathname of the folder you wish to make the default in the Default File Location box (hint: it will be easier to use Windows Explorer to navigate to this folder, then copy and paste the pathname from the address bar at the top of the Windows Explorer screen).

4. Click OK.

You have now changed the default folder for opening and saving spreadsheets.

View all Excel hints and tips


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

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Association of Computer Trainers verified by visa, mastercard securecard