ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   data validation using formula result (https://www.excelbanter.com/excel-discussion-misc-queries/209676-data-validation-using-formula-result.html)

jpzachar

data validation using formula result
 
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

ShaneDevenshire

data validation using formula result
 
Hi,

Try this

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


if this helps, please click the Yes button
--
Thanks,
Shane Devenshire


"jpzachar" wrote:

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


jpzachar

data validation using formula result
 
Thanks Shane.....is it possible to do this using data validation so that I
can use an error message box?

thanks in advance!

"ShaneDevenshire" wrote:

Hi,

Try this

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


if this helps, please click the Yes button
--
Thanks,
Shane Devenshire


"jpzachar" wrote:

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



All times are GMT +1. The time now is 01:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com