Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to get this value?
my vlookup function returns a value from a row that has additional detail. I would like to to retrieve the cell address associated with the returned value from vlookup. Is this possible? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use a formula and index/match
Assume your vlookup would look like this =VLOOKUP(A1,MyTable,2,0) the equivalent would be =INDEX(MyTable,MATCH(A1,INDEX(MyTable,,1),0),2) where 2 is the index column responding to the 2 in the vlookup and 0 = FALSE then this would return the address =CELL("address",INDEX(MyTable,MATCH(A1,INDEX(MyTab le,,1),0),2)) -- Regards, Peo Sjoblom "CR_2004_04_08" wrote in message ... Is there a way to get this value? my vlookup function returns a value from a row that has additional detail. I would like to to retrieve the cell address associated with the returned value from vlookup. Is this possible? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
one way to get the row number would be using MATCH: =MATCH(lookup_value,$A$1:$A$1000,0) will return the row number in the range A1:A1000 of your match. or tu return the address you may use =CELL("address",INDIRECT("A" & MATCH(lookup_value,$A$1:$A$1000,0))) -- Regards Frank Kabel Frankfurt, Germany CR_2004_04_08 wrote: Is there a way to get this value? my vlookup function returns a value from a row that has additional detail. I would like to to retrieve the cell address associated with the returned value from vlookup. Is this possible? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
the natch is a good way, but here jus another for fun! insert a blank col in the lookup array, then fill it with the corrsponding row number, then re turn this as the look up vale, and if you like co0cTONATE IWTH WITH the col letterthus A B C 1 vlookup 23 1 2 " 243 2 3 "..etc 4 ="C"&(vlookup(23,B2:c4,2,1)) ... somthing like this,i havn't put it thjough excel... this might be good if you have loads of look ups runnning down a colum, it might save memory by reducing the formula size... but the match method is a lot smarter! good luck ross |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need hyperlink function to obtain range name from a cell (contents | Excel Worksheet Functions | |||
vlookup to obtain pictures | Excel Discussion (Misc queries) | |||
Getting a cell address from Vlookup function in a macro? | New Users to Excel | |||
Using vlookup - how can I obtain a sum of values, not just first v | Excel Worksheet Functions | |||
How do I obtain the address of a cell using the vlookup function? | Excel Worksheet Functions |