Soldato
- Joined
- 7 Mar 2005
- Posts
- 19,605
- Location
- LU7
I need to develop an Excel spreadsheet for some data handling duties I'll be taking on in a school from September onwards.
We need to be able to input levels of achievements in different subject by our students into SIMS. To make my job of doing this easier I want to develop a spreadsheet that will allow teachers and teaching assistants enter the correct data in a way that suits me.
We have a table of levels, descriptors and additional descriptors for the subjects we teach. Different levels in different subjects have different numbers of descriptors (within a level) and additional descriptors (from the level above the one the student is currently achieving).
I want to make the spreadsheet offer the correct number of descriptors and additional descriptors for each subject, and units within those subjects that have them by way of drop-down lists.
So, for example, in English the level P5 has 5 descriptors in Unit 1, 4 in Unit 2 and 2 in Unit 3. Should a member of staff select P5 for the level of English achieved in Unit 1 then the next column in the spreadsheet (descriptors) should have a drop-down list that offers the following numbers to be selected: 0, 1, 2, 3, 4 and 5. Similarly if P5 is selected for Unit 2 in English then the numbers available in the the descriptors column adjacent would be: 0, 1, 2, 3 and 4.
I have entered the table of data into Excel on its own worksheet and I've named the range, "Levels_and_Descriptors". A copy of the table is shown below. What I would appreciate is some help to develop a formula to allow this to happen. In terms of pseudo code in the descriptors column I'm thinking of:
I've had a quick look for a formula that I think I might need. VLOOKUP isn't advanced enough for what I need so having found this link I think I will have to get my head around the MATCH and OFFSET functions.
What I can't work out right now is once I use MATCH and OFFSET to tell me how many descriptors can be use is how to persuade Excel to populate a drop-down list in the Descriptors column for English Unit 1 with the numbers of descriptors allowed for that level and unit.
Any ideas how I can link a drop-down list to a table and get Excel to populate the drop-down list with the right number of descriptors according to the level selected in the adjacent column?
As promised, here is the table to try to demonstrate what I mean by levels and descriptors/additional descriptors. English, Maths, Science and RE will be the more complicated subjects to sort this out for as they have multiple units and therefore more chance of varying numbers of descriptors/additional descriptors. The other subjects, being single unit subjects, should be a bit easier.
Now, quite literally, as I wrote the paragraph above I had a brainwave! Perhaps I should split the table below into a table for each subject? So that I can refer to a table dealing with a single subject and not with a massive table like I have now?
If you've made it this far, thanks and apologies for the humongous post!
We need to be able to input levels of achievements in different subject by our students into SIMS. To make my job of doing this easier I want to develop a spreadsheet that will allow teachers and teaching assistants enter the correct data in a way that suits me.
We have a table of levels, descriptors and additional descriptors for the subjects we teach. Different levels in different subjects have different numbers of descriptors (within a level) and additional descriptors (from the level above the one the student is currently achieving).
I want to make the spreadsheet offer the correct number of descriptors and additional descriptors for each subject, and units within those subjects that have them by way of drop-down lists.
So, for example, in English the level P5 has 5 descriptors in Unit 1, 4 in Unit 2 and 2 in Unit 3. Should a member of staff select P5 for the level of English achieved in Unit 1 then the next column in the spreadsheet (descriptors) should have a drop-down list that offers the following numbers to be selected: 0, 1, 2, 3, 4 and 5. Similarly if P5 is selected for Unit 2 in English then the numbers available in the the descriptors column adjacent would be: 0, 1, 2, 3 and 4.
I have entered the table of data into Excel on its own worksheet and I've named the range, "Levels_and_Descriptors". A copy of the table is shown below. What I would appreciate is some help to develop a formula to allow this to happen. In terms of pseudo code in the descriptors column I'm thinking of:
Code:
1. Have a look at cell C4 and see what level has been selected.
2. Look for that level in range, "Levels_and_Descriptors". Then for English Unit 1 see how many descriptors there are.
3. Return those numbers to the drop-down list with 0 at the beginning of the list.
I've had a quick look for a formula that I think I might need. VLOOKUP isn't advanced enough for what I need so having found this link I think I will have to get my head around the MATCH and OFFSET functions.

What I can't work out right now is once I use MATCH and OFFSET to tell me how many descriptors can be use is how to persuade Excel to populate a drop-down list in the Descriptors column for English Unit 1 with the numbers of descriptors allowed for that level and unit.

Any ideas how I can link a drop-down list to a table and get Excel to populate the drop-down list with the right number of descriptors according to the level selected in the adjacent column?

As promised, here is the table to try to demonstrate what I mean by levels and descriptors/additional descriptors. English, Maths, Science and RE will be the more complicated subjects to sort this out for as they have multiple units and therefore more chance of varying numbers of descriptors/additional descriptors. The other subjects, being single unit subjects, should be a bit easier.
Now, quite literally, as I wrote the paragraph above I had a brainwave! Perhaps I should split the table below into a table for each subject? So that I can refer to a table dealing with a single subject and not with a massive table like I have now?

If you've made it this far, thanks and apologies for the humongous post!
