Multiple Sumproduct equation

Hoosier03

Board Regular
Joined
Apr 29, 2011
Messages
121
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.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Your question is very vague.

Is AOP Query and Actual Query identical in format? If so, whatever you have in C8 is being looked up in column G on AOP Query and column H on Actual Data? Should they be the same column?

Just a place to start.

Jeff
 
Upvote 0
The column lookups are correct. I figured out half of my problem was that the end of the equation was referencing the AOP query when it should have been referencing the Actual query, but it is still not right.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top