IF Function with SEARCH and ISERROR in Excel
On March 11,2022 by Tom RoutleyWhen creating formulas and equations on Microsoft Excel, users have the option of inserting multiple functions and conditions into a formula to attain a desired result. This action is often referred to as nesting. This tutorial will walk you through how to combine the SEARCH, ISERROR and IF functions to scan a document for a particular data piece, and mark it with a particular coding piece in the adjacent column.
How To Use Nestled Functions in Excel
Before beginning, here is a quick run down of the Microsoft Excel functions needed for this to work.
The SEARCH function is used to find a piece of data in an Excel spreadsheet.
The ISERROR function is used to check for error values.
The IF function specifies a condition within the data.
Nestled loops with the IF logical operator can be implemented to seek out a particular word in a column. Together with the ISERROR and SEARCH functions, this formula will allow you to scan a column for a certain word (e.g. "apple") and place a code (e.g. "A") into the adjacent cell each time the word is found.
Combined SEARCH, IF, and ISERROR Function
N.B. The following formula assumes that your data ranges from A1 to A100 (or beyond). If so, the formula should be placed into column B1 and dragged down. You should adjust the column labels depending on the location of your data.
IF(ISERROR(SEARCH("*apple*",A1,1)),"","A ") F(ISERROR(SEARCH("*orange*",A1,1)),IF(ISERROR(SEARCH("*grapes*",A1,1)),"","C"),"B"),"A")
.
Photo: 123rom
Article Recommendations
Latest articles
Popular Articles
Archives
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- January 2021
Leave a Reply