Hi all,
Sorry that I'm asking for help on my first post. I've been using this forum religiously for work, and it usually seems like my question has been asked before. However, I've come across a scenario that I am unsure how to tackle.
What I'm trying to do is essentially model a diagnostic test. A student gets a starting ability estimate, then a lookup formula looks in a separate sheet for an item with a certain ability level that is closest to the ability estimate, returning both the item name and the item difficulty. Another formula then re-estimates the student ability and the cycle continues.
My main issue is with the lookup formula. I tried to tackle this by using index, match, small, and abs functions:
=INDEX('NU items'!$B$2:$B$800,MATCH(SMALL(ABS('NU items'!$A$2:$A$800-'Simulation'!$L17),1),ABS('NU items'!$A$2:$A$800-'Simulation'!$L17),0))
Where B2:B800 is column for item names, A2:A800 is the column for item difficulty, and L17 is the ability estimate used, thus giving me the item name of the item with the smallest absolute difference from the ability estimate.
The problem is that I can't have duplicate items, which this may give (and does) if the student ability doesn't change much. What I then tried to do was to set up 3 more lookups with small(..., k) where k = 2, 3, 4, and had a countif formula to check if the first item had been used, then use item 2, then item 3, etc. However, when I have 2 items of the same difficulty, the k=2 formula gives me the same value as the k=1 formula.
Any ideas? Is there any way I can exclude a row from my array when looking up the items?
Much obliged!
Sorry that I'm asking for help on my first post. I've been using this forum religiously for work, and it usually seems like my question has been asked before. However, I've come across a scenario that I am unsure how to tackle.
What I'm trying to do is essentially model a diagnostic test. A student gets a starting ability estimate, then a lookup formula looks in a separate sheet for an item with a certain ability level that is closest to the ability estimate, returning both the item name and the item difficulty. Another formula then re-estimates the student ability and the cycle continues.
My main issue is with the lookup formula. I tried to tackle this by using index, match, small, and abs functions:
=INDEX('NU items'!$B$2:$B$800,MATCH(SMALL(ABS('NU items'!$A$2:$A$800-'Simulation'!$L17),1),ABS('NU items'!$A$2:$A$800-'Simulation'!$L17),0))
Where B2:B800 is column for item names, A2:A800 is the column for item difficulty, and L17 is the ability estimate used, thus giving me the item name of the item with the smallest absolute difference from the ability estimate.
The problem is that I can't have duplicate items, which this may give (and does) if the student ability doesn't change much. What I then tried to do was to set up 3 more lookups with small(..., k) where k = 2, 3, 4, and had a countif formula to check if the first item had been used, then use item 2, then item 3, etc. However, when I have 2 items of the same difficulty, the k=2 formula gives me the same value as the k=1 formula.
Any ideas? Is there any way I can exclude a row from my array when looking up the items?
Much obliged!