Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Doing a simple spreadsheet with UK postcodes in trying to make it so that
whatever you put in is in a predesigned way. At the moment I have it so that format cells asks for AA## #AA, but this does not seem to work? I want to force capital letters and to force a 0 if the postcode first number is a single figure (example if the postcode is ip6 8ly, I want excel to convert it to IP06 8LY)... Get my point??? Regards Scott |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What do you mean by format cells asks for AA## #AA? How are you doing this?
-- Regards, Tom Ogilvy "Scott" wrote in message ... Doing a simple spreadsheet with UK postcodes in trying to make it so that whatever you put in is in a predesigned way. At the moment I have it so that format cells asks for AA## #AA, but this does not seem to work? I want to force capital letters and to force a 0 if the postcode first number is a single figure (example if the postcode is ip6 8ly, I want excel to convert it to IP06 8LY)... Get my point??? Regards Scott |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Scott wrote:
At the moment I have it so that format cells asks for AA## #AA A UK postcode is a bit more complex. For details (and I think I've got the correct country this time, Tom <g) see: http://www.evoxfacilities.co.uk/evoxps.htm FWIW I found this (untested) SQL DDL in my notes, which includes a simple regex for a UK postcode: postcode VARCHAR(8) NOT NULL CHECK (postcode LIKE '[A-Z][$A-Z][0-9][$0-9A-Z] [0-9][ABD- HJLNP-UW-Z][ABD-HJLNP-UW-Z]') Jamie. -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
forcing date to excel | Excel Worksheet Functions | |||
M25 postcode | Excel Worksheet Functions | |||
postcode | Excel Discussion (Misc queries) | |||
HELP WITH POSTCODE FORMATTING | Excel Worksheet Functions | |||
GIS mapping / routing / driving / addressing / postcode information in Excel | Excel Programming |