Hey Dear community,
I am using VBA+ formulas to analyz sales data ( about 1000,000rows ) it takes 7-8 minutes for calculation, i wanna know if there any other way to make it faster? because i need to calculate this report daily.
I use following VBA for 80-90 different ranges on that report.
I am using VBA+ formulas to analyz sales data ( about 1000,000rows ) it takes 7-8 minutes for calculation, i wanna know if there any other way to make it faster? because i need to calculate this report daily.
I use following VBA for 80-90 different ranges on that report.
Code:
Sub Bonaqua() Dim Markets As Worksheet
Set Markets = Sheets("sheet4")
Sheets("DATA").Range("A:A").Name = "urun"
Sheets("DATA").Range("L:L").Name = "sifaris"
Sheets("DATA").Range("M:M").Name = "Printed"
Sheets("DATA").Range("E:E").Name = "musteri"
Sheets("sheet4").Range("AP:AP").Name = "bayi"
Markets.Range("c1:c20").Name = "MARKET"
With Sheets("DATA").Cells(5, "V")
.FormulaArray = "=sum(if((isnumber(match(urun,market,0)))*(sifaris>0)*(urun<>"""")*(not(isnumber(match(musteri,bayi,0)))),printed))"
.Value = .Value
End With
End Sub