Hi!
I am trying to do a Sumifs OR formula but list the criteria array in a singe cell for easy reference.
For Example, here for Rep A, I would like to show the value for USA or Mexico, and Rep B the value for Mexico Only while being able to easily update the Territory column without having to edit the formula directly. But, when referencing E2 here, it adds quotation marks so the formula being evaluated is =SUM(SUMIFS(B:B,A:A,"{""USA"",""Mexico""}"))
Is there a way to reference cell E2, without excel adding quotations marks? or another way to list the array criteria in a separate cell for the formula to reference?
I am trying to do a Sumifs OR formula but list the criteria array in a singe cell for easy reference.
For Example, here for Rep A, I would like to show the value for USA or Mexico, and Rep B the value for Mexico Only while being able to easily update the Territory column without having to edit the formula directly. But, when referencing E2 here, it adds quotation marks so the formula being evaluated is =SUM(SUMIFS(B:B,A:A,"{""USA"",""Mexico""}"))
Is there a way to reference cell E2, without excel adding quotations marks? or another way to list the array criteria in a separate cell for the formula to reference?
Rep | Territory | Value | |||
Territory | Value | A | {"USA","Mexico"} | =SUM(SUMIFS(B:B,A:A,E2)) | |
USA | 100 | B | {"Canada"} | =SUM(SUMIFS(B:B,A:A,E3)) | |
Mexico | 200 | C | {"USA","CANADA"} | =SUM(SUMIFS(B:B,A:A,E4)) | |
Canada | 300 | ||||
USA | 400 | ||||
Mexico | 500 | ||||
Canada | 600 | ||||