W
Wellie
I'm using the the following "sumproduct" excel function in the spreadsheet.
=SUMPRODUCT(--(A1:A2762=Acct_ID),--(F1:F2762=Metric_Name),--(G1:G2762))
It basically check data in colu,m A & F. If they meeting criteria stored in
cell "Acct_ID" and "Metirc_Name", it sums data in column G.
Can someone please tell me how can I convert the "sumproduct" function as
shown above to VBA code in subroutine similar to the the following 'subtotal'
function ?
With Application
SumVal = .Subtotal(9, Rng.Columns("H"))
end With
=SUMPRODUCT(--(A1:A2762=Acct_ID),--(F1:F2762=Metric_Name),--(G1:G2762))
It basically check data in colu,m A & F. If they meeting criteria stored in
cell "Acct_ID" and "Metirc_Name", it sums data in column G.
Can someone please tell me how can I convert the "sumproduct" function as
shown above to VBA code in subroutine similar to the the following 'subtotal'
function ?
With Application
SumVal = .Subtotal(9, Rng.Columns("H"))
end With