Injecting a VAR (variance) calculation in a Sumproduct formula

Ron0813

New Member
Joined
Oct 9, 2019
Messages
5
Hi All -

Sort of a conceptual question here but if anyone has thoughts/advice it may save me some time.

I'm using the Sumproduct formula below to filter a table for certain rows (base on values from a lookup table), make a calculation, and then sum the results. Typical stuff for Sumproduct.

=SUMPRODUCT(Test_Data_Sales_Price_Per_Unit,Test_Data_Quantity,--(LOOKUP(Test_Data_Item_Code,Master_Data_Item_Code,Master_Data_Category)="A"))

What I'm trying to do now is calculate a variance on the values calculated by Sumproduct before the sum is done. I'm wondering if there is a way to insert a VAR formula at some point to operate on those values. Or possibly save them and then feed them to VAR.

Hope this makes sense and appreciate any thoughts.

Thanks!
 

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.
If the output of the VAR function is (or can be) an array, then in theory it can be done.
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,973
Members
452,540
Latest member
haasro02

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