+ Reply to Thread
Results 1 to 6 of 6

Insert ;; between text

  1. #1
    Registered User
    Join Date
    02-01-2011
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    2

    Insert ;; between text

    Hello,

    I have a bouch of cells and I would like to fill each cell with ;; and if the cell has text with ;text; I can do it manually with concatenate, but the problem is that I have loads of columns. Plz help.

    Thx

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Insert ;; between text

    You can do concantenate and just extend formula, no matter how much columns you have...

    For example on second sheet write:

    =IF(Sheet1!A1="", "", ";"&Sheet1!A1&";")

    and extend to all range as in frist sheet

    Then select your data -> Copy

    go to first page, select same range and Paste Spetial -> Values

    Then delet sheet #2

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Insert ;; between text

    Hi,

    One way with the following macro.

    Please Login or Register  to view this content.
    Just select the range and run it. Alternatively if you want to hard code the range substitute
    For Each cell In Range("A2:Z10")

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Insert ;; between text

    Alternative approach:

    Please Login or Register  to view this content.
    modify ActiveSheet.UsedRange as appropriate of course (if using ActiveSheet the .Parent is not really nec.)

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Insert ;; between text

    alternative alternative
    use asap utilitues add in http://www.asap-utilities.com/ it has an insert before/after and can include blank cells to give what you want
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    10-05-2010
    Location
    S.A
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Insert ;; between text

    you can use this code:
    Please Login or Register  to view this content.
    insert formula in column b and drage down,
    suppose your data in column A.
    thanks

+ 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