Collington
Board Regular
- Joined
- Jun 6, 2005
- Messages
- 56
- Office Version
- 2016
- Platform
- Windows
Hello you sexy nerds,
Ever feel like you're beating your head against a wall for something that should be so simple to do? That's today's fun and games....
I've got some kids' End of Year Predictions which I'm attempting to turn into a numerical value.
Kids' results:
Number to return based on the result:
As you can see I have one child whose results are complex and there's more text in the End of Year cell (i6). I need to be able to pull out the "EXS" portion of that text and match it to the Gradings sheet. (So the result should show as "2")
I've tried a few ways:
An array: {=IFERROR(INDEX(Grading!$D$1:$D$20,MAX((IFERROR(SEARCH(Grading!$C$1:$C$20,I16),-1))*(ROW(Grading!$C$1:$C$20)))),"No match")}
but that returns "1" - also returns incorrect results for all the other rows
Lookup: =LOOKUP(2,1/(ISNUMBER(SEARCH(Grading!C1:C20,Results!I16))),Grading!D1:D20)
but that returns "0" - also returns "0" for the other rows
Index/Match with wildcard: =INDEX(Grading!$C$1:$D$20,MATCH("*"&Results!I16&"*",Grading!$C$1:$C$20,0),2)
but that returns "#N/A" - however it does give me the correct result on cells that just have the pure result (e.g. EXS or GDS)
Clearly I'm doing something wrong. I suspect I keep making the same mistake, I just can't seem to see it! Hive mind - can you set me straight? I'm feeling like a fool here!
Thanks so much!!! ?
Lisa, the eternally grateful
Ever feel like you're beating your head against a wall for something that should be so simple to do? That's today's fun and games....
I've got some kids' End of Year Predictions which I'm attempting to turn into a numerical value.
Kids' results:
Number to return based on the result:
As you can see I have one child whose results are complex and there's more text in the End of Year cell (i6). I need to be able to pull out the "EXS" portion of that text and match it to the Gradings sheet. (So the result should show as "2")
I've tried a few ways:
An array: {=IFERROR(INDEX(Grading!$D$1:$D$20,MAX((IFERROR(SEARCH(Grading!$C$1:$C$20,I16),-1))*(ROW(Grading!$C$1:$C$20)))),"No match")}
but that returns "1" - also returns incorrect results for all the other rows
Lookup: =LOOKUP(2,1/(ISNUMBER(SEARCH(Grading!C1:C20,Results!I16))),Grading!D1:D20)
but that returns "0" - also returns "0" for the other rows
Index/Match with wildcard: =INDEX(Grading!$C$1:$D$20,MATCH("*"&Results!I16&"*",Grading!$C$1:$C$20,0),2)
but that returns "#N/A" - however it does give me the correct result on cells that just have the pure result (e.g. EXS or GDS)
Clearly I'm doing something wrong. I suspect I keep making the same mistake, I just can't seem to see it! Hive mind - can you set me straight? I'm feeling like a fool here!
Thanks so much!!! ?
Lisa, the eternally grateful