I’m trying to find out why the following VBA code does not produce the same result as its equivalent Excel formula.
Formula:
Cell F5 = SUM(OFFSET(C:C,MATCH(9.99E+307,C:C)-1,0,-F3))
VBA:
With Application.WorksheetFunction
rng.Cells(5, 6) = .Small(.Sum(.Offset (Columns(3), .Match(9.99E+307, Columns(3)) – 1, 0, -1 * Cells(3, 6))), 1)
End With