+ Reply to Thread
Results 1 to 6 of 6

Thread: Insert Semicolon and delete space in a list

  1. #1
    Registered User
    Join Date
    01-31-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    55

    Insert Semicolon and delete space in a list

    Hello,

    How can I get word to insert a semicolon after a list of numbers and delete the space in between to make a long continous list?

    ie Copy this list from excel:

    123456
    123456
    748979
    498784

    then make Word have it say

    123456; 123456; 748979; 498784;

    I'd do that myself but I can't tolerate it 2,200 times.

    Thanks!
    Last edited by nguyeda; 06-03-2011 at 09:24 AM.

  2. #2
    Registered User
    Join Date
    01-31-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Insert Semicolon and delete space in a list

    Ok, I inserted the semi colon in excel. Now I just have a list, how do I delete the space so the numbers are next to each other?

  3. #3
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,597

    Re: Insert Semicolon and delete space in a list

    Try this in Excel

    Assumuing your data is in A2 Down
    In B2
    =IF(B1="",A2&"; ",B1&A2&"; ")
    Drag/Fill Down (Double click the Fill handle)

    Copy & Paste the last line into word at your desired location.

    [EDIT]
    To find the last line Select B2 then press Ctrl+Arrow Down

    [EDIT 2]
    You ask to delete the space between, but show a space in your expected result.
    If you don't want the space use ";" in the formula rather than "; ".
    Attached Files Attached Files
    Last edited by Marcol; 06-03-2011 at 09:04 AM. Reason: Added attachment
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,233

    Re: Insert Semicolon and delete space in a list

    "Relax. What is mind? No matter. What is matter? Never mind!"

  5. #5
    Registered User
    Join Date
    01-31-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Insert Semicolon and delete space in a list

    Thanks guys, wish I saw this before I did what I did but it worked!

    I just added special formatting to include the semi colon, pasted in to word as text, pasted that in to notpad between <html></html> tags and opened it in the browser. So HTML took out the spaces!

    Hahah sort of smart workaround?

  6. #6
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,597

    Re: Insert Semicolon and delete space in a list

    Hmm?
    Hahah sort of smart workaround?
    If you think so, please mark your thread solved.
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

+ 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.2.0