Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i want to validate two cells
first one: only alphabet a-z A-Z second one: it should be a number but it can have a decimal place 0-9 & . i want a MsgBox "error" to appear if the user enters in something not valid. how do i validate these? pleaaaase help! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use data validation.
Jake Marx just posted this formula in response to a similar posting: =25*LEN(A1)=SUM(LEN(SUBSTITUTE(UPPER(A1),CHAR(ROW( $A$65:$A$90)),""))) (this is an array formula, but used in validation, it should require any special attention (untested). ) for the second, use the build in choice of decimal and specify your bounds. Your statement of the restriction sounds like it can be a decimal number. If it is more restrictive than that, then you have not stated that clearly. -- Regards, Tom Ogilvy wrote in message ... i want to validate two cells first one: only alphabet a-z A-Z second one: it should be a number but it can have a decimal place 0-9 & . i want a MsgBox "error" to appear if the user enters in something not valid. how do i validate these? pleaaaase help! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hello,
i don't understand what this formula does?? can someone please explain! :( -----Original Message----- Use data validation. Jake Marx just posted this formula in response to a similar posting: =25*LEN(A1)=SUM(LEN(SUBSTITUTE(UPPER(A1),CHAR(R OW ($A$65:$A$90)),""))) (this is an array formula, but used in validation, it should require any special attention (untested). ) for the second, use the build in choice of decimal and specify your bounds. Your statement of the restriction sounds like it can be a decimal number. If it is more restrictive than that, then you have not stated that clearly. -- Regards, Tom Ogilvy wrote in message ... i want to validate two cells first one: only alphabet a-z A-Z second one: it should be a number but it can have a decimal place 0-9 & . i want a MsgBox "error" to appear if the user enters in something not valid. how do i validate these? pleaaaase help! . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
xl 2007 how to validate that cell 1 invalid if cell 2 not blank | Excel Discussion (Misc queries) | |||
how do i validate a cell that has a formula | Excel Discussion (Misc queries) | |||
Validate entry based on another cell value | Excel Discussion (Misc queries) | |||
Can I validate a cell only if a certain condition is met? | Excel Discussion (Misc queries) | |||
Validate value in cell | Excel Programming |