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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,729
Messages
6,126,525
Members
449,316
Latest member
sravya

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