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 2010

Adrian has attended:
Excel VBA Introduction course
Excel VBA Intermediate course
Excel Intermediate course

Conditional Formatting

Hi

I need help in ensuring conditional formatting only applies to cells that contain a number, not those that contain a formula. The amount of data varies which is why I put the first part of my formula in, i.e. to produce a result if A1 is populated. Each day there can be 10,20,30 entries etc.

A B C
60 60 =if(a1="","",if(a1=b1,0,1))
15 20
blank blank

I require conditional formatting anything that doesn't populate a 0 to be highlighted Red, so i.e. >0. Which is fine, but I copy this formula down for about 30 cells, so if there are only 20 entries, the formatting applies to the other 10 cells which are blank (I assume its because they contain a formula??)

Your help would be much appreciated, many thanks

Adrian

RE: Conditional Formatting

Hi Adrian,

Thank you for the forum question.

I hope, that I understand you right.

I selected column C and clicked Conditional Formatting - New Rule - Use a formula to determine which cells to format.

Here I added the formula:


=AND(ISNUMBER(C2),C2>0)

I refer to row two because my first row in my test was row two. If your data start from another row you must change the row number.


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Mon 3 Aug 2015: Automatically marked as resolved.

Excel tip:

Trace Dependents / Precedents without the blue arrows

Rather than using the toolbar you can press CTRL+] which is the equivelent of trace dependants and CTRL+[ for precendants. Both of these ways though will not show the blue arrows but jump to the cell containing the formula.

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.09 secs.