vba index match syntax

Joined
Feb 17, 2016
Messages
2
Hello everybody,

I want to know the vba code syntax for the below formula,

Excel formula:
=INDEX(A:H,MATCH(1,("Dan Brown"=F:F)*(B2=G:G),0),8)

Vba Code:
???

Please help to me to write vba code for above formula. I am new to vba.

Thanks.
 
Here's a vba function I wrote for another project:
Code:
Function IndexMatch(LookFor As Range, SearchRng As Range, ReturnRng As Range) As Variant
Application.Volatile
IndexMatch = WorksheetFunction.Index(ReturnRng, _
    WorksheetFunction.Match(LookFor, SearchRng, 0), 0)
End Function
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top