Ask a question »

Excel- Find a particular word in column and edit cell

July 2015

A formula can be used to find a particular word in a column. Logical operations such as finding particular data in the cells of an Excel Worksheet can be done using the logical operators provided by the Excel office software. The SEARCH operator in Excel is used to find or make a search in Excel. If data in cells have to be compared, the ISERROR operator may be used. Nested loops with the IF logical operator can also be implemented to seek out a particular word in a column in an Excel Worksheet.

Excel- Find a particular word in column and edit cell



Issue



I'd like to scan a column for a certain word (e.g. "apple") and put a code (e.g. "A") in the cell next to it, each time the word is found.

Solution


Suppose your data is from A1 to A100 or onwards, then in B1 copy this formula and drag it down:
IF(ISERROR(SEARCH("*apple*",A1,1)),"","A ") F(ISERROR(SEARCH("*orange*",A1,1)),IF(ISERROR(SEARCH("*grapes*",A1,1)),"","C"),"B"),"A")

Note that


Thanks mubashir aziz for this tip on the forum.
For unlimited offline reading, you can download this article for free in PDF format:
Excel-find-a-particular-word-in-column-and-edit-cell.pdf

See also

In the same category

Published by aakai1056. - Latest update by Jeff
This document entitled « Excel- Find a particular word in column and edit cell » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.