Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default What is the VBA equivilate to Excel worksheet function lookup

John wrote:
I would like to write code for the following
lookup function.

=Index(AE31;AJ54,MATCH(L3,AE31;AE54),MATCH(M2,AE31 ;AJ31,))


V = [Index(AE31:AJ54,MATCH(L3,AE31:AE54),MATCH(M2,AE31: AJ31,))]

might be considered cheating?

With Range("AE31:AJ54")
V = .Cells(WorksheetFunction.Match(Range("L3"),.Column s(1)), _
WorksheetFunction.Match(Range("M2"),.Rows(1))
End With

is another way.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
LOOKUP worksheet function F. Lawrence Kulchar Excel Discussion (Misc queries) 7 July 27th 08 05:47 PM
How do I lookup a worksheet name in excel? RJL007 Excel Worksheet Functions 2 May 30th 08 02:29 AM
Worksheet Rank / Lookup function Gary T Excel Worksheet Functions 4 October 26th 07 07:14 PM
What is the VBA equivilate to Excel worksheet function MAX? Phillips Excel Programming 1 December 2nd 03 10:41 PM


All times are GMT +1. The time now is 05:52 AM.

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"