ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Sum? (https://www.excelbanter.com/excel-worksheet-functions/203625-conditional-sum.html)

PaulinaDi

Conditional Sum?
 
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.

Bob Umlas[_2_]

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

"PaulinaDi" wrote in message
...
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.




PaulinaDi

Conditional Sum?
 
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?



All times are GMT +1. The time now is 06:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com