+ Reply to Thread
Results 1 to 11 of 11

Adding full stops (dots) into existing cell information ?

  1. #1
    Registered User
    Join Date
    12-10-2008
    Location
    UK
    Posts
    8

    Adding full stops (dots) into existing cell information ?

    Hi all.

    I've been using Excel on a basic level for years, and only now am starting to get more involved and interested in the finer details and options available

    Todays issue is that I have a sheet with around 4000 rows of information, and the first cell has a 12 digit alphanumeric entry that I want to seperate with dots.

    For example it might now say 12138944G00, and I want it to look like 121.3894.4G.00

    The dots will always be in the same place, and there is no formatting or auto sum etc in the original cell.

    Can anybody offer some advice on the above please?

    Thanks.
    Last edited by Twonks; 12-10-2008 at 09:33 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi and welcome to the board
    try =left(a1,3)&"."&mid(a1,4,4)&"."&mid(a1,8,2)&"."&right(a1,2)

  3. #3
    Registered User
    Join Date
    12-10-2008
    Location
    UK
    Posts
    8
    Many thanks and Hello

    That worked a treat.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    You're welcome. And thx for adding " solved" to your title !

  5. #5
    Registered User
    Join Date
    12-10-2008
    Location
    UK
    Posts
    8
    I think I may have added the Solved too early

    Half way down the sheet I found a random selection of cells with 3 digits at the end instead of 2.

    I figured out to change the last 2 to a 3 which shows the extra digit, but wondered if I can now create an 'IF' rule that uses one or the other formula depending on the number of characters in the original cell ?

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    You can base your formula on the LEN function.
    Maybe post a small sample?

  7. #7
    Registered User
    Join Date
    12-10-2008
    Location
    UK
    Posts
    8
    Sorry, but I am not quite sure where to start with the sample as I don't know exactly how to write the formula.

    What I am thinking in my head is trying to create a forumla that effectively says...

    'If A1 is 11 characters then do action 1 (the original formula above), but if A1 is 12 characters then do action 2 (the modified formula)'

    I get the LEN option and think this is the key to the IF formula, but I can't work out what to do with it.

  8. #8
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    You can post a sample of your data.
    On the Quick Reply form click " go advanced" then scroll down to " manage attachments"
    You then can add an xls sample file
    To solve your problem, you don't need an if, but what is important to know is which format you need at the end.
    You example is xxx.xxxx.xx.xx But if it is 12 characters long what should the format be?

  9. #9
    Registered User
    Join Date
    12-10-2008
    Location
    UK
    Posts
    8
    oops, I wasn't quite sure of exactly what you meant by sample.

    Here it is, with the two options I am tryingto convert.
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    This should do
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    12-10-2008
    Location
    UK
    Posts
    8
    Cool, that one does exactly what is needed.

    Many thanks once more

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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