Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default USING VLOOKUP TO RETURN A CELL ADDRESS

I am trying to use the VLOOKUP command but want it to return a cell address
rather than the result, i tried ADDRESS but to no avail as i wouldn't know
its position with the worksheet
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 318
Default USING VLOOKUP TO RETURN A CELL ADDRESS

Say your lookup table is in A1:B7 and the lookup value is in A9 and say that
you normally lookup in column B(1 column offset from column A) then you will
use the following to get the address of the same cell.

=ADDRESS(ROW(A1:A7)+MATCH(A9,A1:A7,FALSE)-1,COLUMN(A1:A7)+1)

"psych142" wrote:

I am trying to use the VLOOKUP command but want it to return a cell address
rather than the result, i tried ADDRESS but to no avail as i wouldn't know
its position with the worksheet

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default USING VLOOKUP TO RETURN A CELL ADDRESS

The usual technique is to VLOOKUP() to determine the value and then use the
MATCH() function to return the location of the value ( if you know the row
and column this is equivalent to the address)
--
Gary's Student


"psych142" wrote:

I am trying to use the VLOOKUP command but want it to return a cell address
rather than the result, i tried ADDRESS but to no avail as i wouldn't know
its position with the worksheet

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default USING VLOOKUP TO RETURN A CELL ADDRESS

I need the same thing but I have multiple cells witht he same value in it and
need to find the last row that contains a value.

ex. looking for the last value of 1005 in the array
1005
1005
1005
1006
1006
1007

This should come out as 3.

Thank you for your help.

"psych142" wrote:

I am trying to use the VLOOKUP command but want it to return a cell address
rather than the result, i tried ADDRESS but to no avail as i wouldn't know
its position with the worksheet

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default USING VLOOKUP TO RETURN A CELL ADDRESS

This should come out as 3.

Do you want the actual row number or the *relative* row number?

If your data was in the range A1:A6 then the last instance of 1005 is in row
3. If your data was in the range A2:A7 then the last instance of 1007 is in
row 4.

This array formula** will return the *relative* row number:

=MAX((A2:A7=1005)*ROW(A2:A7))-MIN(ROW(A2:A7))+1

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

This normally entered formula will also return the *relative* row number:

=LOOKUP(2,1/(A2:A7=1005),ROW(A2:A7))-MIN(ROW(A2:A7))+1

--
Biff
Microsoft Excel MVP


"OX_Gambit" wrote in message
...
I need the same thing but I have multiple cells witht he same value in it
and
need to find the last row that contains a value.

ex. looking for the last value of 1005 in the array
1005
1005
1005
1006
1006
1007

This should come out as 3.

Thank you for your help.

"psych142" wrote:

I am trying to use the VLOOKUP command but want it to return a cell
address
rather than the result, i tried ADDRESS but to no avail as i wouldn't
know
its position with the worksheet





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default USING VLOOKUP TO RETURN A CELL ADDRESS

Hi,

Say you have the array in range D5:D10. In E5, type the following formula
=D5&COUNTIF($D$5:D5,D5) and copy down till E10. In cell D12, type 1005 and
in cell E12, type the following formula

=ADDRESS(MATCH(D12&COUNTIF($D$5:$D$10,D12),E1:E10, 0),4)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"OX_Gambit" wrote in message
...
I need the same thing but I have multiple cells witht he same value in it
and
need to find the last row that contains a value.

ex. looking for the last value of 1005 in the array
1005
1005
1005
1006
1006
1007

This should come out as 3.

Thank you for your help.

"psych142" wrote:

I am trying to use the VLOOKUP command but want it to return a cell
address
rather than the result, i tried ADDRESS but to no avail as i wouldn't
know
its position with the worksheet


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
LOOKUP & RETURN CELL ADDRESS Carolan Excel Worksheet Functions 12 June 2nd 08 07:53 AM
retreiving cell address of vlookup value amyc Excel Worksheet Functions 2 June 7th 06 08:09 PM
cell address ellebelle Excel Worksheet Functions 5 February 2nd 06 11:23 PM
cell address of occurence of a vlookup formula [email protected] Excel Worksheet Functions 5 October 26th 05 06:53 AM
How do I obtain the address of a cell using the vlookup function? Spock Excel Worksheet Functions 2 May 16th 05 06:35 PM


All times are GMT +1. The time now is 01:26 PM.

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"