+ Reply to Thread
Results 1 to 24 of 24

Joining Multiple excel sheet (Appending data), splitting text, Macro requied

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Question Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    First of all thank you for viewing post.

    I am having hard time doing copy paste and creating charts etc. for multiple time with same amount of data.

    I request to all of you solve my problem by giving macro code for it.

    here is my situation:-

    attached are two sheets 1 and 2; I have to generate it through database and each time (150 per day) it come in exact 30 rows but different data with hyperlink and same data formatting. I have to do following things with it.
    1. make one excel sheet appended with all excel file generated (150 in this case). with same formatting in sequence.
    2. in column F and G present text group should be segregated (separated) in single cell separately. for example if F1 contains (data might vary but format content will remain same)
    (A61K9/26
    A61K9/50
    A61K31/135
    A61K31/138
    A61K31/19
    A61P9/00
    A61K)
    each word should be cut paste into same row later like L1 = A61K9/26 M1= A61K9/50 and so on..............
    Same should be done to G 1 data.
    3. last is to create sorting popup menu on top row to quickly see which row has same code (e.g. A61K9/50).

    thanks for help if any more query is present please feel free to reply.
    Attached Files Attached Files
    Last edited by chilli16; 12-14-2011 at 07:27 AM.

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    Will give this a try and let you know by tomorrow.
    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
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    I would use MS Access. The joint query can solve your problem more painlessly.

  4. #4
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    Quote Originally Posted by JieJenn View Post
    I would use MS Access. The joint query can solve your problem more painlessly.
    thanks for comment
    could you please tell me the procedure for ms access?

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    We lost your file during the upgrade. Please attach again.

  6. #6
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    Quote Originally Posted by arlu1201 View Post
    We lost your file during the upgrade. Please attach again.
    files attached please help

  7. #7
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    if you can tell me macro to append sheet 1 with sheet 2 ... I will be really thank ful. rest data truncation is manual job.. :-(

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    What about truncating the data? WIll work out something for you shortly.

  9. #9
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    may be something like this
    Please Login or Register  to view this content.

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    In the first post, you mentioned that you have 150 files to consolidate. Are these files stored in a folder? I can help you with a code that will open each file and consolidate and then do the truncation. Just provide me the type of file names stored in the folder and i can give you the code immediately.

  11. #11
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    file names will be
    1. results.xls
    2. results (1).xls
    3. results (2).xls
    and so on.....
    thank you for your help

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    So only column F should be consolidated from all files and then truncated right? What about columns A to E?

  13. #13
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    I thought if any one could provide code i will write rest for others but it seems its only working for 'F'. Same data is present in 'G' rest other are not required to be truncated. please write code for 'G' to in similar manner of 'F'. data can be appended after F data but in same column.

    below is my next step. if it cannot be done or its take long time please leave it.
    additionally if you know how to pool and represent similar truncated text of 'F' and 'G' in bubble chart it will be really rewarding.

    i.e. if L1 M2 M5 L7 content is same then it could be pooled to one bubble chart to represent data quantitiy.
    Last edited by chilli16; 12-20-2011 at 07:27 AM.

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    Use this code. For now i have taken only column F. If there are more columns, please alter accordingly.
    Please Login or Register  to view this content.

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    So each file will contain data in both F & G columns? So the G data should just be appended below the F data?

  16. #16
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    yes their might be posibility that G doesnot have any data similar to F (i.e. blank)

    data of G should come after F data entery ends could be given cell fill yellow
    Last edited by chilli16; 12-20-2011 at 07:37 AM.

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    I didnt understand....where will the data be before truncation?

  18. #18
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    below is link to exact file

    http://ifile.it/gowe0r8

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    No no ...what i meant is...will each raw file have the merged data in columns F & G? After consolidating the column F data, can the column G data be added below it?

  20. #20
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    yes it can be done and manageable.
    however still i am unable to get sheet importing through macro. debugging problem.

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    What error are u getting?

  22. #22
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    Run-time error'1004'
    Method 'Columns' of object'_Global'failed

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

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    Hope you had a good holiday season.

    Which is the line highlighted when you get the error? You will see a yellow line in the code window. You can just copy paste it here so i can help you further.

  24. #24
    Registered User
    Join Date
    12-02-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Joining Multiple excel sheet (Appending data), splitting text, Macro requied

    Thank you so much arlu1201 for help!!!

+ 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