sumifs WITH eom DOESN'T WORK

ChetanPuri

Board Regular
Joined
Sep 5, 2018
Messages
60
Office Version
  1. 365
Platform
  1. Windows
Hello Excel Gurus,

Just need a favour wondering why my sumifs with EOM doesn't work. Any help would be greatly appreciated.

Book8
ABCDEFGHIJK
1
2Start Dat Sum Of values31-Jan-1928/02/2019Mar
3000
4
5
6
7
86-Jan-1917-Jan-1915-Feb-1923-Jan-1917-Feb-1923-Mar-1910-Jan-1925-Feb-19
965554688327521602404386666495763
10
Sheet1
Cell Formulas
RangeFormula
D3:F3D3=SUMIFS($B$9:$I$9,$B$8:$I$8,">="&D2,$B$8:$I$8,"<="&EOMONTH(D2,0))
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Because your dates in D2 and E2 are already the end of the month. So in D3 it's adding anything between 1/31/19 and 1/31/19, which is nothing. Change the date in D2 to 1/1/2019 and you'll get a value. In F2, it's not even a date, just a text month.
 
Upvote 0
the formula has no problem the problem is the date range from Jan 31st to the end of Jan is the same, so the SUMIFS formula doesn't sum any values
 
Upvote 0
If you want to keep the row 2 headings as those end-of-month dates, you could alter the SUMIFS formula like this. I'm assuming that D3 should sum values for any date in Jan.

24 03 04.xlsm
BCDEFGHI
1
231-Jan-1928-Feb-1931-Mar-19
320052114423866
4
5
6
7
806-Jan-1917-Jan-1915-Feb-1923-Jan-1917-Feb-1923-Mar-1910-Jan-1925-Feb-19
965554688327521602404386666495763
SUMIFS
Cell Formulas
RangeFormula
D3:F3D3=SUMIFS($B9:$I9,$B$8:$I$8,">"&D$2-DAY(D$2),$B$8:$I$8,"<="&D$2)
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,976
Members
449,095
Latest member
Mr Hughes

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