+ Reply to Thread
Results 1 to 8 of 8

Create a row for each word?

  1. #1
    Registered User
    Join Date
    03-15-2015
    Location
    Espaņa
    MS-Off Ver
    2013
    Posts
    80

    Create a row for each word?

    Hi there dear forumers,

    I've been trying to apply other Macros, unfortunately I've been unable to achieve what I need, I have a table like this:

    Category Name Country ID Other Number Year Type Lang Type
    Something; another thing; this-other thing A Name USA 1 Q1 2011 Random English Random 2
    Another category; something else Another Name USA 2 Q2 2012 Random English Random 2
    Other Name Spain 3 Q2 2012 Random Spanish Random 2
    Last one; empty one; etc This Name Belgium 4 Q3 2013 Random English Random 2

    And I need each item inside Category (which are separated by semicolons), to be on its own row, but keeping its ID, its Country, its Language, its Type, etc!... All of them. With empty cells inside Category, then do nothing...

    To look like this:

    Category Name Country ID Other Number Year Type Lang Type
    Something A Name USA 1 Q1 2011 Random English Random 2
    another thing A Name USA 1 Q1 2011 Random English Random 2
    this-other thing A Name USA 1 Q1 2011 Random English Random 2
    Another category Another Name USA 2 Q2 2012 Random English Random 2
    something else Another Name USA 2 Q2 2012 Random English Random 2
    Other Name Spain 3 Q2 2012 Random Spanish Random 2
    Last one This Name Belgium 4 Q3 2013 Random English Random 2
    Empty one This Name Belgium 4 Q3 2013 Random English Random 2
    etc This Name Belgium 4 Q3 2013 Random English Random 2

    How can I achieve this?
    I've attached a demo file containing the actual info that would have to be modified.

    Thank you very much for your time,
    Regards.
    Attached Files Attached Files
    Last edited by elbrujo; 05-26-2015 at 07:31 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Create a row for each word?

    Hi Elbrujo,

    This is slow and I'm working on speeding it up - but, for now:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    03-15-2015
    Location
    Espaņa
    MS-Off Ver
    2013
    Posts
    80

    Re: Create a row for each word?

    Thank you very much @xladept, I highly appreciate your help! It is indeed working, taking some moments, but doing what I need

    Edit:
    Nevermind, I could fix that by using this macro
    http://www.extendoffice.com/document...rst-space.html

    , but checking the results I can see there's a blank space with several rows, since it goes "a category;(space-here)another category", like "a category; another category" which is causing it to look like this:

    Do you think this can be fixed?
    Thank you.
    Last edited by elbrujo; 05-26-2015 at 08:16 PM.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Create a row for each word?

    Hi Elbrujo,

    You're welcome and thanks for the rep!

    I should have a quicker version tomorrow

  5. #5
    Registered User
    Join Date
    03-15-2015
    Location
    Espaņa
    MS-Off Ver
    2013
    Posts
    80

    Re: Create a row for each word?

    @xladept thank you very much, I don't think I'll need a faster one right now, it is going pretty smooth, so you can do it if you have free time! ;-) if you don't, then don't worry!,
    Thanks for your help!

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Create a row for each word?

    Hi Elbrujo,

    This is a lot quicker - I put the results on another sheet for testing purposes:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-15-2015
    Location
    Espaņa
    MS-Off Ver
    2013
    Posts
    80

    Re: Create a row for each word?

    Thank you very much xladept!, it worked just fine! :D

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Create a row for each word?

    You're welcome!

+ 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. Macro to find a word in a cell, create a transparent text zone over it, create a hyperlink
    By martin brandl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2015, 03:24 PM
  2. [SOLVED] Help me fix attached code (create Outlook email then create calendar item)
    By Rerock in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2013, 08:15 PM
  3. Vba cmd1 create workbook cmd2 create worksheet depend upon combobox values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2013, 03:20 AM
  4. Replies: 3
    Last Post: 11-12-2012, 10:33 AM
  5. Need to create a button that can copy cells, create a new sheet and then paste there
    By torontoguy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-14-2009, 11:26 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