+ Reply to Thread
Results 1 to 7 of 7

Have to add more rows bases in a column content

  1. #1
    Registered User
    Join Date
    11-20-2007
    Posts
    4

    Have to add more rows bases in a column content

    Ho all.
    I am new here and I have no visualbasic experience at all. I am using excel 2000 and I have a lot of records (like 5000) having this stricture:

    codenumber1 | key1,key2,key3,key4,...,keyn
    codenumber2 | ke1,ke2,k3,...,k3n

    I need to split those records in some like

    codenumber1 | key1
    codenumber1 | key2
    ...
    codenumber1 | keyn
    codenumber2 | ke1
    codenumber2 | ke2
    ...
    codenumber2 | ken


    I am not sure is this is possible or not or how to do this. I guess some programming is needed but I really don't know how to start

    Any help is really appreciated,

    Regards and thanks for your time

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Welcome to the Forum.

    Are a codenumber and its matching keys all in the same cell.

    Is key1,key2,...,keyn a string in one cell or different entrys in different cells?

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,633
    try
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-20-2007
    Posts
    4
    Quote Originally Posted by mikerickson
    Welcome to the Forum.

    Are a codenumber and its matching keys all in the same cell.

    Is key1,key2,...,keyn a string in one cell or different entrys in different cells?
    Actually no. " cell,s the codenumber in one and the keyn in other comma separeted.

    Thanks for the welcome.

  5. #5
    Registered User
    Join Date
    11-20-2007
    Posts
    4
    Quote Originally Posted by jindon
    try
    Please Login or Register  to view this content.
    Will try but (sorry to ask) How to call it?

    Thanks for your help

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,633
    Will try but (sorry to ask) How to call it?
    1) hit Alt + F11
    2) go to [Insert] - [Module], paste the code onto the right pane
    3) hit Alt + F11 to get back to Excel
    4) hit Alt + F8, select "test" then hit "Run"

  7. #7
    Registered User
    Join Date
    11-20-2007
    Posts
    4
    jindon

    Thank you very much. worked perfect.

    Best regards

+ 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