Maximum End of Month Date Array Formula

ricafonyat

New Member
Joined
May 1, 2017
Messages
29
Office Version
  1. 365
Platform
  1. Windows
What array formula (CTRL SHIFT ENTER) should I use to calculate the largest projected date in cell E2 considering the number of months shown in column B and just referencing columns A and B in the formula?

1719240600573.png


Thanks in advance
Best Regards
 
Can you show what's on your sheet and the formula you entered?
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Try.
Book1
ABCDEFGHIJKLMNOPQR
1Date# Months
21/15/202412Base Date6/1/2024
312/15/20245
41/10/20256Sequence6/30/20247/31/20248/31/20249/30/202410/31/202411/30/202412/31/20241/31/20252/28/20253/31/20254/30/20255/31/20256/30/20257/31/2025
5
Sheet3
Cell Formulas
RangeFormula
E4:R4E4=EOMONTH(E2,SEQUENCE(1,DATEDIF(E2,MAX(EDATE(+A2:A4,+B2:B4)),"m")+1,0))
Dynamic array formulas.

I tried the formula below and it works.

=EOMONTH($E$3;SEQUENCE(1;12*(YEAR(MAX(EOMONTH(+A2:A4;+B2:B4)))-YEAR(MAX(EOMONTH(E3;0))))+MONTH(MAX(EOMONTH(+A2:A4;+B2:B4)))-MONTH(E3)+1;0))
 
Upvote 0
Solution
Another option:

Book2
ABCDEFGHIJKLMNOPQRS
1DateNum of Months
21/15/202412Max Date Projected (End of Month)7/31/2025
312/15/20245Base Date6/1/2024
41/10/20256
5Sequence6/30/20247/31/20248/31/20249/30/202410/31/202411/30/202412/31/20241/31/20252/28/20253/31/20254/30/20255/31/20256/30/20257/31/2025
Sheet3
Cell Formulas
RangeFormula
E2E2=MAX(EOMONTH(EDATE(+A2:A4,+B2:B4),0))
E5:R5E5=LET(f,EOMONTH(E3,SEQUENCE(,100,0)),FILTER(f,f<=E2))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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