Current financial year and Pior financial year

Sarah7828

New Member
Joined
Oct 25, 2024
Messages
15
Office Version
  1. 2021
Hi

I am trying to create current and prior financial year formula based on end of month date

End of month Date : eg 30/9/2024 - Cell B1
Current Financial year : e.g 30/6/2025 - Cell B2
Prior Financial year : e.g 30/6/2024 - Cell B3

IF(AND(EOMONTH(B1,0)>=DATE(YEAR(B1),7,1),(EOMONTH(B1,0)<=DATE(YEAR(B1)+1,6,30))),DATE((YEAR(B1)+1),6,30,DATE((YEAR(B1)-1),6,30))

not sure how to fix it

Thank you
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You should replace your formula with this:

Excel Formula:
IF(AND(EOMONTH(B1,0)>=DATE(YEAR(B1),7,1),(EOMONTH(B1,0)<=DATE(YEAR(B1)+1,6,30))),DATE((YEAR(B1)+1),6,30),DATE((YEAR(B1)-1),6,30))

Regards,
GB
 
Upvote 0
The generic syntax to return the current fiscal year end date based on the current month end date is:

Excel Formula:
=DATE(YEAR(CurrentMonthEnd)+(MONTH(CurrentMonthEnd)>YearEndMonth),YearEndMonth+1,0)

So, with the current month end date in cell B1 and a fiscal year ending in June (6), the formula in cell B2 would look like this:

Excel Formula:
=DATE(YEAR(B1)+(MONTH(B1)>6),6+1,0)

With the DATE function, day 0 is interpreted as the last day of the previous month, so July 0 will return June 30. (Note: you could also just input 7 for the month argument instead of 6+1.)

The prior year end date formula in cell B3 would then be:

Excel Formula:
=EOMONTH(B2,-12)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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