Adding Index Match Formula inside a cell with the use of Macros

raven1124

New Member
Joined
Jun 13, 2017
Messages
29
Hello Guys,

I'm in need of your professional help with this one as I have observed that my excel file tends to get slow when I add the function for Index + Match in each cell. I've observed that my sheet tends to load right after I made changes with the database sheet that I'm using to reference the value of each cell in a column.

He's the sample formula that I've used for each cell to get my desired result: =IFERROR(INDEX(Database!$DF:$DF,MATCH($C$5&D$11,Database!$C:$C&Database!$M:$M,0)),"N/A")

Would it be possible to use a loop for this one and if it possible, can the values be pasted only instead of the formula to void the lag inside the worksheet.


Sample Table below: (Note: the cells with 0,1 & N/A would mean that I used the Index + Match for each of them)
Work Week #:Week 1Week 2Week 3Week 4Week 5Week 6Week 7Week 8Week 9Week 10
Topic
Subject 1
Category 100N/A0000000
Category 200N/A000000
Category 300N/A1000000
Category 400N/A0001000
Category 500N/A0000000
Category 600N/A0100000
Subject 2
Category 100N/A0000000
Category 200N/A1000000
Category 300N/A0000000
Category 400N/A0000000

<tbody>
</tbody>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,216,085
Messages
6,128,733
Members
449,465
Latest member
TAKLAM

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