+ Reply to Thread
Results 1 to 14 of 14

change merge code to split the data

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    change merge code to split the data

    Hi friends.. i need a help when converting code from merging to splitting. I have a code for merging data which was imported from .csv file. Can any one do the changes in my code so as i can use it for splitting data.......
    Merge code:
    Please Login or Register  to view this content.
    Last edited by arlu1201; 05-22-2012 at 04:05 AM. Reason: Corrected code tags.

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: change merge code to split the data

    I think it would be better to start from scratch with the code. If you could provide a sample workbook with a before and after of the out come you are after it would make it a little easier to get started. Also please edit your post and wrap you code in the code tags. Cheers
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: change merge code to split the data

    Hello...

    Upload excel file ...
    Click *, if my suggestion helps you. Have a good day!!

  4. #4
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: change merge code to split the data

    This is my excel sheet where the data has to be splitten
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: change merge code to split the data

    is there anything wrong with my post..... please help me guys.........

  6. #6
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: change merge code to split the data

    Could you give a bit of an explanation of what you are looking to do. I can't quite understand what you are after?

  7. #7
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: change merge code to split the data

    Actually i have a program which imports data from .csv file to excel report. and in that i need to split the data. my query is, i have code for merging data from multiple columns to single column. Now by making changes in that code, i want to split hte data from single column to multiple columns.
    Please Login or Register  to view this content.

  8. #8
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: change merge code to split the data

    I understand that you want to split data, but what exactly do you want to split? And if am I not mistaken , but is that code you are posting not the whole sub?

  9. #9
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: change merge code to split the data

    For better understanding, i have attached one csv file and one
    output master file. Please go through the column K,L,M,N so that you will understand. I want the col K has to be split into L,M,N.
    Attached Files Attached Files
    Last edited by bujji1305; 05-22-2012 at 03:22 AM.

  10. #10
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: change merge code to split the data

    Come on friends...... Try to help me

  11. #11
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: change merge code to split the data

    I must say, it is quite hard to understand what you are after. I hope I got your request right, so check the file and tell if it is what you are after.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: change merge code to split the data

    Thank you Dave.. It works

  13. #13
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: change merge code to split the data

    No problem, glad I could help. If you could edit your original post and mark the thread solved that would be great.

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

    Re: change merge code to split the data

    Try this
    Please Login or Register  to view this content.

+ 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