[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

conditional formatting in excel vba

Posted on 2014-02-20
1
Medium Priority
?
217 Views
Last Modified: 2014-03-20
i would like to have a cell text value be highlighted if the values in the cells are

0,2 to 14,19 to 25 using conditional formatting.thanks
0
Comment
Question by:Svgmassive
1 Comment
 
LVL 26

Accepted Solution

by:
pony10us earned 2000 total points
ID: 39874721
One method is to use conditional formating based on the following formula:

=OR($A$1=0,$A$1=2,$A$1=3,$A$1=4,$A$1=5,$A$1=6,A$1$=7,A$1$=8,A$1$=9,A$1$=10,A$1$=11,A$1$=12,A$1$=13,A$1$=14,A$1$=19,A$1$=20,A$1$=21,A$1$=22,A$1$=23,A$1$=24,A$1$=25))

Or to make it easier to read:

=OR($A1=0,(AND($A1>1,$A1<15)),(AND($A1>18,$A1<26)))

Place your cursor in the cell you want to format and select the Conditional Format button. Select New Rule and then Use a Formula. Adjust the cell reference (A$1) to the cell the value is in.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Viewers will learn the different options available in the Backstage view in Excel 2013.
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 …

873 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