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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,222,196
Messages
6,164,518
Members
451,900
Latest member
lamski

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