Convert formula to vba

jvoss

Board Regular
Joined
Jun 13, 2015
Messages
66
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Good day,
Looking to see if this can be turned into vba, revise the forumla to speed up the save & recalculation. i have wb with 21000 row spreed sheets and it is using this formula. this is slowing down to a crawl when trying to add new data or even saving.

{=IFERROR(INDEX(MASTER_LIST!$T$2:$T$10000,MATCH($C4,IF(MASTER_LIST!$M$2:$M$10000=$D4,IF(MASTER_LIST!$N$2:$N$10000=$E4,MASTER_LIST!$L$2:$L$10000)),0)),0)}
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi

VBA Code:
Range("A4").FormulaArray = "=IFERROR(INDEX(MASTER_LIST!$T$2:$T$10000,MATCH($C4,IF(MASTER_LIST!$M$2:$M$10000=$D4,IF(MASTER_LIST!$N$2:$N$10000=$E4,MASTER_LIST!$L$2:$L$10000)),0)),0)"
 
Upvote 0
Sorry looks like i did a bad job in explaining what is going on. the formula is in 21000 rows, not just one row. so each time i do a keystroke it recalculates and it takes over 10 min before i can do the next keystroke. even worse when i do a save, it takes over 1hour to save.
 
Upvote 0
problem resolved with removal of auto calculate..
 
Upvote 0
Solution

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

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