ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Changing today's date to the first of the month (https://www.excelbanter.com/excel-worksheet-functions/61612-changing-todays-date-first-month.html)

Scott

Changing today's date to the first of the month
 
Is there a function in Excel to change a date to the first of the month,

ie. =FIRSTDAY(Now()) to change 12/22/2005 to 12/1/2005

thanks.

Ron Coderre

Changing today's date to the first of the month
 
Try one of these:

=EOMONTH(TODAY(),-1)+1

Note: If the EOMONTH function is not available, and returns the #NAME?
error, install and load the Analysis ToolPak add-in

OR

=DATE(YEAR(TODAY()),MONTH(TODAY()),1)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Scott" wrote:

Is there a function in Excel to change a date to the first of the month,

ie. =FIRSTDAY(Now()) to change 12/22/2005 to 12/1/2005

thanks.


ikr

Changing today's date to the first of the month
 
"Scott" wrote in message
...
Is there a function in Excel to change a date to the first of the month,

ie. =FIRSTDAY(Now()) to change 12/22/2005 to 12/1/2005

thanks.


=DATE(YEAR(NOW()),MONTH(NOW()),1)



bpeltzer

Changing today's date to the first of the month
 
Another alternative to EOMONTH: =today()-day(today())+1
(or, to operate on a date given in A1, =a1-day(a1)+1. )


"Scott" wrote:

Is there a function in Excel to change a date to the first of the month,

ie. =FIRSTDAY(Now()) to change 12/22/2005 to 12/1/2005

thanks.


Ron Rosenfeld

Changing today's date to the first of the month
 
On Thu, 22 Dec 2005 05:43:03 -0800, "Scott"
wrote:

Is there a function in Excel to change a date to the first of the month,

ie. =FIRSTDAY(Now()) to change 12/22/2005 to 12/1/2005

thanks.


=TODAY()-DAY(TODAY()) +1


--ron


All times are GMT +1. The time now is 03:31 PM.

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