Date formula

Sirod

New Member
Joined
Aug 6, 2009
Messages
47
Hello,

I'm calculating a proration and am stumped on a formula that result in a specific date. In cell A1 the user will enter the first day of the calendar year, i.e. Jan 1 2022. In cell B1 I need a formula so that the result is May 31 of the previous calendar year, i.e. May 31, 2021.

I've tried the formula =EDATE(A1,-7) which results in June 1 of the previous year. What am I missing?

Thank you,
S
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Just subtract one from your formula:
Excel Formula:
=EDATE(A1,-7)-1
 
Upvote 0
Solution
Oh my. The amount of time that I spent on this..... such a simple solution. Thank you so much!
You are welcome.

Yes, your original formula goes back exactly 7 months from Jan 1, which will return June 1.
So subtracting one from that takes you back to the day before June 1.
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,649
Members
448,975
Latest member
sweeberry

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