VBA - Determining which cell in a column contains the value from a different cell

parkerbelt

Active Member
Joined
May 23, 2014
Messages
377
I have a spreadsheet that has a value stored in cell M7 which is 201601.
I want to evaluate all the cells in column C beginning at Cell C19 and going down or coming up from the bottom and stopping at C19. and when a match is found 201601, I want to get the cell letter and number - like C35.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try:
Code:
Sub FindCellAddr()
    MsgBox Range("C19:C" & Range("C" & Rows.Count).End(xlUp).Row).Find(Range("M7"), LookIn:=xlValues, lookat:=xlWhole).Address(0, 0)
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,773
Messages
6,180,869
Members
453,003
Latest member
SalihZekiKoni

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