
Originally Posted by
DonkeyOte
On an aside - if using * there is no need for double unary also else you're needlessly repeating coercion - to explain by means of (overly) simplistic example:
=--"1" -> 1
="1"*1 -> 1
thus
=--"1"*1
involves one lot of unnecessary coercion
On that basis, either:
=SUMPRODUCT(('Invoice Detail'!$V$5:$V$913=LEFT(B75,FIND(" Total",B75&" Total")-1))*('Invoice Detail'!$H$5:$H$913>60)*('Invoice Detail'!$H$5:$H$913<=90),'Invoice Detail'!$S$5:$S$913)
or
=SUMPRODUCT(--('Invoice Detail'!$V$5:$V$913=LEFT(B75,FIND(" Total",B75&" Total")-1)),--('Invoice Detail'!$H$5:$H$913>60),--('Invoice Detail'!$H$5:$H$913<=90),'Invoice Detail'!$S$5:$S$913)
(both of the above were adjusted re: your initial issue also - when applying a FIND in this manner it's often a good idea to append the string with the search term so as to avoid possibility of error being generated (eg were B75 just equalled GLOBAL SHARED SERVICES - no Total)
If you wanted to you could also replace:
*('Invoice Detail'!$H$5:$H$913>60)*('Invoice Detail'!$H$5:$H$913<=90)
with
*(CEILING('Invoice Detail'!$H$5:$H$913,30)=90)
Bookmarks