Hi all,
I'm trying to build a sum(sumifs( array formula which will sum multiple criteria from one column as well as criteria from a few other columns.
The problem i'm facing is that i want to be able to pick up different amounts of criteria from that one column.
IE if a cell is equal to Q3, sumif ({"Q1","Q2","Q3"), but if its equal to Q2 then sumif("Q1","Q2")
To make the formula more efficient i have down an index match in another cell to determine how many criteria i want to pick up, however when i then reference the cell in my sum(sumif formula it returns it as a text string
ie sumif( "{"Q1,"Q2","Q3"}") the big speech marks are what is causing the problem as the sumif is then looking for that as text rather than looking for the multiple criteria within it.
Here's my full formula for reference.
=-SUM(SUMIFS(Data!$Ak:$Ak,Data!$I:$I,BZ$4,Data!$J:$J,BZ$7,Data!$K:$K,BZ$5,Data!$F:$F,$B44,Data!$E:$E,BZ$10))
in BZ$10 is {"Q0","RFQ1F","RFQ1A","RFQ2F","RFQ2A","RFQ3F"}
Any help would be gratefully appreciated!
I'm trying to build a sum(sumifs( array formula which will sum multiple criteria from one column as well as criteria from a few other columns.
The problem i'm facing is that i want to be able to pick up different amounts of criteria from that one column.
IE if a cell is equal to Q3, sumif ({"Q1","Q2","Q3"), but if its equal to Q2 then sumif("Q1","Q2")
To make the formula more efficient i have down an index match in another cell to determine how many criteria i want to pick up, however when i then reference the cell in my sum(sumif formula it returns it as a text string
ie sumif( "{"Q1,"Q2","Q3"}") the big speech marks are what is causing the problem as the sumif is then looking for that as text rather than looking for the multiple criteria within it.
Here's my full formula for reference.
=-SUM(SUMIFS(Data!$Ak:$Ak,Data!$I:$I,BZ$4,Data!$J:$J,BZ$7,Data!$K:$K,BZ$5,Data!$F:$F,$B44,Data!$E:$E,BZ$10))
in BZ$10 is {"Q0","RFQ1F","RFQ1A","RFQ2F","RFQ2A","RFQ3F"}
Any help would be gratefully appreciated!