data validation using formula result

  • Thread starter Thread starter jpzachar
  • Start date Start date
J

jpzachar

Hello....hope you can help....thanks in advance!

I have a formula which is =COUNTIF(C100:M100,<>0). I want to show an error
message box when the result of this formula equals greater then 5. Is this
possible? The formula is in cell N:100

thanks,
Jeff
 
Hi,

Try this

=IF(COUNTIF(C100:M100,"<>0")>=5,"Error",COUNTIF(C100:M100,"<>0"))


if this helps, please click the Yes button
 
Thanks Shane.....is it possible to do this using data validation so that I
can use an error message box?

thanks in advance!
 

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

Similar Threads

Excel Need Countifs Formula Help 0
Formula??? 3
Excel VBA 1
Returning Desired Results 5
Countif result problem 4
If condition with text 3
need formula help 6
Formula result showing 0 3

Back
Top