Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Hi,
I need a way to stop anything from being entered into a cell other than 2 letters and 2 numbers eg: AA12 (Alpha Alpha Numeric Numeric) Is there a way using validation to do this? Many thanks John |
#2
![]() |
|||
|
|||
![]()
Hi
P.e. =AND(ISERROR(MID(A1,1,1)*1),ISERROR(MID(A1,2,1)*1) ,NOT(ISERROR(MID(A1,3,1)*1)),NOT(ISERROR(MID(A1,4, 1)*1)),LEN(A1)=4) as validation rule -- Arvi Laanemets ( My real mail address: arvil<attarkon.ee ) "JohnUK" wrote in message ... Hi, I need a way to stop anything from being entered into a cell other than 2 letters and 2 numbers eg: AA12 (Alpha Alpha Numeric Numeric) Is there a way using validation to do this? Many thanks John |
#3
![]() |
|||
|
|||
![]()
Hi Arvi,
Thank you for your response. I tried entering the formula into the Data Validation box on the Custom box, is this correct, or is there another way? because as it is I cant get it to work. John "Arvi Laanemets" wrote: Hi P.e. =AND(ISERROR(MID(A1,1,1)*1),ISERROR(MID(A1,2,1)*1) ,NOT(ISERROR(MID(A1,3,1)*1)),NOT(ISERROR(MID(A1,4, 1)*1)),LEN(A1)=4) as validation rule -- Arvi Laanemets ( My real mail address: arvil<attarkon.ee ) "JohnUK" wrote in message ... Hi, I need a way to stop anything from being entered into a cell other than 2 letters and 2 numbers eg: AA12 (Alpha Alpha Numeric Numeric) Is there a way using validation to do this? Many thanks John |
#4
![]() |
|||
|
|||
![]()
Hi
It works for me. I selected cell A1, from Data menu Data Validation, selected Custom, and entered the formula into Formula field (copied from formula toolbar, as I tested it in some cell before) Copy the formula into any cell except A1. The formula must return True, when A1 is empty, or contains string in format "CC##", otherwise it always returns False -- Arvi Laanemets ( My real mail address: arvil<attarkon.ee ) "JohnUK" wrote in message ... Hi Arvi, Thank you for your response. I tried entering the formula into the Data Validation box on the Custom box, is this correct, or is there another way? because as it is I cant get it to work. John "Arvi Laanemets" wrote: Hi P.e. =AND(ISERROR(MID(A1,1,1)*1),ISERROR(MID(A1,2,1)*1) ,NOT(ISERROR(MID(A1,3,1)*1)),NOT(ISERROR(MID(A1,4, 1)*1)),LEN(A1)=4) as validation rule -- Arvi Laanemets ( My real mail address: arvil<attarkon.ee ) "JohnUK" wrote in message ... Hi, I need a way to stop anything from being entered into a cell other than 2 letters and 2 numbers eg: AA12 (Alpha Alpha Numeric Numeric) Is there a way using validation to do this? Many thanks John |
#5
![]() |
|||
|
|||
![]()
Sorry Arvi,
Stupid of me - I didnt reference the cell I was working on. Many thanks for your help It worked a treat. John "Arvi Laanemets" wrote: Hi P.e. =AND(ISERROR(MID(A1,1,1)*1),ISERROR(MID(A1,2,1)*1) ,NOT(ISERROR(MID(A1,3,1)*1)),NOT(ISERROR(MID(A1,4, 1)*1)),LEN(A1)=4) as validation rule -- Arvi Laanemets ( My real mail address: arvil<attarkon.ee ) "JohnUK" wrote in message ... Hi, I need a way to stop anything from being entered into a cell other than 2 letters and 2 numbers eg: AA12 (Alpha Alpha Numeric Numeric) Is there a way using validation to do this? Many thanks John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TWO QUESTIONS: Validation & Spacing...PLEASE HELP | Excel Discussion (Misc queries) | |||
data validation lists | Excel Discussion (Misc queries) | |||
named range, data validation: list non-selected items, and new added items | Excel Discussion (Misc queries) | |||
Effect of Conditional Formatting, Data Validation | Excel Discussion (Misc queries) | |||
Data Validation Window? | Excel Discussion (Misc queries) |