We are now running reports that will generate a (comma) CSV file with approx 5000 entries per file. I'd like to know how I can split this file into seperate (comma) CSV files based upon the name within specific column (instructor).
Ideally, when complete, each CSV file would:
- have the new CSV files named after the name in the instructor column
- contain the header row (A1 - P1)
- All rows that include the same instructor name from COLUMN N"
I'm open to different method to do this in as long as it works. This is new territory for me, so might take a little to understand how to do it.
An example of the CSV file shown in Excel would look like this:
Ideally, when complete, each CSV file would:
- have the new CSV files named after the name in the instructor column
- contain the header row (A1 - P1)
- All rows that include the same instructor name from COLUMN N"
I'm open to different method to do this in as long as it works. This is new territory for me, so might take a little to understand how to do it.
An example of the CSV file shown in Excel would look like this:
Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | Q7 | Q8 | Q9 | Q10 | Q11 | Faculty | Course | Instructor | Section | |
5 | 4 | 6 | 8 | 6 | 8 | 6 | 4 | 6 | 8 | 4 | EDU | 1000 | Joe Blow | A | joe@email.com |
7 | 6 | 4 | 3 | 4 | 6 | 8 | 2 | 8 | 2 | 8 | ART | 2500 | Pam Doe | C | pam@email.com |
1 | 8 | 7 | 6 | 2 | 5 | 4 | 6 | 3 | 6 | 4 | EDU | 1000 | Joe Blow | A | joe@email.com |
7 | 6 | 3 | 5 | 2 | 4 | 3 | 3 | 4 | 3 | 5 | SCI | 3500 | Frank Tank | C | frank@email.com |
5 | 4 | 5 | 4 | 5 | 2 | 6 | 5 | 6 | 4 | 6 | EDU | 3040 | Joe Blow | C | joe@email.com |
2 | 2 | 5 | 6 | 3 | 4 | 2 | 5 | 5 | 4 | 5 | PHY | 2050 | Frank Tank | B | frank@email.com |
3 | 3 | 5 | 5 | 8 | 2 | 5 | 8 | 2 | 6 | 2 | ART | 4000 | Pam Doe | A | pam@email.com |