Search formula with continued text

RPrasad

Board Regular
Joined
Mar 22, 2008
Messages
144

Hi - need help on "Search" formula. Below is the example. When I put the search formula in B1 and B2 it shows the same result as the text continues

what I am looking is in B2 it should return error as "Term1" is not there in A2. could you please help how to do it? Thanks,

Column AColumn BResult in col B
Term1=SEARCH("Term1",A1)1
Term16=SEARCH("Term1",A2)1

<tbody>
</tbody>


<colgroup><col><col></colgroup><tbody>
</tbody>
 

Some videos you may like

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

mohadin

Active Member
Joined
Mar 22, 2015
Messages
361
Office Version
2013
Platform
Windows
Re: Help on search formula with continued text

Hi
Try
Code:
B1=FIND("Term1";A1)
B2=FIND("Term1";A2)
 
Last edited:

RPrasad

Board Regular
Joined
Mar 22, 2008
Messages
144
Re: Help on search formula with continued text

Hi tried the above code, still result is same.

as "Term1" contains in "Term16" the formula is reading only first few characters to match the result as son as it finds.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
35,883
Office Version
365
Platform
Windows
Re: Help on search formula with continued text

How about
=SEARCH("Term1 ",A1&" ")
 

Watch MrExcel Video

Forum statistics

Threads
1,089,979
Messages
5,411,632
Members
403,383
Latest member
Excelacity

This Week's Hot Topics

Top