+ Reply to Thread
Results 1 to 15 of 15

Many csv files containing common names, need to combine across sheets to one line

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2013
    Posts
    19

    Many csv files containing common names, need to combine across sheets to one line

    I am just an Excel hack. I can whiz around but have no deep knowledge. I help schools use data to guide teachers practices in the classroom. My main function is to mine down through data for kids that helps teachers focus on specific skills with specific children.

    I start with a big conference each summer. By hand I combine, by student name, the data collected over the past school year. We then tear down to student levels setting goals based on statistical analysis. I need to combine across all of these csv files in a way that appends the data from each into one line per kid. I thought that 'vlookup' or 'index, match' might do it. I don't know. If you can share thoughts I appreciate your help in advance

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Many csv files containing common names, need to combine across sheets to one line

    really depends how your data is setup
    in most cases if the data is setup like a table and table has unique identifies then yes vlookup or index/match is sufficient
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Many csv files containing common names, need to combine across sheets to one line

    If I were to setup an example can anyone show me how to do it? Thank you.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Many csv files containing common names, need to combine across sheets to one line

    I have combined all 3 files into 1 workbook, with 3 worksheets (1 for each workbook)

    I have ioncluded the summary on sheet3, see if this will get you headed inthe right direction?
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    06-27-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Many csv files containing common names, need to combine across sheets to one line

    The difference in hacks and experts is always clear when a task requires deep knowledge. I am going to attack my real csv files and hope I can get the syntax right (I see lots of errors coming). Thank you and I do not promise to ask you for more help but will place resolved on this one.

    I am not sure what this:

    1. Use code tags for VBA.
    Please Login or Register  to view this content.
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think some-1 helped you

    means. I am very new to this stuff.

    Thank you I know this took time. You are kind.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Many csv files containing common names, need to combine across sheets to one line

    That stuff at the end is just part of my "signature", they are just a few guide-lines for users. You will see it at the bottom of all my posts - different members have different signatures...

    1. Use code tags for VBA...[ code ].. Your Code ..[ / code ]...this is to show members how to add code tags when posting VBA/macros
    2. If your question is resolved, mark it SOLVED using the thread tools...if you thread is resolved, this is how to mark it SOLVED (which you have done, thanks)
    3. Click on the star if you think some-1 helped you...this is how you can thank members for their help (which you already did, thanks)

  7. #7
    Registered User
    Join Date
    06-27-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2013
    Posts
    19

    I just cannot get it right

    I am in dire need. I know you are probably not excited about seeing this. I can more or less understand what you created but have lost myself. I am attaching a copy of the file you sent renamed with real, private data. If you look on the page where you did the summary Cost VS you can see where I tried to get the data to compile. I think I got some things right but am missing some of the plot. I get the worksheet Human Ecology to show the results for the first 6 lines which is identical to what you did in the first example. Coincidence? Anyway. The rest of the page looks all N/A and REF errored. I am in a terrible bind. Thank you for any help.
    Last edited by FDibbins; 07-20-2013 at 07:23 PM. Reason: File removed, contains sensitive info

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Many csv files containing common names, need to combine across sheets to one line

    I have removed your file because it contains confidential info. PLEASE do not post information of that nature in ANY public forum, you never know who out there might have bad intentions

    I will take a look at your requirements and see what I can come up with for you

  9. #9
    Registered User
    Join Date
    06-27-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Many csv files containing common names, need to combine across sheets to one line

    Again thanks for being safe. On the worksheet in this file "my issue" I try to illuminate. I think my errors are from not changing the the references to match the data.

    Scott
    Attached Files Attached Files

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Many csv files containing common names, need to combine across sheets to one line

    Looking at the 2nd file you supplied (the 1 I deleted here), the reason you are getting error messages is because there is no matching data for that column/row combination on any sheet

    eg
    Sheet1 (last sheet) row 4...
    Davis Pertie does not appear on any of teh other 3 sheets
    and Tyranny Spirit does not appear on any sheet that has DORF-WordsCorrect_3rd_Beginning as a heading

    I took all of my ranges down as far as row 6...$6 extend that to 6000 (just add 3 zero's to every reference to $6
    Last edited by FDibbins; 07-20-2013 at 07:57 PM.

  11. #11
    Registered User
    Join Date
    06-27-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Many csv files containing common names, need to combine across sheets to one line

    Thanks for the feedback. I am wondering If you could take a minute to explain each section of the formula you created.
    If that takes to long I understand. Any explanation of each section would help I have the basics it is the fine tuning that
    is killing me. On my real file I get the full return on the data on Hosp Basics. But I do not get anything past the first six lines of the worksheet Human Ecology. I see nothing from the data I insert into the third worksheet. I see what you are
    saying about the adding zeros to the $6. I know how frustrating this is. I am just barely good enough to do this, thank you.
    Scott

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Many csv files containing common names, need to combine across sheets to one line

    I took a look at your workbook sheet1 and simplified the formulae by breaking down the source of the data as indicated in the shaded areas.

    Hope that this helps even though it's late.
    Attached Files Attached Files
    Last edited by newdoverman; 07-20-2013 at 08:42 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  13. #13
    Registered User
    Join Date
    06-27-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Many csv files containing common names, need to combine across sheets to one line

    I will try this to see if a novice like me can fight through it. GREAT!
    Both of you guys deserve thanks.
    Scott

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Many csv files containing common names, need to combine across sheets to one line

    I think that I have resolved the compatibility problems.
    Attached Files Attached Files

  15. #15
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Many csv files containing common names, need to combine across sheets to one line

    Here is a further revision to what I previously uploaded. This file uses the new Excel format XLSX which results in a much better file and is smaller in the bargain:
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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