Sumproduct or not?

anogueira

New Member
Joined
Jan 25, 2005
Messages
7
Hi,

I am using sumproduct to get sales by product by manager by month like this:


Manager, Product, Jan05, Feb05...Dec05
A A 30 40 50
D Z 0 15 40

and I am doing this sumproduct((A10:A100=Manager)*(B10:B100=Product)*(C10:C100), and this works for january, but what if I want to do it for Feb05, or other month automaticly? Should I use sumproduct?

Thanks.

Antonio
 
anogueira said:
Aladin, Jan05 are true dates.
...
Book7
ABCDE
1ManagerProductJan05Feb05Mar05
2AA304050
3DZ01540
4AA455550
5
6Month/YearManagerProductTotal
7Jan05AA75
8
Sheet1


D7:

=SUMPRODUCT(--($A$2:$A$4=B7),--($B$2:$B$4=C7),INDEX($C$2:$E$4,0,MATCH(A7,$C$1:$E$1,0)))

If so desired, A7 to C7 can be choices from dropdown lists.
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,215,432
Messages
6,124,858
Members
449,194
Latest member
HellScout

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