Does EOMONTH work with array formule?

thorpyuk

Well-known Member
Joined
Mar 14, 2006
Messages
1,453
Hi All,
I have a formula that works perfectly well, but it's a little sluggish:

Code:
={SUM(IF(MONTH('Entries'!$C$2:$C$50000)=MONTH(L$34),IF(YEAR('Entries'!$C$2:$C$50000)=YEAR(L$34),'Entries'!$H$2:$H$50000,0),0))}

I thought i might use EOMONTH to speed up rather than evaluating the date twice... it's essentially looking for invoices in a single month matching the month in cell L34.. but so far it doesn't seem to want to play.

If anyone has any ideas to speed it up another way i'd be grateful!

Thanks :)
 
Last edited:

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi, is this any better?

Code:
=SUMIFS(Entries!$H$2:$H$50000,Entries!$C$2:$C$50000,">="&EOMONTH(L$34,-1)+1,Entries!$C$2:$C$50000,"<"&EOMONTH(L34,0)+1)
 
Upvote 0
Control+shift+enter, not just enter:

=SUM(IF('Entries'!$C$2:$C$50000-DAY('Entries'!$C$2:$C$50000)+1=EOMONTH(L$34,-1)+1,'Entries'!$H$2:$H$50000))

Or just...

=SUMIFS('Entries'!$H$2:$H$50000,'Entries'!$C$2:$C$50000,">="&EOMONTH(L$34,-1)+1,'Entries'!$C$2:$C$50000,"<="&EOMONTH(L$34))
 
Upvote 0
Thanks both, those SUMIFS seem to be working great... i'll test the speeds later. If only there was a function to evaluate spreadsheet formula speed!
Thanks
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,690
Members
449,092
Latest member
snoom82

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