Large file formula slow process & slow filter process

Sathish G

New Member
Joined
Aug 16, 2017
Messages
44
Office Version
  1. 2013
Platform
  1. Windows
Hi ,

Am using the below vlookup formula but it taking very much time to apply and filtering the values.

Is that any other of formula to make it faster than this.



Range("C2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],Output!C[-1],1,0)"
Range("D2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Output!C[-2]:C[-1],2,0)"
Range("E2").Select
ActiveCell.FormulaR1C1 = "=RC[-1]=RC[1]"
Range("F2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],Output!C,1,0)"
Range("G2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-3],Output!C[2],1,0)"
Range("H2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-4],Output!C[4],1,0)"
Range("I2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-5],Volte!C[-7],1,0)"
Range("C2:I2").Select
Selection.AutoFill Destination:=Range("C2:I72001"), Type:=xlFillDefault
Range("C2:I72001").Select
Columns("A:I").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$I$72001").AutoFilter Field:=9, Criteria1:="#N/A"
ActiveSheet.Range("$A$1:$I$72001").AutoFilter Field:=8, Criteria1:="#N/A"
ActiveSheet.Range("$A$1:$I$72001").AutoFilter Field:=7, Criteria1:="#N/A"
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
These are the formulas am using for VLOOKUP

Taking vlookup from sheet1 to Output sheet.
Please somebody share the fastest way formulas.

=VLOOKUP(A2,Output!B:B,1,0)
=VLOOKUP(C2,Output!B:C,2,0)
=VLOOKUP(D2,Output!F:F,1,0)
=VLOOKUP(D2,Output!I:I,1,0)
=VLOOKUP(D2,Output!L:L,1,0)
=VLOOKUP(D2,Output!B:B,1,0)

Range("C2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],Output!C[-1],1,0)"
Range("D2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Output!C[-2]:C[-1],2,0)"
Range("E2").Select
ActiveCell.FormulaR1C1 = "=RC[-1]=RC[1]"
Range("F2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],Output!C,1,0)"
Range("G2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-3],Output!C[2],1,0)"
Range("H2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-4],Output!C[4],1,0)"
Range("I2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-5],Volte!C[-7],1,0)"
Range("C2:I2").Select
Selection.AutoFill Destination:=Range("C2:I72001"), Type:=xlFillDefault
Range("C2:I72001").Select
 
Upvote 0
Try below method instead of selecting each cell

Range("C2:I2")
.AutoFill Destination:=Range("C2:I72001"), Type:=xlFillDefault

Also, try to paste the it as value before using filters.

 
Upvote 0
Range("C2").FormulaR1C1 = "=VLOOKUP(RC[-2],Output!C[-1],1,0)"
Range("D2").FormulaR1C1 = "=VLOOKUP(RC[-1],Output!C[-2]:C[-1],2,0)"
Range("E2").FormulaR1C1 = "=RC[-1]=RC[1]"
Range("F2").FormulaR1C1 = "=VLOOKUP(RC[-2],Output!C,1,0)"
Range("G2").FormulaR1C1 = "=VLOOKUP(RC[-3],Output!C[2],1,0)"
Range("H2").FormulaR1C1 = "=VLOOKUP(RC[-4],Output!C[4],1,0)"
Range("I2").FormulaR1C1 = "=VLOOKUP(RC[-5],Volte!C[-7],1,0)"
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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