Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default VBA - Lookup cell address

Is there a way to get vlookup to return the address
instead of the value of a cell. I can do this w/o VBA
using the function

=CELL("address",INDEX(C71:D74,MATCH("b",C71:C74),2 ))

but the CELL function is not in the WorksheetFunction
object. Thanks in advance for any help with this.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default VBA - Lookup cell address

Is there any particular reason for not using

Range("A3").Address

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

skrev i en meddelelse
...
Is there a way to get vlookup to return the address
instead of the value of a cell. I can do this w/o VBA
using the function

=CELL("address",INDEX(C71:D74,MATCH("b",C71:C74),2 ))

but the CELL function is not in the WorksheetFunction
object. Thanks in advance for any help with this.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA - Lookup cell address

Dim rng as Range, res as variant
rng = Range("C71:C74")
res = application.Match("b",rng,0)
if not iserror(res) then
msgbox Range("D71:D74")(res).Address
else
msgbox "not found"
End Sub

--
Regards,
Tom Ogilvy

wrote in message
...
Is there a way to get vlookup to return the address
instead of the value of a cell. I can do this w/o VBA
using the function

=CELL("address",INDEX(C71:D74,MATCH("b",C71:C74),2 ))

but the CELL function is not in the WorksheetFunction
object. Thanks in advance for any help with this.



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 Cell Address hmmm Excel Worksheet Functions 4 February 12th 10 11:53 AM
LOOKUP & RETURN CELL ADDRESS Carolan Excel Worksheet Functions 12 June 2nd 08 07:53 AM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Lookup, and Return Cell Address ryguy7272 Excel Worksheet Functions 7 September 22nd 07 09:46 AM
V Lookup and return cell address Thomas Excel Worksheet Functions 1 January 30th 06 08:09 PM


All times are GMT +1. The time now is 11:29 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"