Why does my formula display "RUE" rather than a numerical value?

rmbmst1972

New Member
Joined
Sep 29, 2018
Messages
14
Dear Sir or Madam:

My name is Robert, and I am very proud of myself as I am gaining more knowledge about creating complex Excel formulas to help me become a better middle school teacher. I am extremely close to creating a formula that will return a "2" provided a student's answer consists of more than just the word "Sara". If a student's answer only consists of the word "Sara", then I want to give partial credit for at least having "Sara". The partial credit value assigned is "1". I created the following formula, but it seems to only perform 50% of my task. Excel returns a "1" when I simply enter "Sara" which is the good news. The bad news is Excel returns "TRUE" instead of a "2" when "Sara" and other words are entered into the same cell. Any assistance you can provide will be greatly appreciated:

=IF(E3="","",IF(AND(ISNUMBER(SEARCH("sara",E3)),IF(E3<>"sara",2,0)),ISNUMBER(SEARCH("sara",E3)),IF(E3="sara",1,0)))

Sincerely,
Robert
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
=IF(E3="sara", 1, IF(ISNUMBER(SEARCH("sara", E3)), 2, ""))
 
Upvote 0
Re: Why does my formula display "TRUE" rather than a numerical value?

=IF(E3="sara", 1, IF(ISNUMBER(SEARCH("sara", E3)), 2, ""))


Thank You Very MUCH!!!...I truly don't know what I would do without Mr. Excel.

Robert
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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