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

HI
I am trying to put data validation in a cell where I want in the data in
this format. like
AB123456C as national insurance.
I tried CUSTOM in data validation and put there ??######?
It does not work.
any suggestion here?

Office 2003
winXP HE SP1

Thanks
--
MahaRaj
================================================== ================
Sorry about the time thingy.
Not my fault. My ISP ntl don't care whatever you think. Just follow up the
damn query. Check massage harder before wasting your time on sending me a
reminder. :)
Just kidding. Friends?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Data Validation


"MahaRaj" wrote in message
...
HI
I am trying to put data validation in a cell where I want in the data in
this format. like
AB123456C as national insurance.
I tried CUSTOM in data validation and put there ??######?
It does not work.
any suggestion here?

Office 2003
winXP HE SP1

Thanks
--
MahaRaj
================================================== ================
Sorry about the time thingy.
Not my fault. My ISP ntl don't care whatever you think. Just follow up the
damn query. Check massage harder before wasting your time on sending me a
reminder. :)
Just kidding. Friends?




Anybody?? Please!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Data Validation

what's ?? and ?.

I guessed alphas: A-Z or a-z.

=AND(LEN(A1)=9,CODE(LEFT(UPPER(A1),1))64,CODE(LEF T(UPPER(A1),1))<91,
CODE(MID(UPPER(A1),2,1))64,CODE(MID(UPPER(A1),2,1 ))<91,
ISNUMBER(-MID(A1,3,6)),MID(A1,3,6)=TEXT(--MID(A1,3,6),"000000"),
CODE(RIGHT(UPPER(A1),1))64,CODE(RIGHT(UPPER(A1),1 ))<91)



MahaRaj wrote:

HI
I am trying to put data validation in a cell where I want in the data in
this format. like
AB123456C as national insurance.
I tried CUSTOM in data validation and put there ??######?
It does not work.
any suggestion here?

Office 2003
winXP HE SP1

Thanks
--
MahaRaj
================================================== ================
Sorry about the time thingy.
Not my fault. My ISP ntl don't care whatever you think. Just follow up the
damn query. Check massage harder before wasting your time on sending me a
reminder. :)
Just kidding. Friends?


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Data Validation

For data validation in cell A2:

Choose DataValidation
For Allow, select Custom
In the formula box, enter:

=AND(LEN(A2)=9,CODE(LEFT(A2,1))=65,CODE(A2)<=90,
CODE(MID(A2,2,1))=65,CODE(MID(A2,2,1))<=90,
ISNUMBER(MID(A2,3,6)+0),CODE(RIGHT(A2,1))=65,
CODE(RIGHT(A2,1)<=90))

MahaRaj wrote:
HI
I am trying to put data validation in a cell where I want in the data in
this format. like
AB123456C as national insurance.
I tried CUSTOM in data validation and put there ??######?
It does not work.
any suggestion here?

Office 2003
winXP HE SP1

Thanks



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Data Validation

AB1234E1C
(CQC Southern Region, hehehe)



Debra Dalgleish wrote:

For data validation in cell A2:

Choose DataValidation
For Allow, select Custom
In the formula box, enter:

=AND(LEN(A2)=9,CODE(LEFT(A2,1))=65,CODE(A2)<=90,
CODE(MID(A2,2,1))=65,CODE(MID(A2,2,1))<=90,
ISNUMBER(MID(A2,3,6)+0),CODE(RIGHT(A2,1))=65,
CODE(RIGHT(A2,1)<=90))

MahaRaj wrote:
HI
I am trying to put data validation in a cell where I want in the data in
this format. like
AB123456C as national insurance.
I tried CUSTOM in data validation and put there ??######?
It does not work.
any suggestion here?

Office 2003
winXP HE SP1

Thanks


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Data Validation

Rats!

Dave Peterson wrote:
AB1234E1C
(CQC Southern Region, hehehe)



Debra Dalgleish wrote:

For data validation in cell A2:

Choose DataValidation
For Allow, select Custom
In the formula box, enter:

=AND(LEN(A2)=9,CODE(LEFT(A2,1))=65,CODE(A2)<=90 ,
CODE(MID(A2,2,1))=65,CODE(MID(A2,2,1))<=90,
ISNUMBER(MID(A2,3,6)+0),CODE(RIGHT(A2,1))=65,
CODE(RIGHT(A2,1)<=90))

MahaRaj wrote:

HI
I am trying to put data validation in a cell where I want in the data in
this format. like
AB123456C as national insurance.
I tried CUSTOM in data validation and put there ??######?
It does not work.
any suggestion here?

Office 2003
winXP HE SP1

Thanks


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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 on cells with data validation values AKrobbins Excel Worksheet Functions 2 June 21st 11 04:20 PM
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM


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