+ Reply to Thread
Results 1 to 4 of 4

how to extract letters from text and paste them in new row with macro?

  1. #1
    Forum Contributor
    Join Date
    04-09-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    176

    how to extract letters from text and paste them in new row with macro?

    Hi to all

    i would like to extract letters from text and paste them in new rows one below the other. my data looks like this
    My data
    1 2 3 4 5
    1 A/C A/A G/G C/C T/T
    2 A/A T/T A/C T/C G/C

    and i would like to do like this
    expected
    1 A A G C T
    1 C A G C T
    2 A T A T G
    2 A T C C C

    I used trim and substitute functions but i am unable to complete my task. I am requesting help fro you people. your help will always be appreciated
    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: how to extract letters from text and paste them in new row with macro?

    Hi
    try this macro - you will need to set InRange to the range of cell to parse, and Outcell to the address of the first cell of your output values
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: how to extract letters from text and paste them in new row with macro?

    Assuming the data starts from A1
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-09-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    176

    Re: how to extract letters from text and paste them in new row with macro?

    Dear JinDon
    Thanks for your reply and your code working like miracle.
    @nickyC I am getting some error and A/A this type of text is not splitting some times with your code, anyway once again thanks lot for your help.
    Regards,

+ 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. VBA to open saved web html pages - extract text - paste text within individual cell
    By EddieRubi in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-23-2015, 01:43 PM
  2. [SOLVED] macro to color all specific letters in a range of text
    By WillemB in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-19-2014, 08:09 AM
  3. macro to color all specific letters in a range of text
    By WillemB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2014, 04:43 AM
  4. Function extract the uppercase letters from strings of text
    By Hellga in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2013, 05:48 AM
  5. [SOLVED] extract text string when you only know the last three letters of that string
    By alison0edwards in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2012, 01:20 PM
  6. [SOLVED] Macro to extract data and paste to a new sheet
    By Les in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2006, 05:15 AM
  7. [SOLVED] macro to extract info and paste to a new sheet
    By Brad K. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2005, 07:06 PM

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