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/


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

I went to Data_validation_setting tab,_custom criteria and paste thi
formula. And it works only in non merged cell!
Is there a way to have this work in a merged cell? If not, I just hav
to change my work sheet a little so I could have this in a non merge
cell.
Thank you so much again, Frank! And I hope that you will have a grea
day!
Regard

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

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

Hi
should also work in a merge cell (thou8gh I haven't tested it). Does it
work for a non merge cell?

--
Regards
Frank Kabel
Frankfurt, Germany


I went to Data_validation_setting tab,_custom criteria and paste this
formula. And it works only in non merged cell!
Is there a way to have this work in a merged cell? If not, I just

have
to change my work sheet a little so I could have this in a non merged
cell.
Thank you so much again, Frank! And I hope that you will have a great
day!
Regard,


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


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

Yes, it works for a non merged cell. I move and delete some columm s
that I can place the formulas in where I want. It works in all no
merged cell except those merged cells. I tried several of them and tha
is the case every time.
At least I finish what I need! I know that there are a lot more thin
that I need to learn and I hope that you would teach me.
Have a good day! And thanks,
Regards,
Kim-An

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

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

Hi,
I need to have validation for a column in a worksheet. the dat
would be either a 10 digit number or several 10 digits number
seperated with a "/". the cells should not accept any numberstrin
lesser than 10 digits and if there are more than one 10 digit string
should accept the seperator "/" in between

--
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 10:58 PM.

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"