array formula or sum-product?

kruiser

New Member
Joined
Apr 9, 2007
Messages
48
Appears to be something very basic, but I am stumped.

Sorry, can't use html uploader here at work, so will try to keep it as clear and concise as i can.

This is the data I have -

Fruit ; Store ; July_sales
Apples ; 111 ; 20
Oranges ; 222 ; 30
bananas ; 333 ; 40
peaches ; 112 ; 50
Grapes ; 223 ; 60
Pineapple ; 223 ; 70

On a separate sheet, have defined the chains as (I have named these ranges as chain1, chain2 etc)-

chain1 ; chain2 ; chain3
111 ; 222 ; 333
112 ; 223 ;

I simply want to find out the total monthly sales for each chain. Should have the flexibility to add or remove stores to a chain. Need sales for each month separately.

Tried difefrent combinations of sumproduct and array formulas but getting stumped at how to match the condition for second (or third, fourth) store in the chain.

Thanks for any help/ nudge in the right direction.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
A PivotTable makes this very easy. Is it possible for you to alter the data to generate the chain in the data list? Like this:

Excel Workbook
ABCDEFG
1FruitStoreJuly_salesChain*StoreChain
2Apples11120chain1*111chain1
3Oranges22230chain2*112chain1
4bananas33340chain3*222chain2
5peaches11250chain1*223chain2
6Grapes22360chain2*333chain3
7Pineapple22370chain2***
8*******
9*******
10*******
11Sum of July_sales******
12ChainTotal*****
13chain170*****
14chain2160*****
15chain340*****
16Grand Total270*****
Sheet21


That's a PivotTable starting at A11 by the way.
 
Upvote 0
Thank you Glenn. I added a working column for the chain along with the data and then it became very easy.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

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