ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Setting Data Validation (https://www.excelbanter.com/excel-discussion-misc-queries/191922-setting-data-validation.html)

Techtrainer

Setting Data Validation
 
Can anyone tell me how, if possible, can I set up a data validation, such the
entry must star with a capital E and be followed by 3 numeric digits?

Thanks
Bill

Jim Rech

Setting Data Validation
 
I'm sure it can be done more elegantly but with A1 selected select Custom
from the Data Validation Allow drop down and paste this in:

=EXACT(LEFT(A1,1),"E")*(LEN(A1)=4)*NOT(ISERROR(RIG HT(A1,3)*2))

--
Jim
"Techtrainer" wrote in message
...
| Can anyone tell me how, if possible, can I set up a data validation, such
the
| entry must star with a capital E and be followed by 3 numeric digits?
|
| Thanks
| Bill



Techtrainer

Setting Data Validation
 
Thanks!! Worked great!!

"Jim Rech" wrote:

I'm sure it can be done more elegantly but with A1 selected select Custom
from the Data Validation Allow drop down and paste this in:

=EXACT(LEFT(A1,1),"E")*(LEN(A1)=4)*NOT(ISERROR(RIG HT(A1,3)*2))

--
Jim
"Techtrainer" wrote in message
...
| Can anyone tell me how, if possible, can I set up a data validation, such
the
| entry must star with a capital E and be followed by 3 numeric digits?
|
| Thanks
| Bill





All times are GMT +1. The time now is 11:41 PM.

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