Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default custom validation number and text

how can i write formula for custom validation for a cell like this.

first 3 digit shoulg be a number, next digit should be a text then next 6
digit should be number.

e.g. 126P151008

thanks in advance



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default custom validation number and text

The following should return TRUE for your example in cell A1

=IF(AND(ISNUMBER(VALUE(LEFT(A1,3)))=TRUE,ISNUMBER( VALUE(MID(A1,4,1)))=FALSE,ISNUMBER(VALUE(RIGHT(A1, 6)))),TRUE,FALSE)

Hope this helps,
Gary

"aditya" wrote:

how can i write formula for custom validation for a cell like this.

first 3 digit shoulg be a number, next digit should be a text then next 6
digit should be number.

e.g. 126P151008

thanks in advance



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
Custom Data Validation for specific text and numbers only Antonio Excel Discussion (Misc queries) 2 April 22nd 08 05:08 PM
Want to custom formatting a number similar to @,@ for text. QuasiChameleon Excel Discussion (Misc queries) 1 November 10th 06 05:50 AM
Data Validation and Custom Number Formats Sloth Excel Discussion (Misc queries) 1 August 3rd 06 10:22 PM
Data validation with custom number formatting rbekka Excel Discussion (Misc queries) 1 June 19th 06 08:31 AM
Custom Number Format Text Frank & Pam Hayes Excel Discussion (Misc queries) 3 December 3rd 05 05:36 PM


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