SUMPRODUCT issue with Dates

Sufiyan97

Well-known Member
Joined
Apr 12, 2019
Messages
1,538
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
I know I am making some mistake in the formula

I want result for only January which should be 5, but it gives result 44 for entire range

Book3
ABCDEFGHIJKLM
1
21/1/20221/2/20222/2/20223/2/20224/2/20225/2/20226/2/20227/2/2022
3Income2345678944
4Expenses12345678
5
6
7
8
Sheet1
Cell Formulas
RangeFormula
E2:J2E2=EDATE(D2,1)
D3:J4D3=C3+1
L3L3=SUMPRODUCT(($C$2:$J$2&"&">="&01/01/2022)*($C$2:$J$2&"&"<="&1/31/2022)*($A$3:$A$4="Income")*(C3:J4))
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Some how I got it solved by myself, thanks everyone who tried to solve it.

Book3
ABCDEFGHIJKLM
1
21/1/20221/2/20222/2/20223/2/20224/2/20225/2/20226/2/20227/2/2022Jan Total Income
3Income234567895
4Expenses12345678
5
6
Sheet1
Cell Formulas
RangeFormula
E2:J2E2=EDATE(D2,1)
D3:J4D3=C3+1
L3L3=SUMPRODUCT(($C$2:$J$2>=DATE(2022,1,1))*($C$2:$J$2<=DATE(2022,1,31))*($A$3:$A$4="Income")*(C3:J4))
 
Upvote 0
How about
Excel Formula:
=SUMPRODUCT(($C$2:$J$2>=DATE(2022,1,1))*($C$2:$J$2<=DATE(2022,1,31))*($A$3:$A$4="Income")*(C3:J4))
 
Upvote 0
Solution
Thank you very much Fluff, working perfectly
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,958
Members
449,200
Latest member
indiansth

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