20 Days into Prior Month Formula

itsmekarak

New Member
Joined
Sep 29, 2014
Messages
30
Hello everyone,

I'm looking for a formula that will give me a date of 20 days into the last month and base it on the computer systems date. For example, today is November 3rd. I would like October 20th to be the date that is returned.

I've been using =DATE(YEAR(TODAY()),MONTH(TODAY()),-1) but that only shows the last day of the previous month.

I can't use a basic =A1-14 days to get the date because I need this formula to work at any point in the month. So even on November 30th, I need to enter the formula and see October 20th as the result.

Any help you can give is greatly appreciated!
 

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

dssJones

Board Regular
Joined
Nov 3, 2016
Messages
72
Hello everyone,

I'm looking for a formula that will give me a date of 20 days into the last month and base it on the computer systems date. For example, today is November 3rd. I would like October 20th to be the date that is returned.

I've been using =DATE(YEAR(TODAY()),MONTH(TODAY()),-1) but that only shows the last day of the previous month.

I can't use a basic =A1-14 days to get the date because I need this formula to work at any point in the month. So even on November 30th, I need to enter the formula and see October 20th as the result.

Any help you can give is greatly appreciated!

If I understood your question correctly, then you are on the right track!
You can get the 20th day of THIS month with:
=DATE(YEAR(TODAY()), MONTH(TODAY()), 20)

To get the 20th date of Last Month then just do this
EDATE(DATE(YEAR(TODAY()), MONTH(TODAY()), 20), -1)

Change the -1 to -2 to get the 20th of 2 months ago, and so on...
 

Watch MrExcel Video

Forum statistics

Threads
1,123,135
Messages
5,599,917
Members
414,348
Latest member
KloppyM

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
Top