FIND/SEARCH FORMULA IN MS EXCEL (For range of data)

ZAKIR

New Member
Joined
Sep 17, 2014
Messages
2
HI,

I am looking for find /search formula in Ms Excel, in which i can find range of data from a cell.

for example Syntax are:

=find(find_text,within_text,start number)

=search(find_text,within_text,start number)


In syntax "find_text" should be range of data instead of single cell/or criteria.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

ParamRay

Well-known Member
Joined
Aug 6, 2014
Messages
1,195
.
.

You could use an array formula.

For example, if the cell you want to search in is A1 then you could enter this array formula into cells B1 and C1 (by Ctrl + Shift + Enter):

{=SEARCH({"apple","banana"},A1)}
 

ZAKIR

New Member
Joined
Sep 17, 2014
Messages
2
Thanks gpeacock!

{=SEARCH({"apple","banana"},A1)}

But i need to put Range of Data (A2:A180) instead of "apple","banana", because i have more than 150 text values to be search from 1 cell.




 

vds1

Well-known Member
Joined
Oct 5, 2011
Messages
1,200
You Can try

=SUMPRODUCT(--(A2:A180=A1),ROW(A2:A180))

where A1 is your data to be searched. If found returns 0 else returns row number.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,108
Messages
5,857,431
Members
431,879
Latest member
KiwDaWabbit

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top