Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2005

Tip: Looking for answers? Try searching our database.

Validation of Postal Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Veronika - 16 Dec 2005 20:45 GMT
Hi;

is there a way to validate CND postal codes in a spreadsheet? If not how can
I format the column to accept only A9A9A9 type of data? (Upper case,
number,uppercase, etc.)
Thank you,

Veronika
Debra Dalgleish - 16 Dec 2005 21:42 GMT
You can use the custom data validation formula that J.E. McGimpsey shows
in this message:


http://groups.google.ca/group/microsoft.public.excel.misc/msg/4e93ebdb2d254817?hl=en&

If you want to check for upper case, you can add the Exact function to
the formula. However, the formula would then be too long for the data
validation formula box:


=AND(EXACT(A1,UPPER(A1)),(LEFT(A1)>="A")*(LEFT(A1)<="Z")*(MID(A1,2,1)>="0")*(MID(A1,2,1)<="9")*(

MID(A1,3,1)>="A")*(MID(A1,3,1)<="Z")*(MID(A1,4,1)>="0")*(MID(A1,4,1)<="9

")*(MID(A1,5,1)>="A")*(MID(A1,5,1)<="Z")*(MID(A1,6,1)>="0")*(MID(A1,6,1)
 <="9")*(LEN(A1)=6))

You could enter the formula in an adjacent cell, and in the cell where
the postal code is entered, use data validation to check that the
formula result is true.

> Hi;
>
[quoted text clipped - 4 lines]
>
> Veronika

Signature

Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.