+ Reply to Thread
Results 1 to 3 of 3

Auto-formatting a text string.

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Auto-formatting a text string.

    Hi all,

    I have a cell containing a post code (U.K). For example CF678JU however I need it to be formatted to show CF67 8JU. Is there a quick option of setting a formatting rule to add the space instead of me going into each cell and changing... (there's thousands of them!!!)

    Thanks in advance...
    Last edited by Steve-B; 10-17-2008 at 10:56 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Hi,

    I don't think there's a formatting option to do this, but you can use a formula to convert them

    =LEFT(A1,LEN(A1)-3)&" "&RIGHT(A1,3)

    will add a space in the appropriate place to the postcode in A1
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107
    Diolch yn fawr iawn....

    I'm originally from Maesteg!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pasting text into Excel with no formatting
    By lclim in forum Excel General
    Replies: 3
    Last Post: 07-22-2008, 03:07 AM
  2. Conditional formatting text
    By Wedge120 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-29-2008, 08:01 PM
  3. Extract Text From String
    By RobynC in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-13-2007, 09:53 AM
  4. Extracting numbers from a combined text & number string
    By astrikor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2007, 08:45 AM
  5. Convert cell reference to text string
    By packe in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-08-2007, 09:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1