VBA to Replace Index Match Formula Array to Copy Information Between Sheets

Vencas

New Member
Joined
Apr 15, 2017
Messages
6
Hello,

I need some help in getting a VBA code to replace my array formulas as the spreadsheet is currently working very slowly (and having automatic workbook calculation off doesn't help as it takes up to a minute to calculate all formulas manually). Below is one of the array formulas that I am currently using (I currently have 7 columns of these with 172 rows and it is likely that there will be more rows that will need to be added).

Code:
=IFERROR(INDEX('Report Data'!$M:$M,(MATCH('Ready to use'!A5&"PRODUCTIVITY",'Report Data'!$A:$A&'Report Data'!$K:$K,0))), "")

Basically what I need it to do is to check a different sheet for an ID (which can be found in column A on both sheets), as well as find the word "Productivity" or "Quality" in column K (as there are multiple types of information under a single ID), and then copy either cells L, M and X if matched with Quality or L, M, Z and AA if matched with Productivity, and paste into the "Ready to use" sheet with this layout: From L to K for Quality or to H for Productivity, M to J for Quality or G for Productivity, X to L, Z to I, and AA to M.

Any help is greatly appreciated. Thank You
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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