View Single Post
 
Old 03-12-2015, 12:17 PM
Perceptus Perceptus is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Mar 2015
Posts: 1
Perceptus is on a distinguished road
Default Issue with SumProduct

I am Using the SumProduct function to sum the visible contents of a datatable that gets data from access. this function

=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX($H$12:$H$50098,1,1),ROW($ H$12:$H$50098)-ROW(INDEX($H$12:$H$50098,1,1)),0))=1),--($I$12:$I$50098="1310"), $H$12:$H$50098)

works

but

=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX($H$12:$H$50098,1,1),ROW($ H$12:$H$50098)-ROW(INDEX($H$12:$H$50098,1,1)),0))=1),--($I$12:$I$50098=A6), $H$12:$H$50098)

does not. Even though A6 = 1310.

Can anyone explain why this may occur?
Reply With Quote