Formula???

J

John Sofillas

Hi,
I am looking for a formula that does the following.....

C1 through C16 values are set to 0
B1 has a value of 100
Data entered into C1 through C16 has to be greater than or equal to
B1, but can be 0 (it just can't be 1 - 99)
In cell D1 I need a formula that results with any type of notification
that a number has been entered into C1 through C16 1 - 99

Any assistance on this would be greatly appreciated. Thanks!
 
R

RagDyer

Does this work for you:

=IF(SUMPRODUCT((C1:C16>0)*(C1:C16<B1))>0,"BAD DATA","")
 
J

Jim Thomlinson

If I were doing that I would use a combination of Validation and Conditional
Formatting...

Select the range C1:C16
Select Data -> Validation | Custom
Add this formula
=OR(C1 = 0, C1 >= $B$1)
Select the Error Alert tab and Change from Error to Warning
Select Ok

Select Format -> Conditonal Formatting
Change from Cell Value Is to Formula Is
Add this formula
=AND(C1 > 0, C1 < $B$1)
Click the format button and Select a Pattern or such as your alert.
Select Ok.
 
J

John Sofillas

If I were doing that I would use a combination of Validation and Conditional
Formatting...

Select the range C1:C16
Select Data -> Validation | Custom
Add this formula
=OR(C1 = 0, C1 >= $B$1)
Select the Error Alert tab and Change from Error to Warning
Select Ok

Select Format -> Conditonal Formatting
Change from Cell Value Is to Formula Is
Add this formula
=AND(C1 > 0, C1 < $B$1)
Click the format button and Select a Pattern or such as your alert.
Select Ok.
--
HTH...

Jim Thomlinson







- Show quoted text -

This is EXACTLY what I was looking for. Thanks RagDyer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top