I am using excel 2007. This is my equation that is not working and I cannot figure out why. It returns a number, but the number is not correct.
=IF(E$4="f",SUMPRODUCT(('AOP Query'!$G$22:$G$440=$C8)*('AOP Query'!$BI$22:$BL$440)),SUMPRODUCT(('Actual Query'!$H$22:$H$440=$C8)*('AOP Query'!$BJ$22:$BM$440)))
What I am trying to do is if E$4 equals "F" to add data from one worksheet (AOP query). If it does not I would like to add it from another worksheet (Actual query). I know the first part of the equation is right because I used it successfully in a different worksheet.
Thanks for your help.
=IF(E$4="f",SUMPRODUCT(('AOP Query'!$G$22:$G$440=$C8)*('AOP Query'!$BI$22:$BL$440)),SUMPRODUCT(('Actual Query'!$H$22:$H$440=$C8)*('AOP Query'!$BJ$22:$BM$440)))
What I am trying to do is if E$4 equals "F" to add data from one worksheet (AOP query). If it does not I would like to add it from another worksheet (Actual query). I know the first part of the equation is right because I used it successfully in a different worksheet.
Thanks for your help.