Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Forcing a postcode in Excel 2003

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Forcing a postcode in Excel 2003

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Forcing a postcode in Excel 2003

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
forcing date to excel Daniel Excel Worksheet Functions 1 September 28th 07 03:12 AM
M25 postcode VBA Noob Excel Worksheet Functions 6 August 6th 06 12:12 PM
postcode flow23 Excel Discussion (Misc queries) 2 January 18th 06 04:38 PM
HELP WITH POSTCODE FORMATTING UK EXCEL MAN Excel Worksheet Functions 1 December 27th 04 09:01 AM
GIS mapping / routing / driving / addressing / postcode information in Excel Will[_7_] Excel Programming 1 January 28th 04 01:28 AM


All times are GMT +1. The time now is 10:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"