Hey Guys,
I am trying to get a file to update quicker I can have >100000 rows and would like to speed up the formula, the one i am having problems with is this
I don't have any experience writing a VBA Array to complete a formula is this something that can be done? or not in this case
I have tried to speed things up doing the below but it still takes too long.
Another option might be to limit how far back this formula will look rather than always going back to Cell AE2 once the formula gets to AE100 for eg it would move to AE3, and so on
Any And all help greatly appreciated, even if not possible
I am trying to get a file to update quicker I can have >100000 rows and would like to speed up the formula, the one i am having problems with is this
I don't have any experience writing a VBA Array to complete a formula is this something that can be done? or not in this case
I have tried to speed things up doing the below but it still takes too long.
VBA Code:
Sub Formula_ImportC()
'
' Formula_Import Macro
' Run aditional calculations on SQL Data test delete after 24/06
'
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim lastRow&
Dim rmiWS As Worksheet
Set rmiWS = Sheets("SQL DATA")
lastRow = rmiWS.Cells(rmiWS.Rows.Count, "A").End(xlUp).row
With rmiWS
.Range("AE2:AE" & lastRow).FormulaR1C1 = "=IF(RC[-27]=0,COUNTIF(R1C32:R[-1]C[1],RC[1]),R[-1]C)"
End With
'FormulaR1C1
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
Another option might be to limit how far back this formula will look rather than always going back to Cell AE2 once the formula gets to AE100 for eg it would move to AE3, and so on
Excel Formula:
=IF(D3=0,COUNTIF($AF$1:AF2,AF3),AE2)
Any And all help greatly appreciated, even if not possible