So, you may find below variant will work as-is, pending data type in F (assumed to be numbers where numeric value)
Formula:
=SUMPRODUCT((('QO'!$J$12:J500="SQ")*(TEXT('QO'!$E$12:E500,"yyyymm")=TEXT(TODAY(),"yyyymm"))),'QO'!$F$12:F500)
that being said, it is always a good idea when using SUMPRODUCT to limit your range as much as possible, even more so when used in conjunction with Volatile functions [like TODAY() ]
If we assume Column J is always Text then I would suggest you create a Dynamic Named Range a) to avoid repetition in your calc, and b) succinctness... so, via Name Manager create following:
Formula:
Name: =_Data
RefersTo: ='QO'!$A$12:INDEX('QO'!$J:$J,MAX(12,MATCH(REPT("Z",255),'QO'!$J:$J)))
then, modify SUMPRODUCT to:
Formula:
=SUMPRODUCT(((INDEX(_Data,0,10)="SQ")*(TEXT(INDEX(_Data,0,5),"yyyymm")=TEXT(TODAY(),"yyyymm"))),INDEX(_Data,0,6))
the _Data range will expand / contract relative to last text entry found in Column J on 'QO' sheet
Bookmarks