+ Reply to Thread
Results 1 to 5 of 5

how to change spl character into new line

  1. #1
    Forum Contributor
    Join Date
    10-02-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    165

    how to change spl character into new line

    Hi Everyone,

    In column 'H' of attached excel, I want to split word when encountered semicolon and then keep the splittted word in the same cell.

    suppose I have data in a cell like this kumari; nehru ; anun;

    I want output in the same cell as kumari
    nehru
    anun


    Please check spreadsheet and advance thanks
    Last edited by sarat47; 11-12-2013 at 08:35 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: data

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: data

    use find and replace, find: ";" replace "ctrl+j" (newline character)

  4. #4
    Forum Contributor
    Join Date
    10-02-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    165

    Re: data

    Thanks yudlugar. While using your method, its working properly but I am getting 2-3 extra blank spaces. Is it possible to restrict with only one space

    e.g. if oracle; corp is there then output should be
    oracle
    corp


    But I am getting sometimes output like
    oracle

    corp
    Last edited by sarat47; 11-12-2013 at 11:04 AM.

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to change spl character into new line

    =trim(substitute(H1,";","*ctrl+j*"))

    in an empty column (say Z1) and copy down. then copy and paste values over column H.

+ 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. Replies: 34
    Last Post: 01-21-2014, 03:07 PM
  2. [SOLVED] Copy Data from one sheet and paste the consolidated data into another (Data Range Varies)
    By kittu55 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-13-2013, 10:02 PM
  3. Replies: 4
    Last Post: 02-01-2013, 10:18 AM
  4. Replies: 2
    Last Post: 07-18-2012, 09:11 AM
  5. Use of Excel to pull data from database daily, posting new data below older data
    By Ishness in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2011, 10:08 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