ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to find a particular work and give the comment in a different cell (https://www.excelbanter.com/excel-programming/350739-how-find-particular-work-give-comment-different-cell.html)

Manu

How to find a particular work and give the comment in a different cell
 
Hi
I have a sheet containing 1500+ lines. I need to find a particulart
work "execute" or "script" from a cell which contains a big string
which is entered by users. I need to check whether that particular
work is there in that string and if its there i need to mention
"Present" in a different cell.

Can some one help me in solving this. I tried the built in functions
but was not able to get the correct result. If some one can give me a
VBA code for this it will be really helpful.

regards

Manoj S.


Stefi

How to find a particular work and give the comment in a different
 
Hi Manu,

Assume column A contains words "execute" and"script", and you want "Present"
to appear in column B, then type in B2 the following formula, and fill it
down to 1500+ as needed:

=IF(AND(ISERROR(SEARCH("execute",A2)),ISERROR(SEAR CH("script",A2))),"","Present")

Regards,
Stefi



€˛Manu€¯ ezt Ć*rta:

Hi
I have a sheet containing 1500+ lines. I need to find a particulart
work "execute" or "script" from a cell which contains a big string
which is entered by users. I need to check whether that particular
work is there in that string and if its there i need to mention
"Present" in a different cell.

Can some one help me in solving this. I tried the built in functions
but was not able to get the correct result. If some one can give me a
VBA code for this it will be really helpful.

regards

Manoj S.




All times are GMT +1. The time now is 03:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com