Changing today's date to the first of the month

S

Scott

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.
 
R

Ron Coderre

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
 
I

ikr

Scott said:
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)
 
B

bpeltzer

Another alternative to EOMONTH: =today()-day(today())+1
(or, to operate on a date given in A1, =a1-day(a1)+1. )
 
R

Ron Rosenfeld

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
 
Top