Sumproduct, external range lookup

umplebyuk

New Member
Joined
Apr 22, 2010
Messages
26
Good morning,

I have a list of sales with categories, is there a way I can use sumproduct to sum sales based on an external list of categories however some categories I want to add in and some I want to deduct. The below fall under a category for example of Net Fruit;

Apples +1,
Pears +1,
Orange -1

Result would be Apple + Pear - Orange

If am currently using SUM(SUMIFS(Sales_TY[Period1],Sales_TY[Sales Category],IF(Table_Lookups_PandL_Wording[P&L Wording]=$A86,Table_Lookups_PandL_Wording[Sales Category]))) as an array formula which works to sum all but does not factor in the -1 Orange element, it just sums it (Where $A86 = "Net Fruit")

Thank yuo in advance,
James
 
Last edited:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
If you want to deduct then you need 2 parts to the formula, something like
Excel Formula:
=SUM(SUMIFS(sum range, criteria range, + criteria))-SUM(SUMIFS(sum range, criteria range, - criteria))
Having said that, your question is of the type that is open to misinterpretation without a visual representation of the data (XL2BB please, not screen captures) :)
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,729
Members
449,049
Latest member
MiguekHeka

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