LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default Conditional formatting and validation

=OR(A2<(B2+C2),A2<(D2+E2+F2))

What this does is combines 2 of the checks into one. In this way, if either
of those conditions is met, the conditional format will kick in. You will
not be able to have 4 different colors to tell you what the problem is, but
you will at least see that something is wrong. You could combine further if
you wanted to like this:

=OR(A2=(B2+C2),A2=(D2+E2+F2),A2=(G2-H2))

Just keep adding conditions separated by comma's. Many times it helps to
practice the function using the function builder outside of the conditional
format in a cell so that you have the explanations to work with. If you get
a function working the way that you want it to, then copy and paste it into
the conditional format.

Another thing that you may want to do if you have 3 conditions is create a
legend somewhere that identifies where the problem exists. If the color
turns red vs. blue, for instance, color the headings blue that have the
condition set to blue and the headings red for the red condition)

"Krissy" wrote:

That works really well, thanks!

The only problem is I have 4 sets of figures which have to be validated this
way and conditional formatting only goes up to three..

Any thoughts on that?

"Brad Vogt" wrote:

Use a formula to set the condition:

=A2<(B2+C2)
and set that color to red (or whatever)

Set a second condition
=A2<(D2+E2+F2)
and set that color to yellow

Format painter should work down the blank cells in column A because you
entered the conditional format with relative references. If the first
condition is met, then the second condition is not checked. If there are no
problems, there should be no formats on the cell in column A.


"Krissy" wrote:

Hi all
Quick help:
I have a worksheet were we enter a total number first , and then numbers
for different arguments.
For exmpl:
A B C D E F
Total Male Female Age40 Age41 Age42
12 7 5 6 4 2

etc.

As they are all entered manually, I'd like to have some sort of conditional
formatting in place if for A if A not=B+C or A not=D:F so the user can see if
the entered figures don't add up.

Any quick idea?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation Conditional Formatting....or both? Klee Excel Worksheet Functions 3 January 3rd 08 12:48 PM
Stumped Conditional Formatting or Validation? SCrowley Excel Worksheet Functions 4 September 24th 07 07:44 PM
Finding data validation and conditional formatting Dave L[_2_] Excel Discussion (Misc queries) 1 May 2nd 07 12:06 AM
Data Validation & Conditional Formatting Shelly Excel Discussion (Misc queries) 3 December 22nd 06 08:23 PM
Effect of Conditional Formatting, Data Validation Bill Sturdevant Excel Discussion (Misc queries) 1 January 25th 05 11:50 PM


All times are GMT +1. The time now is 04:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"