Sumproduct Help

charlesloves2read

Board Regular
Joined
Aug 11, 2010
Messages
55
Office Version
  1. 365
Platform
  1. Windows
Hi,

In Column A, I have two customers, A and B.
In Column B, I have 4 factory locations, North, South, East, West.
In Column C, I have Revenue.

How do i use Sumproduct to obtain the Total Revenue for Customer A in Factory Location North AND South.

I only know how to obtain Total Revenue for Customer A in ONE Factory Location.

Thanks!

This is a simplified example of an exercise i am supposed to do at work.
 
Is the match syntax wrong? It says lookupvalue first before lookuparray but your is the other way around
No, the MATCH syntax is correct.

Book1
ABCDEF
2BWest52_Formula 1Formula 2
3BSouth80_338338
4ANorth38___
5BWest15___
6BEast18___
7BSouth17___
8ANorth46___
9BSouth36___
10BSouth11___
11ASouth98___
12BEast91___
13BEast18___
14BNorth26___
15ASouth56___
16BSouth53___
17AWest68___
18ASouth45___
19ASouth55___
20BSouth8___
Sheet1

Formula 1:

=SUMPRODUCT(--(A2:A20="A"),--(ISNUMBER(MATCH(B2:B20,{"North","South"},0))),C2:C20)

Formula 2:

=SUMPRODUCT(--(A2:A20="A"),--(RIGHT(B2:B20,2)="th"),C2:C20)
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
No, the MATCH syntax is correct.

Book1
*ABCDEF
2BWest52_Formula 1Formula 2
3BSouth80_338338
4ANorth38___
5BWest15___
6BEast18___
7BSouth17___
8ANorth46___
9BSouth36___
10BSouth11___
11ASouth98___
12BEast91___
13BEast18___
14BNorth26___
15ASouth56___
16BSouth53___
17AWest68___
18ASouth45___
19ASouth55___
20BSouth8___
Sheet1

Formula 1:

=SUMPRODUCT(--(A2:A20="A"),--(ISNUMBER(MATCH(B2:B20,{"North","South"},0))),C2:C20)

Formula 2:

=SUMPRODUCT(--(A2:A20="A"),--(RIGHT(B2:B20,2)="th"),C2:C20)

Hmmm.... okay How can I get the curly bracket out? I am manually keying it in. and it is only taking the "North" values
 
Upvote 0
Hmmm.... okay How can I get the curly bracket out? I am manually keying it in. and it is only taking the "North" values
We need the squiggly brackets. They define an array constant.

I'm not sure what you mean by: it is only taking the "North" values.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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