ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Custom Validation Not Accepting Valid Data Revision (https://www.excelbanter.com/excel-worksheet-functions/111893-custom-validation-not-accepting-valid-data-revision.html)

[email protected]

Custom Validation Not Accepting Valid Data Revision
 
Does anyone know why the following custom validation formula does NOT
allow
the user to accept zero (0) as a valid replacement for the target
cell?:

S11=AND(COUNTA($P11:$S11)<3)

MS-Excel will allow the user to hit the "escape" key and reset the
target field
value back to "blank" status.


Debra Dalgleish

Custom Validation Not Accepting Valid Data Revision
 
A zero is counted by the COUNTA function, and a blank cell is not
counted. If there are already two entries in the range P11:S11, the
formula won't allow any entry, even a zero, in the cell with validation.

The formula doesn't need the AND function though, and could be
simplified to:

=COUNTA($P11:$S11)<3

wrote:
Does anyone know why the following custom validation formula does NOT
allow
the user to accept zero (0) as a valid replacement for the target
cell?:

S11=AND(COUNTA($P11:$S11)<3)

MS-Excel will allow the user to hit the "escape" key and reset the
target field
value back to "blank" status.



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



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

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