So many variations......

O177812

Board Regular
Joined
Apr 16, 2015
Messages
82
Office Version
  1. 365
  2. 2021
I have a chart that contains the following

ABC
The clay can sometimes be heated to 500°F in the oven500°F
Sometimes I can apply heat as high as 400°F to the clay500°F
You can heat the clay above 350°F in the ovenNo Rating
The clay is not heat safe500°F

<tbody>
</tbody>


I need to do the following:
- Extract the number from Column A if it matches what is in column B then use the Value from Column B into Column C
- Extract the number from Column A if it doesn't what is in Column B then enter "ERROR" into Column C
- If Column A has a temperature and Column B contains a phrase then enter "ERROR" into column C
- If Column A contains the specific phrase "Not heat Safe" and there is a value in Column B then Enter "ERROR" in Column C
- If none of these apply then enter the Value of Column B into Column C

Help! :(
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi, like this?

Excel 2013
ABC
1The clay can sometimes be heated to 500F in the oven500F500F
2Sometimes I can apply heat as high as 400F to the clay500FERROR
3You can heat the clay above 350F in the ovenNo RatingERROR
4The clay is not heat safe500FERROR
5The clay is not heat safenot heat safe
O177812
Cell Formulas
RangeFormula
C1{=IF(AND(ISBLANK(B1),(ISNUMBER(SEARCH("not heat safe",A1)))),"not heat safe",IF(TEXT(MAX(0+IF(ISNUMBER(0+MID(A1,ROW(INDIRECT("A1:A"&LEN(A1)-4)),4)),MID(A1,ROW(INDIRECT("A1:A"&LEN(A1)-4)),4),0)),"000°F")=B1,B1,"ERROR"))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Not exactly what you wanted, this formula shows „ERROR” if the string in col A does not contain any number (instead of searching for „Not heat safe”). Enter into C1 and copy down:

=CHOOSE(ROUNDUP((((ISNUMBER(FIND({0,1,2,3,4,5,6,7,8,9},A1))*5+ISNUMBER(FIND({0,1,2,3,4,5,6,7,8,9},B1)))+(2*COUNTIF(A1,"*"&B1&"*")))-0,6)/2,3,0),"ERROR","ERROR","ERROR",B1)
Excel Workbook
ABC
1The clay can sometimes be heated to 500F in the oven500F500F
2Sometimes I can apply heat as high as 400F to the clay500FERROR
3You can heat the clay above 350F in the ovenNo RatingERROR
4The clay is not heat safe500FERROR
Sheet
 
Upvote 0
I replaced the sample information with my information and I am reciving an error for all records.

=IF(AND(ISBLANK(VLOOKUP(VALUE(A8),'S:\Ecommerce Sales\New Items\New Items Set-up\[Salsify Export.xlsx]Sheet1'!$1:$1048576,265,FALSE)),(ISNUMBER(SEARCH("heat safe",V8)))),"heat safe",IF(TEXT(MAX(0+IF(ISNUMBER(0+MID(V8,ROW(INDIRECT("A1:A"&LEN(V8)-4)),4)),MID(V8,ROW(INDIRECT("A1:A"&LEN(V8)-4)),4),0)),"000°F")=VLOOKUP(VALUE(A8),'S:\Ecommerce Sales\New Items\New Items Set-up\[Salsify Export.xlsx]Sheet1'!$1:$1048576,265,FALSE),VLOOKUP(VALUE(A8),'S:\Ecommerce Sales\New Items\New Items Set-up\[Salsify Export.xlsx]Sheet1'!$1:$1048576,265,FALSE),"ERROR"))

Do you know what would be incorrect? Was i supposed to trade out the "A1:A"?
 
Upvote 0
Are the data set into two different worksheet? Hence Column B in my sample is actually into a different sheet?
 
Upvote 0
I do not understand the range of your vlookup, Sheet1'!$1:$1048576 then you make reference to the 265th Column, what is in sheet1?
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,537
Members
449,316
Latest member
sravya

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