Hi
Probably the main reason is --(Range,Value) part - there must
be --(Range=Value) instead.
Additionally you use 2 different syntaxis at same time - it doesn't cause an
error, but you don't gain anything too. You can have SUMPRODUCT or in form
=SUMPRODUCT((Range1=Value2)*(Range2=Value2)*...*(RangeN))
or in form
=SUMPRODUCT(--(Range1=Value2),--(Range2=Value2),...,RangeN)
So, your formula probably will be
=SUMPRODUCT(--(H1:H5=H1),--(Sheet7!H1:H5=H1)),I1:I5,Sheet7!I1:I5)
The formula will be multiply row-wise values in ranges I1:I5 and
Sheet7!I1:I5 and, when according values in both ranges H1:H5 and
Sheet7!H1:H5 equal with value in H1, and sum then all multiplied values.
When this is not what you intented, then you have to ask again.