ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Exclude $ Amount from sum based on how many months its been (https://www.excelbanter.com/excel-worksheet-functions/200768-exclude-%24-amount-sum-based-how-many-months-its-been.html)

Vercingetorix.XIII[_2_]

Exclude $ Amount from sum based on how many months its been
 
I need a formulas to exclude $$ Amounts from sumif based on how many months
its been in service, example current formulas is:=SUMIF(M4:M23,"JJ",J4:J23)
but I need it to check another column and if it has been over 9 months,
exclude that figure from the total. Any ideas???? I appreciate all the help I
have been getting here.

smartin

Exclude $ Amount from sum based on how many months its been
 
Vercingetorix.XIII wrote:
I need a formulas to exclude $$ Amounts from sumif based on how many months
its been in service, example current formulas is:=SUMIF(M4:M23,"JJ",J4:J23)
but I need it to check another column and if it has been over 9 months,
exclude that figure from the total. Any ideas???? I appreciate all the help I
have been getting here.


Hello,

With two or more criteria it is often easier to use SUMPRODUCT. I put
dates to check in N4:N8 and applied this formula:

=SUMPRODUCT(--(M4:M8="JJ"),--(N4:N8TODAY()-274),(J4:J8))

"274" is an approximation for 9 months, but might be close enough for
your needs.


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

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