Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Looking for a way to search a worksheet for a given value and return the column and row header value(s) for the found cell(s). Any help appreciated! -- scchang ------------------------------------------------------------------------ scchang's Profile: http://www.excelforum.com/member.php...o&userid=31937 View this thread: http://www.excelforum.com/showthread...hreadid=516615 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
try something like this
Public Sub test() Dim cfind As Range Set cfind = Cells.Find(what:="h") 'h is the value you want to find. change this MsgBox "the coumn header is " & cfind.End(xlUp) MsgBox "the row header is " & cfind.End(xlToLeft) End Sub "scchang" wrote in message ... Looking for a way to search a worksheet for a given value and return the column and row header value(s) for the found cell(s). Any help appreciated! -- scchang ------------------------------------------------------------------------ scchang's Profile: http://www.excelforum.com/member.php...o&userid=31937 View this thread: http://www.excelforum.com/showthread...hreadid=516615 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() That worked. Thanks. To expand, how would I modify this to find all occurrences of "h" and return specific row and column values for each occurence in table form? Appreciate your help! -- scchang ------------------------------------------------------------------------ scchang's Profile: http://www.excelforum.com/member.php...o&userid=31937 View this thread: http://www.excelforum.com/showthread...hreadid=516615 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula/Function Question | Excel Discussion (Misc queries) | |||
Effective interest paid - need formula/function | Excel Worksheet Functions | |||
formula/function question | Excel Worksheet Functions | |||
Formula/function | Excel Worksheet Functions | |||
Max value in formula/function | Excel Worksheet Functions |