Multiple conditions

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
280
Office Version
  1. 365
Platform
  1. Windows
Excel 2007.

Column C5 to C84 contain dates in DD-MM-YYYY format
Column D5 to D84 contain amount in Numerical format (Rund nmbers, No digits)
Column E5 to E84 contain dates in DD-MM-YYYY format.

My requirement: I want sum total of amount, where C4:C84 is =>01-4-2018 <=31-03-2019 and
where E5:E84 is => 01-04-2023 <=31-03-2024.

Kindly provide formula to achieve output.
Thank you
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Code:
=sumproduct(d5:d84,--(c5:c84>=date(18,4,1)),--(c5:c84<=date(2019,3,31)),--(e5:e84>=date(23,4,1)),--(e5:e84<=date(2024,3,31)))
 
Upvote 0
I though SUMIFS was introduced after 2007 but looks like it is in 2007. I would SUMIFS rather then SUMPRODUCT.
 
Upvote 0
Thank you for resolving my request.

Now alternatively, I want to improve the SAME database
with helper cells.
Additions:
In addition to my database in C5:E84 as above, I have added
input in Col G5:G84. G5:G84 contain text either "current" "old" and
some cells blank.
H 101 (helper cell) contains date less than H102 in dd-mm-yyyy (one of the dates in C5:C84);
H 102 (helper cell) contains date greater than H101 in dd-mm-yyyy (one of the dates in C5:C84).
H103 (helper cell) contains a text "Current" (one of the text from G5:G84)
Based on the values in helper cells H 101 to H 103, i want sumproduct of D5:D84.
Kindly help.
 
Upvote 0
You can add more conditions to the current SUMPRODUCT formula and SUMIFS formula. Just follow the same format, and keep adding the additional conditions you need.
 
Upvote 0

Forum statistics

Threads
1,215,884
Messages
6,127,563
Members
449,385
Latest member
KMGLarson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top