Extracting and comparing numbers (Complicated)

O177812

Board Regular
Joined
Apr 16, 2015
Messages
82
Office Version
  1. 365
  2. 2021
I have list of statements that include temperatures and a column that contains what is supposed to be the oven safe temperature:

Column AColumn B
Safety Oven Temp
The clay is oven safe to 350°F350°F
The clay is oven safe to 400°F500°F

<tbody>
</tbody>


In a seperate column I need to compare the 2 temperatures and if the temperatures match then input the value in Column B, if they don't match it should enter "ERROR"

Thanks in advance for the help!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
In C2 enter, and copy down

Code:
=IF(B2<>RIGHT(A2,LEN(B2)),"ERROR",B2)

Or do you need something more complicated?
 
Last edited:
Upvote 0
Hi,

I would actually need something more complicated. I may have missrepresented this. The temperature in Column A will sometimes be in the middle of the sentence.
I would need to extract the temperature from column A and then compare.

Thanks for your help.

Have a great week!,
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,476
Members
448,967
Latest member
visheshkotha

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