Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How can I show text and numbers in data validation? i.e. L1234

I want people that use my spreadsheet to HAVE to enter a letter followed by
three numbers. I usually use data validation for tasks like this, however, I
can't figure out have to enforce a custom format of "letter, number, number,
number".
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default How can I show text and numbers in data validation? i.e. L1234

One way:

Allow: Custom
Formula: =AND(LEN(A1)=4, CODE(UPPER(LEFT(A1,1)))=65,
CODE(UPPER(LEFT(A1,1)))<=90, ISNUMBER(--RIGHT(A1,3)))

In article ,
lhaen wrote:

I want people that use my spreadsheet to HAVE to enter a letter followed by
three numbers. I usually use data validation for tasks like this, however, I
can't figure out have to enforce a custom format of "letter, number, number,
number".

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
Numbers show instead of text Mcoste New Users to Excel 3 October 10th 06 12:16 AM
Data Validation Drop Down List - Always Show Louise Excel Discussion (Misc queries) 1 September 18th 06 12:26 PM
Show do I share a dynamic list for data validation? KarenF Excel Discussion (Misc queries) 16 August 1st 06 10:51 PM
Data Validation using whole numbers from formulas brodiemac Excel Discussion (Misc queries) 4 April 20th 06 02:02 PM
Show comma in data validation list? [email protected] Excel Discussion (Misc queries) 7 May 17th 05 02:07 AM


All times are GMT +1. The time now is 09:58 AM.

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"