Solved

MS Excel Conditional Formatting - Ignore "-"

Posted on 2012-03-12
4
352 Views
Last Modified: 2012-03-14
I'm using conditional formatting in Excel 2010 to identify values in a table greater than a certain value.  Unfortunately, the table has a dash ('-') in each cell where there is no value and for some reason this meets the criteria so the cell is shaded along with the cells that have the relevant value. Can anyone suggest a way around this?
If it involves using multi-criteria, can you tell me how to set up this as cant see how to do so in Excel 2010 (used to be able to do this in Excel 2003).
Thanks
0
Comment
Question by:gh_user
  • 2
4 Comments
 
LVL 6

Expert Comment

by:reitzen
ID: 37713350
Can you use ">=" and use the value .0000001 or whatever the minimum value might be?

This would eliminate the zero, as represented by the "-" in the number format.
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 400 total points
ID: 37714006
You need to use the 'use a formula to determine which cells to format' option, and then use a formula like:
=AND(ISNUMBER(A1),A1>50)
where A1 is the active cell, and 50 is whatever your threshold number is.

HTH
Rory
0
 

Author Comment

by:gh_user
ID: 37717546
Thanks Rorya.  How should formula be written so it works for multiple cells...ie I have cells within 4 columns and 300 rows that I want to highlight if their value is greater than 50.
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 37717730
Select all the cells and use that formula but replace A1 with whatever is the active cell. Note the A1 is relative - i.e. no $ signs anywhere.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now