Sum IF

  • Thread starter Thread starter deen
  • Start date Start date
D

deen

Hi,

Can u pls help me regarding Sum If,

in sheet1 we have code and amt ,

we need result in sheet2 with A2 column reference sum of code value.

In Sheet 1

Code Amt
F001 10
F001 20
F002 40
F001 30
F002 50


We need Result in sheet2 like a,
Code Amt
F001 60
F002 90

Regards

Deen
 
sheet 2

B2: =SUMIF(Sheet1!$A$2:$A$6,Sheet2!A2,Sheet1!$B$2:$B$6)
copy down
 
Assuming code is in Column A and amount is in Column B, on Sheet2 enter
following formulas for the example codes:
=SUMIF(Sheet1!A:B,"F001",Sheet1!B:B)
=SUMIF(Sheet1!A:B,"F002",Sheet1!B:B)
 

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


Back
Top