Option Explicit
Sub Macro1()
Dim dblMyVal As Double
dblMyVal = WorksheetFunction.SumIfs(Range("$H:$H"), Range("$A:$A"), Range("$A2"), Range("$B:$B"), Range("$B2"), Range("$D:$D"), Range("$D2"), Range("$E:$E"), Range("$E2"))
MsgBox dblMyVal
End Sub
Using the same methods that have already been discussed in this thread (using Worksheetfunction).Thanks for the info! Any idea how to do it in VBA?