Dier02
asked on
Assigning for a missing score
I have a worksheet with spelling scores and I have a dilemma. I want to be able to deduct a point if a letter is present in a word. The word is 'decorator' and its base word is decorate - the e is dropped in spelling decorator. I need to check that the 8th letter is not an 'e' but an o and assign a point if it is an o AND the word is spelled correctly. See attached file
upload.xls
upload.xls
If the word is spelled correctly then the 8th letter is already known to be correct.
So you are left with a total score add if the word is spelled correctly or some deductions if not. And it looks like the deductions are based on how far off the spelling is from the correct spelling. Am I correct?
Kevin
So you are left with a total score add if the word is spelled correctly or some deductions if not. And it looks like the deductions are based on how far off the spelling is from the correct spelling. Am I correct?
Kevin
...an o AND the word is spelled correctly...
If the word is spelled correctly the question of e versus o doesn't arise so you would just compare B31 with C31.
If you mean you want to assign a point if 8 is 'o' OR the word is spelled correctly then (it's none of my busuiness but that seems unfair on those who DID spell it correctly; 'ooooooooo' scores a point but 'decorater' doesn't?) you would have something like..
=if(OR(Trim(B31)=C31, mid(trim(B31),8,1)="o") , 1, 0)
If the word is spelled correctly the question of e versus o doesn't arise so you would just compare B31 with C31.
If you mean you want to assign a point if 8 is 'o' OR the word is spelled correctly then (it's none of my busuiness but that seems unfair on those who DID spell it correctly; 'ooooooooo' scores a point but 'decorater' doesn't?) you would have something like..
=if(OR(Trim(B31)=C31, mid(trim(B31),8,1)="o") , 1, 0)
I think you will be better off with a more straightforward scoring system that lists the possible spellings and the scores associated with each rather than trying to look for specific sequences of characters at specific locations. In the attached example I list the correct spelling and the associated points, then, progressing across the worksheet, each possible spelling that can earn partial points. I incorporated wildcard character (? for a single character and * for any number of characters) for additional flexibility. The first match working across from left to right is the score used.
Kevin
Q-26841153.xls
Kevin
Q-26841153.xls
ASKER
I think the simplest way is to give a point in that column for 'tor' in retrospect.
ASKER
Your system looks interesting Zorvek but I don't really understand what you have done.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
You may use this formula:
=IF(AND(MID(C31,8,1)="o",C
100 is the points you assigned
0 means no point at all.
Sincerely,
Ed