Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Data Validation of user input

I need a function to text user input. The input must be 10 characters in
length, consist of 5 digits, 1 letter and then 4 digits (a property barcode).
Examples:
00015D6345
01451A0011
Any other format will get an error message.
Can someone help me?
--
Dan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Data Validation of user input

Use DV with a formula of

=AND(LEN(A1)=10,ISNUMBER(--(LEFT(A1,5))),CODE(LOWER(MID(A1,6,1)))=97,CODE(LO WER(MID(A1,6,1)))<=122,ISNUMBER(--(RIGHT(A1,4))))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Dan" wrote in message
...
I need a function to text user input. The input must be 10 characters in
length, consist of 5 digits, 1 letter and then 4 digits (a property
barcode).
Examples:
00015D6345
01451A0011
Any other format will get an error message.
Can someone help me?
--
Dan



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Input Validation Mark S[_2_] Excel Discussion (Misc queries) 5 February 24th 08 12:00 AM
Incrementing Data based on user input learningaccess Excel Discussion (Misc queries) 3 January 26th 07 03:28 PM
Excel + user input + external data (URL manipulation) [email protected] Excel Discussion (Misc queries) 2 September 28th 06 05:48 PM
User Data Input DRANDON Excel Worksheet Functions 0 June 30th 06 08:12 PM
Asking for user input if there is no data for the function elitewolverine Excel Worksheet Functions 0 October 13th 05 09:17 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"