Is it possible to embed an if-then-else statement into a sumproduct function? For example: will this work:
=Sumproduct((table1[Location]=$A$1)*(table1[ProductType]=$A$2)*(if(table1[Period]="Qtr1",1,0))*(table1[extension]))
I have tried it and it just basically "ignores" the period parameters. Any ideas on a work-around. One I thought of is to have different columns in my table for the Q1 amounts, Q2 amounts, etc and then pull from the different Extension columns to get the right stuff. But I was hoping to avoid that extra overhead. Ideas?
=Sumproduct((table1[Location]=$A$1)*(table1[ProductType]=$A$2)*(if(table1[Period]="Qtr1",1,0))*(table1[extension]))
I have tried it and it just basically "ignores" the period parameters. Any ideas on a work-around. One I thought of is to have different columns in my table for the Q1 amounts, Q2 amounts, etc and then pull from the different Extension columns to get the right stuff. But I was hoping to avoid that extra overhead. Ideas?
Last edited: