Match multiple columns in VBA

Sterny

New Member
Joined
Mar 6, 2009
Messages
1
Hello,

Right now im using an index/match formula to return a value in a 4th column based on the values of the first 3 columns. This was working great until I expanded the formula down thousands of rows and the workbook slowed down considerably. Now I'm looking for a way to capture this functionality in a macro.

This is the formula I use now:
=INDEX('Sheet1'!$A$1:$D$1736,MATCH($C$1&$C$2&$A7,'Sheet1'!$A$1:$A$1736&'Sheet1'!$B$1:$B$1736&'Sheet1'!$C$1:$C$1736,0),4)

I would like to use worksheetfunction.match to just fill in the data, but I could not find the right syntax (if it is even possible) for matching multiple columns. Does anybody know the right syntax or another way to replicate this functionality?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,224,974
Messages
6,182,108
Members
453,088
Latest member
Chaoxite

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