Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
scchang
 
Posts: n/a
Default Need Help With Formula/Function


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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
R..VENKATARAMAN
 
Posts: n/a
Default Need Help With Formula/Function

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
scchang
 
Posts: n/a
Default Need Help With Formula/Function


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula/Function Question JD01904 Excel Discussion (Misc queries) 2 November 25th 05 03:01 AM
Effective interest paid - need formula/function Pasko1 Excel Worksheet Functions 1 November 18th 05 09:02 PM
formula/function question wnl2007 Excel Worksheet Functions 4 June 13th 05 05:51 PM
Formula/function alm09 Excel Worksheet Functions 3 May 5th 05 11:12 PM
Max value in formula/function SEWINBABY Excel Worksheet Functions 3 January 19th 05 01:37 AM


All times are GMT +1. The time now is 07:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"