Hello everyone,
I've got a sumproduct formula that is pulling from a large array of data. I paste an updated table of data weekly which sometimes has a varying number of rows. In the past I have had no issue with this scenerio because I can have the forumla range from row 1:10,000 or some row number that I feel will never be reached, but my current formula is not working. I have to manually change the array range (underlined below) to match the actual size of the data array. An example is if I have 1,000 rows, the underlined number would be 1,000. If it only had 999 lines of data next time I update, the size has to be changed to something <=999 or it will error.
=IF($C9="","",IF(ISERROR(SUMPRODUCT((Exhibit!$A$2:$A$1121="BC")*(Exhibit!$H$2:$H$1121=$C9)*(Exhibit!$AA$2:$AA$1121))/(COUNTIFS(Exhibit!$A$2:$A$1121,"BC",Exhibit!$H$2:$H$1121,$C9))),0,SUMPRODUCT((Exhibit!$A$2:$A$1121="BC")*(Exhibit!$H$2:$H$1121=$C9)*(Exhibit!$AA$2:$AA$1121))/(COUNTIFS(Exhibit!$A$2:$A$1121,"BC",Exhibit!$H$2:$H$1121,$C9))))
Here is a clean version of the sumproduct as I have confirmed the countifs is working fine regardless:
=SUMPRODUCT((Exhibit!$A$2:$A$1121="BC")*(Exhibit!$H$2:$H$1121=$C9)*(Exhibit!$AA$2:$AA$1121))
Data in columns is as follows:
Column A - word that is blank if the row has no data and not formula based
Column H - same as column A, but is a number
Column AA - Forumla that returns "" if column A=""
I'm not sure what is wrong, normally I put in a large range with blank data and it is fine. Any help is greatly appreciated.
Thanks,
I've got a sumproduct formula that is pulling from a large array of data. I paste an updated table of data weekly which sometimes has a varying number of rows. In the past I have had no issue with this scenerio because I can have the forumla range from row 1:10,000 or some row number that I feel will never be reached, but my current formula is not working. I have to manually change the array range (underlined below) to match the actual size of the data array. An example is if I have 1,000 rows, the underlined number would be 1,000. If it only had 999 lines of data next time I update, the size has to be changed to something <=999 or it will error.
=IF($C9="","",IF(ISERROR(SUMPRODUCT((Exhibit!$A$2:$A$1121="BC")*(Exhibit!$H$2:$H$1121=$C9)*(Exhibit!$AA$2:$AA$1121))/(COUNTIFS(Exhibit!$A$2:$A$1121,"BC",Exhibit!$H$2:$H$1121,$C9))),0,SUMPRODUCT((Exhibit!$A$2:$A$1121="BC")*(Exhibit!$H$2:$H$1121=$C9)*(Exhibit!$AA$2:$AA$1121))/(COUNTIFS(Exhibit!$A$2:$A$1121,"BC",Exhibit!$H$2:$H$1121,$C9))))
Here is a clean version of the sumproduct as I have confirmed the countifs is working fine regardless:
=SUMPRODUCT((Exhibit!$A$2:$A$1121="BC")*(Exhibit!$H$2:$H$1121=$C9)*(Exhibit!$AA$2:$AA$1121))
Data in columns is as follows:
Column A - word that is blank if the row has no data and not formula based
Column H - same as column A, but is a number
Column AA - Forumla that returns "" if column A=""
I'm not sure what is wrong, normally I put in a large range with blank data and it is fine. Any help is greatly appreciated.
Thanks,