Subtracting dates

srosk

Board Regular
Joined
Sep 17, 2018
Messages
132
I have a table with the following headers. I have the values already listed in the 1st and 3rd row. Need to figure out, how to calculate the 2nd row.

[TABLE="width: 500"]
<tbody>[TR]
[TD]last YE[/TD]
[TD]3 months[/TD]
[TD]1 year[/TD]
[TD]3 year[/TD]
[TD]5 year[/TD]
[TD]10 years[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/31/2018[/TD]
[TD]3/31/2019[/TD]
[TD]06/30/2018[/TD]
[TD]06/30/2016[/TD]
[TD]06/30/2014[/TD]
[TD]06/30/2010[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]06/30/2019[/TD]
[TD]06/30/2019[/TD]
[TD]06/30/2019[/TD]
[TD]06/30/2019[/TD]
[TD]06/30/2019[/TD]
[TD]06/30/2019[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I tried to use the following for items like the 3-month, but no avail. I believe that it should work for everything but last YE and 3 months.

How do I use a formula to essentially get 12/31 of the previous year? Best way to get the last day of the month, 3 months ago?

Code:
=EDATE(F3,-3)


Thank you kindly, as always :)
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,823
Messages
6,181,177
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