I have an Excel sheet with columns template and template name, I have to fill the template name column with a partial string in template column:
Template Template Name
This is String
String line contains data
This is Int
Int line contain data
int: in the String data
string: in the int data
Int: is empty or no string
I tried the below formula but its giving different results:
=IF(ISNUMBER(SEARCH("string",A2)),"string",IF(ISNUMBER(SEARCH("int",A2)),"int",IF(ISNUMBER(SEARCH("int:",A2)),"int",IF(ISNUMBER(SEARCH("string:",A2)),"string"))))
Output given by the formula in B column:
Template Template Name
This is String String
String line contains data string
This is Int int
Int line contain data int
int: in the String data string #it must be 'int'
string: in the int data int #it must be 'string'
Int: is empty or no string string #it must be 'int'
Please let me know what has to be changed to get the desired output.