Find text within a range and return row number

Monsignor

Board Regular
Joined
May 30, 2011
Messages
162
WOW! I thought this would be simpler that it's turned out. Please help!

In range A1:G50 there are words. The columns are in no order.

What is a formula that would return the row number of a word I'm interested in?

I would like to type "Farm" and have Excel tell me it's in row 37.


What to do?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I was trying to develop a formula to return the row number where the text string is in any part of the range
the formula only return the first row number but not the other row number.
XSD8UM.png
 
Last edited:
Upvote 0
I was trying to develop a formula to return the row number where the text string is in any part of the range
the formula only return the first row number but not the other row number.
XSD8UM.png
I think I could have a solution using the small function in combination with other logical formulas.
here was the used formula : SMALL(IF(ISERROR(SEARCH(CONCATENATE("*",$E$3,"*"),$C$3:$C$11)),"",ROW($C$3:$C$11)),ROW(A1))
it's Array (Ctrl+shift+Enter)
and with this I could get the wanted results :)
 
Upvote 0
I think I could have a solution using the small function in combination with other logical formulas.
here was the used formula : SMALL(IF(ISERROR(SEARCH(CONCATENATE("*",$E$3,"*"),$C$3:$C$11)),"",ROW($C$3:$C$11)),ROW(A1))
it's Array (Ctrl+shift+Enter)
and with this I could get the wanted results :)

Moks844,

Try this small modification in your formula:


=IFERROR(SMALL(IF(ISERROR(SEARCH($E$3,$C$3:$C$10)),"",ROW($C$3:$C$10)),ROWS($F$3:$F3)),"")

Markmzz
 
Upvote 0
Or if you would rather avoid the array entry (& are using Excel 2010 or later)

=IFERROR(AGGREGATE(15,6,ROW(C$3:C$11)/(SEARCH(E$3,C$3:C$11)>0),ROWS(F$3:F3)),"")
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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
Back
Top