SUMIF

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello,
i want make sum, if A_col=CAT B_col=RAT

A_col B_col C_col
CAT RAT 200
APPEL MILK 100

Thanks
 
Hi

Don't quite know why this is in programming, but here goes:
=SUMPRODUCT((A2:A50="CAT")*(B2:B50="RAT")*(C2:C50))

Hope this helps.
Andy.
 
Tufail said:
hello,
i want make sum, if A_col=CAT B_col=RAT

A_col B_col C_col
CAT RAT 200
APPEL MILK 100

Thanks

Use =SUMPRODUCT for multi-criteria. See
http://www.xldynamic.com/source/xld.SUMPRODUCT.html.

Your formula will be something like

=SUMPRODUCT((A_col="CAT")*(B_col="RAT")*C_col) where A_col, B_col etc are
range names for the data ranges in cols A, B etc. They can be the entire
column, if you want. However, these column ranges MUST refer to the same
rows, otherwise SUMPRODUCT will throw up an error.
 
yes now working, really thank you very much.

Andy said:
Hi

Don't quite know why this is in programming, but here goes:
=SUMPRODUCT((A2:A50="CAT")*(B2:B50="RAT")*(C2:C50))

Hope this helps.
Andy.
 

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

DATE 2
MACRO every 2nd Coulm want delete in selection 1
DATE & MONTH minus ? 5
Conditional Formula 3
countif 2
two way vlookup 2
Match two row numric 4
duplicate data 1

Back
Top