ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I set a date function for previous monthend? (https://www.excelbanter.com/excel-discussion-misc-queries/44443-how-do-i-set-date-function-previous-monthend.html)

JDP289

How do I set a date function for previous monthend?
 
I know you can create a =NOW() function to give a date stamp to a file. Is it
also possible to have excel return the previous monthend date?

David Hepner

Try:

=EOMONTH(TODAY(),-1)

This function is part of the Analysis ToolPak add-in. If you do not click
Tools, and then click Add-ins to install and enable the Analysis ToolPak
add-in, the formula will return a #VALUE error. You will also receive a
#VALUE error if either of the function arguments is nonnumeric.

"JDP289" wrote:

I know you can create a =NOW() function to give a date stamp to a file. Is it
also possible to have excel return the previous monthend date?


Ron Rosenfeld

On Thu, 8 Sep 2005 10:12:04 -0700, JDP289
wrote:

I know you can create a =NOW() function to give a date stamp to a file. Is it
also possible to have excel return the previous monthend date?


=TODAY()-DAY(TODAY())




--ron


All times are GMT +1. The time now is 02:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com