Finding word with in a column

warren_s

Board Regular
Joined
May 28, 2007
Messages
73
Hi All,
Assuming Cell :
A1 = A B C
A2 = D E F
A3 = G H I

What I need to do is find out what row the letter / word is in.
For example if I am looking for the letter "E", I need it to return that "E" is in row 2.
I have tried find / match andI cannot figure out how to do it using formulas.
i would appreciate it if anyone can give me an idea how to solve this problem, it is driving me nuts.
Thank you very much in advance for your help.
Warren
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try this Vba script:

Code:
Sub Find_Me()
Dim i As Long
Dim Lastrow As Long
Dim ans As String
ans = InputBox("What value are we looking for?")
Lastrow = Cells(Rows.Count, "A").End(xlUp).Row

    For i = 1 To Lastrow

        If InStr(Cells(i, 1).Value, ans) Then MsgBox ans & "  is in row  " & i
    Next

End Sub
 
Upvote 0

Forum statistics

Threads
1,215,966
Messages
6,127,973
Members
449,414
Latest member
sameri

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