Referencing a cell to put in the mathematical operator

loosenut

New Member
Joined
Feb 20, 2004
Messages
41
Hello!

I am building out a simple math sheet for my daughter. Trying to keep her learning during the times of COVID! The format is as follows:

Cell C7: "48" (or some other number)
Cell D7: "+" (or some other mathematical operator that I manually insert such as *, -, /, etc)
Cell E7: "20" (or some other number)
Cell I7: [she inputs her answer here, i.e. "68"]

What I am trying to figure out is a formula which executes the equation shown by C7 D7 E7 ("48 + 20") and compares it to her answer in cell I7. If correct, responds "Correct", if not "Is that your final answer??". So what I have so far is this:

=IF(I7=(C7,D7,E7),"CORRECT","IS THAT YOUR FINAL ANSWER??")

It results in error because (C7,D7,E7) is not the correct way to express the equation. What is the correct way to express it? If D7 were the same every time, this would be easy as I would just fix the mathematical operator between c7 and e7, but making it a reference to a mathematical operator I think is the challenge. Any help would be welcome.

Thanks!
 

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)
Give this formula a try...

=IF(I7=CHOOSE(FIND(D7,"+-*/"),C7+E7,C7-E7,C7*E7,C7/E7),"Correct","Is that your final answer??")
 
Upvote 0
Thank you Rick! Worked like a charm. Interim product below. Many thanks again for your help :)

1594389454998.png
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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