Conditional Sum?

P

PaulinaDi

I have a spreadsheet with different columns regarding all the invoices a
certain supplier has given to my company.
I have 15 columns and 3 of them are the ones I am trying to use to get a
specific SUM Total with different criteria.
One column contains the total amount of each invoice named MONTO. The second
column contanis the discount used for that invoice named DESC and the third
one contains the currency used for each invoice named MONEDA.
I have info from A12 to C400 and I want to get all those invoices that are
more than 0.00 pesos (as I have negative data), that has 2% on the DESC
column and has the MXN option on the MONEDA column.
What formula should I use? I have been trying the SUMIF, IF, AND and the
combination of them and I haven't get anything.
 
B

Bob Umlas

If your pesos are in A, DESC is in B, and names are in C:
=SUMPRODUCT(N(A2:A400>0),N(B2:B400=.02),N(C2:C400="MONEDA"),A2:A400)
will add the pesos meeting the condition.
HTH
Bob Umlas
Excel MVP
 
P

PaulinaDi

Bob:

You are a genious. I just really want to thank you this very very fast
answer. It was just what I needed. WOW! I had been looking the correct
formula for more than 2 hours and now I've got it. Very thanks.

I just have a question in order to understand it: what does the "N" makes
with the values?
 

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


Top