A Middle School Math Teacher Needs Help with a SEARCH Formula

bmst23

New Member
Joined
Dec 24, 2018
Messages
1
Hello...I am a middle school math teacher who is trying to create a SEARCH formula that will require more than a one-word answer, and I also need the formula to return a '2' for true and a '0' for false. For example, the answer to a particular word problem is 'Sara', and students have to justify why they believe the answer is 'Sara'. I am trying to create the following formula to not give any credit for only entering 'Sara' as an answer:


=IF(E2="","",IF(OR(ISNUMBER(SEARCH(<>"Sara",E2))),"2","0"))


I am not so much concerned with what else they enter beyond 'Sara' as I am about only entering 'Sara'. Any assistance you can provide will be greatly appreciated.


Robert
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Maybe something like this:
Excel Workbook
EF
1
2Sara0
3Sara is the one2
4Is it Sara2
Sheet
 
Upvote 0
So you need a cell that contains sara but doesnt equal exactly sara?

=IF(E2="","",IF(ISNUMBER(SEARCH("sara",E2)),IF(E2<>"sara",2,0),0))
 
Upvote 0
How about
=AND(ISNUMBER(SEARCH("sara",E2)),E2<>"sara")*2
 
Upvote 0
So you need a cell that contains sara but doesnt equal exactly sara?

=IF(E2="","",IF(ISNUMBER(SEARCH("sara",E2)),IF(E2<>"sara",2,0),0))


___________________________________________________________________________________________________

Hello.,..The above formula works perfectly. However, I recently discovered I need the formula modified. I am giving another version of the same assessment that contains the "Sara" problem from above. I need the formula to accept "minimum", "maximum" and "range" as answers, but doesn't exactly equal "minimum", "maximum" and "range". In other words, I want the same formula structure as the "Sara" problem above with three required answers rather than one. Your assistance is greatly appreciated!

Robert
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top