Sorry Somendra Misra ur formula not workHi Abhijeet,
Have you tried my formula?
Regards,
Formula works but what for Number ?Hve you tried abobe formula?
Regards,
If position is not fix then this formula not workIn B2,
=LOOKUP(MID(A2,SEARCH("Batch ?",A2)+6,1),{"S","Salary";"T","Travel"})
In C2,
=TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",99)),SEARCH("Batch",SUBSTITUTE(A2," ",REPT(" ",99)))-198,100))*1
Abhijeet said:If position is not fix then this formula not work
Hi Narayan This formula not work when more than one Number is in Statement If i search 5002 & statement 191 Z afgfg 5002 hjgh.xls then this formula not workHi Abhijeet ,
Try this array formula , entered using CTRL SHIFT ENTER :
=IF(OR(ISNUMBER(SEARCH($E$2:$E$7&" ",$A2&" "))),"Yes","No")
The above formula will not work if the search string / number is followed by a period "." in the text which is being searched in column A.
Narayan
No if only one number is in statement then this formula work other wise not workHi Abhijeet,
Formula posted in Comment #4 delivers exact result as your sample file.
Where are you stuck?
Regards,