rooirokbokkie
New Member
- Joined
- Aug 21, 2014
- Messages
- 19
I used the VLOOKUP Function to combine 3 separate data sets for 5000 students into one data set. But now I'm hopelessly stuck. I need to somehow transpose the subject and the relevant mark to columns into a new sheet but only if the subject count exceeds 100. So it needs to run down column B (high school subjects) first and if there are more than 100 instances of a specific subject then it should write that subject to a new column in a new sheet and allocate the relevant marks to the students. Rinse and repeat until column B is finished. Then do the same with column D (university subjects).
So for argument's sake, in the table below only Accounting, Mathematics, Calculus 158 and General chemistry 172 had more than 100 counts and thus ended up in the second sheet.
Essentially, I'd like to know how if it's possible to go from here:
Sheet 1
<tbody>
</tbody>
To here?
Sheet 2
<tbody>
</tbody>
So for argument's sake, in the table below only Accounting, Mathematics, Calculus 158 and General chemistry 172 had more than 100 counts and thus ended up in the second sheet.
Essentially, I'd like to know how if it's possible to go from here:
Sheet 1
A | B | C | D | E | ||
<tbody> </tbody> |
<tbody> </tbody> | 50 | ||||
<tbody> </tbody> |
<tbody> </tbody> | 64 | ||||
2346756 |
<tbody> </tbody> | 59 | ||||
2346756 | Physics 116 | 62 | ||||
2346756 |
<tbody> </tbody> | 36 | ||||
<tbody> </tbody> | Accounting | 49 | ||||
<tbody> </tbody> | Mathematics | 68 | ||||
<tbody> </tbody> | Geography | 48 | ||||
3389657 | Electricity 122 | 56 | ||||
3389657 | General chemistry 172 | 43 | ||||
3389657 |
<tbody> </tbody> | 62 | ||||
3389657 |
<tbody> </tbody> | 23 | ||||
3389657 | Mathematics | 67 | ||||
3389657 | Chemistry | 56 | ||||
3389657 | Accounting | 87 | ||||
3389657 | History | 45 |
<tbody>
</tbody>
To here?
Sheet 2
Accounting | Mathematics | Calculus 158 | General chemistry 172 | |
2346756 | 49 | 68 | 64 | 50 |
3389657 | 87 | 67 | - | 43 |
<tbody>
</tbody>