Grumpy88
Member
Hi.
I have a current SUMPRODUCT formula in a spreadsheet that is working adequately, but due to also being nested in a series of IF formulas, it is cumbersome and not very flexible. I now wish to amend it to incorporate new selection criteria, but have run into issues with the number of characters contained in the formula (which should tell you something about how long and complex it already is!)
My issue is therefore to find a way of shortening the formula while obviously also retaining all of its functionality. The only area where I can see that shortening is possible though, is a range of 20 cells (two rows of ten columns each - cells G1 to P2) that are addressed in the SUMPRODUCT formula. This range exists for optional user entries, such that any number may be completed as part of the criteria that the SUMPRODUCT formula must take into account, but some cells in that range will probably remain blank (not all 20 need be used).
So much for the background. My SUMPRODUCT formula currently addresses each of those 20 cells individually, which takes up a lot of characters. See the following extract: --((Matches[Season]=$G$1)+(Matches[Season]=$H$1)+(Matches[Season]=$I$1)+(Matches[Season]=$J$1)+(Matches[Season]=$K$1)+(Matches[Season]=$L$1)+(Matches[Season]=$M$1)+(Matches[Season]=$N$1)+(Matches[Season]=$O$1)+(Matches[Season]=$P$1)+(Matches[Season]=$G$2)+(Matches[Season]=$H$2)+(Matches[Season]=$I$2)+(Matches[Season]=$J$2)+(Matches[Season]=$K$2)+(Matches[Season]=$L$2)+(Matches[Season]=$M$2)+(Matches[Season]=$N$2)+(Matches[Season]=$O$2)+(Matches[Season]=$P$2))
Is there a way to shorten this effectively and save on characters that I can use to incorporate the new selection criteria that I want to add? I have tried --((Matches[Season]=$G$1:$P$2)), but it doesn't seem to produce reliable results - I start getting #N/A formula errors. Does anyone have any advice?
Thanks!
I have a current SUMPRODUCT formula in a spreadsheet that is working adequately, but due to also being nested in a series of IF formulas, it is cumbersome and not very flexible. I now wish to amend it to incorporate new selection criteria, but have run into issues with the number of characters contained in the formula (which should tell you something about how long and complex it already is!)
My issue is therefore to find a way of shortening the formula while obviously also retaining all of its functionality. The only area where I can see that shortening is possible though, is a range of 20 cells (two rows of ten columns each - cells G1 to P2) that are addressed in the SUMPRODUCT formula. This range exists for optional user entries, such that any number may be completed as part of the criteria that the SUMPRODUCT formula must take into account, but some cells in that range will probably remain blank (not all 20 need be used).
So much for the background. My SUMPRODUCT formula currently addresses each of those 20 cells individually, which takes up a lot of characters. See the following extract: --((Matches[Season]=$G$1)+(Matches[Season]=$H$1)+(Matches[Season]=$I$1)+(Matches[Season]=$J$1)+(Matches[Season]=$K$1)+(Matches[Season]=$L$1)+(Matches[Season]=$M$1)+(Matches[Season]=$N$1)+(Matches[Season]=$O$1)+(Matches[Season]=$P$1)+(Matches[Season]=$G$2)+(Matches[Season]=$H$2)+(Matches[Season]=$I$2)+(Matches[Season]=$J$2)+(Matches[Season]=$K$2)+(Matches[Season]=$L$2)+(Matches[Season]=$M$2)+(Matches[Season]=$N$2)+(Matches[Season]=$O$2)+(Matches[Season]=$P$2))
Is there a way to shorten this effectively and save on characters that I can use to incorporate the new selection criteria that I want to add? I have tried --((Matches[Season]=$G$1:$P$2)), but it doesn't seem to produce reliable results - I start getting #N/A formula errors. Does anyone have any advice?
Thanks!