sumproduct or sumif I need help, Thank you

E

Eduardo

In sheet 1, I have column A with accounts #, Column B amounts

Account # Amount
44000-100 10
45000-150 15
46000-100 10
46000-101 5
In Sheet 2, I have different departments with allocation of the accounts #
Column A Column B
Departmet A Department B
44000-100 45000-150
46000-101 46000-100

Sheet 2, will be updated continuosly, with new accounts or moving accounts
from 1 department to another or adding new departments
What I need to do is in Sheet 1 to have a summary by departmet as follow

Department A: 15

Department B: 25

I have tried giving a name to column A and B in Sheet 2, but I was not able
to get any results.
Thank you in advance for your response
 
S

Stefi

Department A:
=SUMPRODUCT(--(NOT(ISERROR(MATCH($A$2:$A$5,Sheet2!$A:$A,0)))),$B$2:$B$5)

Department B:
=SUMPRODUCT(--(NOT(ISERROR(MATCH($A$2:$A$5,Sheet2!$B:$B,0)))),$B$2:$B$5)

Regards,
Stefi

„Eduardo†ezt írta:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

IF or SUMIF to bring back text? 1
sumproduct or sumif? 3
sumif with multiply-rks 7
Help with Merge 8
Average if questions 2
Formula Help 2
lookup functions 1
Complicated Formula 5

Top