Trying to calculate quarterly margin using SUMPRODUCT but getting DIV error

jlawrence

New Member
Joined
Jan 27, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I am trying to calculate a quarterly profit margin percentage using the formula =(SUMPRODUCT(('PL Updated'!$AZ$8:$CI$38*('PL Updated'!$AZ$7:$CI$7=$AR$1))*('PL Updated'!$C$8:$C$38=$B6))-(SUMPRODUCT(('PL Updated'!$AZ$43:$CI$65*('PL Updated'!$AZ$7:$CI$7=$AR$1))*('PL Updated'!$C$43:$C$65=$B6))))/SUMPRODUCT(('PL Updated'!$AZ$8:$CI$38*('PL Updated'!$AZ$7:$CI$7=$AR$1))*('PL Updated'!$C$8:$C$38=$B6)) but it is giving me a DIV error. The formula was working for a monthly basis with =(SUMPRODUCT(('PL Updated'!$AZ$8:$CI$38*('PL Updated'!$AZ$7:$CI$7=$C$1))*('PL Updated'!$C$8:$C$38=$B6))-(SUMPRODUCT(('PL Updated'!$AZ$43:$CI$65*('PL Updated'!$AZ$7:$CI$7=$AK$1))*('PL Updated'!$C$43:$C$65=$B6))))/SUMPRODUCT(('PL Updated'!$AZ$8:$CI$38*('PL Updated'!$AZ$7:$CI$7=$C$1))*('PL Updated'!$C$8:$C$38=$B6)). The month in this formula is C1 and AK1 (which is the same as C1). The quarter which is suppose to reference three columns on the different sheet is AR1. B6 is the brand which should stay the same. Am I using SUMPRODUCT wrong in the quarter instance? Thanks in advance!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
It is not possible to diagnose this without knowing what data is where and values you are dealing with.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,199
Members
449,072
Latest member
DW Draft

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