How to find the specific cell content in excel

sankar kasilingam

New Member
Joined
Jul 8, 2011
Messages
16
In an excel sheet, i have entered my name in to too many cells, like A9,A10,A15,A20 etc. when i find with my name using CLRL F, it is showing the results. But I need the cell list in the excel itself not in the message or control boxes. Please advise

Thanks,
Shankar
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Check out the Visual Basic Help file for "Find Method"

I cobbled their sample code to do this task. You will just need to alter the search term by having it look for your name and tell excel where to output the data addresses.

Regards, Marc

Public Sub Oracle()
With Worksheets(1).Range("a1:f7")

i = 1
Set c = .Find("Your Name", LookIn:=xlValues) 'Modify by entering your search term.
If Not c Is Nothing Then
firstAddress = c.Address
Do
Cells(10 + i, 1).Value = c.Address 'Modify where you want your list within excel.
'c.Value = 5
i = i + 1
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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