Need help about function

Y

yguan

I'm using excel 2003 and i need help about the function or formula on my
monthly sale breakdown. I have 3 client table in a same sheet.Where show
date,item,code and weight.I need to count total of weight where all same item
and date in a different table.

Example

Client A
Date Code Item Weight(KG)
1/2 xxxx PA 1000
2/2 xxxx PH 1300
3/2 xxxx PA 2300
4/2 xxxx PA 4300

Client B
Date Code Item Weight(KG)
1/2 xxxx PH 1600
2/2 xxxx PH 1000
5/2 xxxx PA 2800
7/2 xxxx PH 1000

Client C
Date Code Item Weight(KG)
1/2 xxxx PA 4000
2/2 xxxx PH 7300
3/2 xxxx PA 8300
6/2 xxxx PH 4300

Example what i need

Date Item Weight(KG)
1/2 PA ????
2/2 PA ????
3/2 PA ????
4/2 PA ????
 
P

Per Jessen

Hi

With your data in A1 and down, use this formula in C25 and copy it
down:

=SUMPRODUCT(--($A$3:$A$20=A25),--($C$3:$C$20=B25),$D$3:$D$20)

Use a SUM function to get the Total.

Hopes it helps.

Regards,
Per
 
S

Shane Devenshire

Hi,

If table 1, 2, and 3 are directly above each other then you can use
something like:

=SUMPRODUCT(--(A25=A$3:A$20),--(B25=C$3:C$20),D$3:D$20)

Where A25 is the date and B25 is the Item you want to sum the weight for.

However if they are not situated in this fortuitous layout you will need to
use a longer version:

=SUMPRODUCT(--(A25=A$3:A$6),--(B25=C$3:C$6),D$3:D$6)+SUMPRODUCT(--(A25=$A$10:$A$13),--(B25=$C$10:$C$13),$D$10:$D$13)+SUMPRODUCT(--(A25=$A$17:$A$20),--(B25=$C$17:$C$20),$D$17:$D$20)
 

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

Top