Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Does anyone know the code to emulate this function using a custom VBA function:
=INDEX(ReturnRange(MATCH(MatchValue,LookupRange,0) ) TIA. |
#2
![]() |
|||
|
|||
![]()
Spencer,
For example: Dim ReturnRange As Range Dim MatchValue As Variant Dim LookupRange As Range Set ReturnRange = Range("A1:A10") MatchValue = 17 Set LookupRange = Range("B1:B10") MsgBox Application.Index(ReturnRange, _ Application.Match(MatchValue, LookupRange, 0)).Value HTH, Bernie MS Excel MVP "Spencer Hutton" wrote in message ... Does anyone know the code to emulate this function using a custom VBA function: =INDEX(ReturnRange(MATCH(MatchValue,LookupRange,0) ) TIA. |
#3
![]() |
|||
|
|||
![]()
Maybe the discussion a few lines below this one (Sumif - FastExcel, poster
Naz) is interesting for you -- Kind Regards, Niek Otten Microsoft MVP - Excel "Spencer Hutton" wrote in message ... Does anyone know the code to emulate this function using a custom VBA function: =INDEX(ReturnRange(MATCH(MatchValue,LookupRange,0) ) TIA. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom Function | Excel Worksheet Functions | |||
clock | Excel Worksheet Functions | |||
Need a ISWorkday Function -- Any Ideas | Excel Worksheet Functions | |||
Custom Function not being auto calculated when cells change..help? | Excel Worksheet Functions | |||
left worksheet function within a combo box | Excel Worksheet Functions |