Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Data Validation and Input Mask

Using Excel 2003's Data Validation feature (rather than VBA code), is it
possible to create an input mask? Specifically, I need to test for certain
valid characters in a Project ID as follows:

Example: PA264.04

Position 1: can be either a "B" or "P"
Positions 2-5: can be either uppercase letters or numbers
Position 6: must be a decimal point
Positions 7-8: can only be numeric (00 - 99)

Any help would be greatly appreciated. Thanks.
Bob

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Data Validation and Input Mask

Bob,

For example, if your Project ID cell is in cell A2, select cell A2 and use Data Validation / "Allow"
Custom, and use the formula

=AND(OR(LEFT(A2,1)="P",LEFT(A2,1)="B"),EXACT(MID(A 2,2,4),UPPER(MID(A2,2,4))),MID(A2,6,1)=".",NOT(ISE RROR(VALUE(RIGHT(A2,2)))))


HTH,
Bernie
MS Excel MVP


"Bob" wrote in message
...
Using Excel 2003's Data Validation feature (rather than VBA code), is it
possible to create an input mask? Specifically, I need to test for certain
valid characters in a Project ID as follows:

Example: PA264.04

Position 1: can be either a "B" or "P"
Positions 2-5: can be either uppercase letters or numbers
Position 6: must be a decimal point
Positions 7-8: can only be numeric (00 - 99)

Any help would be greatly appreciated. Thanks.
Bob



  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Data Validation and Input Mask

Bernie,
The formula works perfectly! Thanks!
Bob


"Bernie Deitrick" wrote:

Bob,

For example, if your Project ID cell is in cell A2, select cell A2 and use Data Validation / "Allow"
Custom, and use the formula

=AND(OR(LEFT(A2,1)="P",LEFT(A2,1)="B"),EXACT(MID(A 2,2,4),UPPER(MID(A2,2,4))),MID(A2,6,1)=".",NOT(ISE RROR(VALUE(RIGHT(A2,2)))))


HTH,
Bernie
MS Excel MVP


"Bob" wrote in message
...
Using Excel 2003's Data Validation feature (rather than VBA code), is it
possible to create an input mask? Specifically, I need to test for certain
valid characters in a Project ID as follows:

Example: PA264.04

Position 1: can be either a "B" or "P"
Positions 2-5: can be either uppercase letters or numbers
Position 6: must be a decimal point
Positions 7-8: can only be numeric (00 - 99)

Any help would be greatly appreciated. Thanks.
Bob




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 Validation-Input Mask Smitty52 Excel Discussion (Misc queries) 5 August 29th 06 03:12 AM
Input Mask for Dates Brenda Rueter Excel Discussion (Misc queries) 5 April 24th 06 03:28 PM
Input Mask Steven Excel Worksheet Functions 1 January 16th 06 11:27 PM
input mask in excel Osama Mira Excel Worksheet Functions 6 December 6th 05 10:00 PM
Input Mask Jimmy Clay New Users to Excel 3 December 1st 04 01:16 AM


All times are GMT +1. The time now is 07:26 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"