Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Phone Number Validation 2

Status
Not open for further replies.

zoe19

Technical User
Joined
Feb 2, 2004
Messages
1
Location
GB
I am adding Phone numbers into a worksheet in Excel 2000 and I am trying to validate entries which will only
accept numbers beginning with 01

e.g 0151 123 3456 this is the format I want to customize
I have tried Excels own phone number Validation but it gets rid of the 0 at the front of the number.

Is there a way of validating numbers

Zoe
 
Firstly, have the column formatted at text, so that if anyone enters all numeric phone numbers they won't be taken to be real numbers.

Do Data Validation on the column, with a Custom Validation of
=LEFT(A1,2)="01"
assuming you have column A selected ( with cell A1 and the active cell ).

That should do it.

Cheers, Glenn.
 
Good one, Glenn!

Thanks,

-Bob in California

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top