#1   Report Post  
rocket0612
 
Posts: n/a
Default find Row


I currently use VLOOKUP to find the address for a company when their
name is input. It returns the address but I would also like it to
return the row it gets the details from, is this possible?

thanks


--
rocket0612
------------------------------------------------------------------------
rocket0612's Profile: http://www.excelforum.com/member.php...o&userid=19492
View this thread: http://www.excelforum.com/showthread...hreadid=476191

  #2   Report Post  
Stefi
 
Posts: n/a
Default

MATCH function returns row number!
Regards,
Stefi


€˛rocket0612€¯ ezt Ć*rta:


I currently use VLOOKUP to find the address for a company when their
name is input. It returns the address but I would also like it to
return the row it gets the details from, is this possible?

thanks


--
rocket0612
------------------------------------------------------------------------
rocket0612's Profile: http://www.excelforum.com/member.php...o&userid=19492
View this thread: http://www.excelforum.com/showthread...hreadid=476191


  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default


"Stefi" wrote in message
...
MATCH function returns row number!


No, it returns the index into the data. This could be the row number IF it
is vertical data, but may not (MATCH("123",A100:A110,0 will never be between
100 and 110).


  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default find Row



rocket0612 wrote:
I currently use VLOOKUP to find the address for a company when their
name is input. It returns the address but I would also like it to
return the row it gets the details from, is this possible?

thanks



Given in A2:B4:

x,7
y,6
z,9

the formula:

=VLOOKUP("y",$A$2:$B$4,2,0)

would return 6.

=MATCH("y",$A$2:$A$4,0)

would return the position of the lookup value "y", therefore also of the
value associated with it.

=MATCH("y",$A$2:$A$4,0)+ROW($A$2)-1

would return the native row number at which "y" is.

=CELL("Address",INDEX($B$2:$B$4,MATCH("y",$A$2:$A$ 4,0)))

would return the cell reference of the value associated with "y".
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
Trapping a NO FIND after a find Alan Excel Discussion (Misc queries) 2 August 31st 05 01:28 PM
Find last occurance of text in range farutherford Excel Worksheet Functions 5 August 30th 05 02:00 AM
Find within Workbook. Matt Carter Excel Discussion (Misc queries) 2 August 3rd 05 07:40 PM
How do I find the cell address of the 2nd largest of a set? Mr. Snrub Excel Discussion (Misc queries) 4 May 30th 05 12:53 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM


All times are GMT +1. The time now is 03:11 PM.

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

About Us

"It's about Microsoft Excel"