Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom validation criteria!

Hello everyone,
I would appreciate any help to set formular for custom validation tha
allow only 4 digits entry in this format: first two digits with alph
and second two digits with number.

Regards,
Kim-An

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Custom validation criteria!

Hi
enter the following formula (for cell A1)
=(LEN(A1)=4)*(ISNUMBER(--RIGHT(A1,2)))*(NOT(ISNUMBER(--LEFT(A1,2))))

--
Regards
Frank Kabel
Frankfurt, Germany


Hello everyone,
I would appreciate any help to set formular for custom validation

that
allow only 4 digits entry in this format: first two digits with alpha
and second two digits with number.

Regards,
Kim-Anh


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom validation criteria!

Hello Frank,

I copy the code you wrote and pasted in the formula in the validatio
criteria tab. But it did not work as what I need! Maybe I did not plac
it in the right place! I would like to force this field require tw
alpha digits and follow by two number digits. Like GS50, TN11, or A05.
Please help me again! Thanks in advance!
Regards,

Kim-An

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Custom validation criteria!

Hi
missed one check (e.g. 'T000') But besides that the formula should
work. What problem do you have?.

Try the following slightly changed formula:
=(LEN(A1)=4)*(ISNUMBER(--RIGHT(A1,2)))*(NOT(ISNUMBER(--LEFT(A1,1))))*(N
OT(ISNUMBER(--MID(A1,2,1))))

Note: your example 'A05' would not be accepted (only ONE character)


--
Regards
Frank Kabel
Frankfurt, Germany


Hello Frank,

I copy the code you wrote and pasted in the formula in the validation
criteria tab. But it did not work as what I need! Maybe I did not
place it in the right place! I would like to force this field
require two alpha digits and follow by two number digits. Like GS50,
TN11, or A05. Please help me again! Thanks in advance!
Regards,

Kim-Anh


---
Message posted from http://www.ExcelForum.com/


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom validation criteria!

Thank you so much for your quick reply. I got this message:
"The name range you speciafied can not be found"

The cell that I want this validation is Y3 and it is a merge cell
Would that be the problem?

=(LEN(Y3)=4)*(ISNUMBER(--RIGHT(Y3,2)))*(NOT(ISNUMBER(--LEFT(Y3,1))))*(N
OT(ISNUMBER(--MID(Y3,2,1)))

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Custom validation criteria!

Hi
if you put this formula in a cell on your worksheet, do you also get an
error (formula looks o.k.). Maybe you use a diufferent delimiter (e.g.
the semicolon instead of a coma?)

--
Regards
Frank Kabel
Frankfurt, Germany


Thank you so much for your quick reply. I got this message:
"The name range you speciafied can not be found"

The cell that I want this validation is Y3 and it is a merge cell!
Would that be the problem?


=(LEN(Y3)=4)*(ISNUMBER(--RIGHT(Y3,2)))*(NOT(ISNUMBER(--LEFT(Y3,1))))*(N
OT(ISNUMBER(--MID(Y3,2,1))))


---
Message posted from http://www.ExcelForum.com/


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 - Custom tikchye_oldLearner57 Excel Discussion (Misc queries) 1 May 3rd 06 01:47 PM
Using custom functions within custom validation Neil Excel Discussion (Misc queries) 4 December 14th 05 10:40 PM
Custom Validation tkaplan Excel Discussion (Misc queries) 8 November 14th 05 01:21 PM
Data Validation - Scroll in the formula bar for a custom criteria Hanno Scholtz Excel Worksheet Functions 3 September 22nd 05 02:11 PM


All times are GMT +1. The time now is 05:13 AM.

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

About Us

"It's about Microsoft Excel"