I have the following formula:
SUMPRODUCT((Chart!$J$2:$BE$1000=H$2)*(Chart!$A$2:$A$1000=$A3)*(Chart!$C$2:$C$1000="FE")*(Chart!$H$2:$H$1000="YES")*(Chart!$G$2:$G$1000))
In which:
(Chart!$J$2:$BE$1000=H$2)
: Looks for a specific month in a range of columns.(Chart!$A$2:$A$1000=$A3)
: Looks for a specific monicker for clients in one column.(Chart!$C$2:$C$1000="FE")
: Looks for a specific monicker for transactions in one column.(Chart!$H$2:$H$1000="YES")
: Looks for transactions that are going to be renewed, in one column.(Chart!$G$2:$G$1000)
: These are the ammounts to be summed.
The formula works rather well, but I need to be able to sum a range of columns, not just G2:G1000
. Instead of G2:G1000
I need to sum values in the column range $J$2:$EBE$1000
, in columns that in their header have a specific name (namely MONTHLY_VOLUME
).
I've tried these two formulae:
SUMPRODUCT((Chart!$J$2:$BE$1000=H$2)*(Chart!$A$2:$A$1000=$A3)*(Chart!$C$2:$C$1000="FE")*(Chart!$H$2:$H$1000="YES")*SUMIF(Chart!$J$1:$BE$1," * MONTHLY_VOLUME * ",Chart!$J$2:$BE$1000))
and
SUMPRODUCT((Chart!$J$2:$BE$1000=H$2)*(Chart!$A$2:$A$1000=$A3)*(Chart!$C$2:$C$1000="FE")*(Chart!$HD$2:$H$1000="YES")*INDEX(Chart!$J$2:$BE$1000,,MATCH(" * MONTHLY_VOLUME * ",Chart!$J$1:$BE$1,0)))
Both formulae give me the same results, but the results are wrong. The values are far too high, and I'm guessing it happens because the last part of both formuale, be it the SUMIF
or the INDEX
lack some parameter to make it so that they work with the previous criteria, rather than just grabbing everything.
So, is this actually doable? If it is, how can I change these formulae to make it work?
Here's the worksheet: https://drive.google.com/file/d/1cMZaKJIMam7NZOr-6LL8OdLwXJTZ2bco/view?usp=sharing
Chart!$J$2:$BE$1000=H$2
if H2 is Yes,, then what is the use ofChart!$H$2:$H$1000="YES"
??Chart!$J$2:$BE$1000=H$2
refers to the H2 cell in the "FE RENEWAL" tab, that hasOCTOBER 2020
as value. The purpose of that part is to find all operations getting renewed in October 2020. On the other hand the purpose ofChart!$H$2:$H$1000="YES"
is to find all the operations that will get renewed. Right now all of them say "YES", but next week I'll be having meeting with the salespeople to see which ones will get renewed and which ones won't, so starting next week some of them will say "NO".