ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Calculate the first day of the month for the current month? (https://www.excelbanter.com/excel-discussion-misc-queries/37193-calculate-first-day-month-current-month.html)

April S.

Calculate the first day of the month for the current month?
 
I need to calculate the first day of the month for the current month.
ie. 12/06/04 = 12/01/04 or 5/05/05 = 5/01/05

Govind

Hi,

Use

=TEXT(DATE(YEAR(A1),MONTH(A1),1),"mm/dd/yy")

Change cell A1 accordingly.

Govind.

April S. wrote:

I need to calculate the first day of the month for the current month.
ie. 12/06/04 = 12/01/04 or 5/05/05 = 5/01/05


Dave Peterson

I think I'd drop the =Text() portion:

=date(year(a1),month(a1),1)

And format the way I want.

Then it's still a date.

Govind wrote:

Hi,

Use

=TEXT(DATE(YEAR(A1),MONTH(A1),1),"mm/dd/yy")

Change cell A1 accordingly.

Govind.

April S. wrote:

I need to calculate the first day of the month for the current month.
ie. 12/06/04 = 12/01/04 or 5/05/05 = 5/01/05


--

Dave Peterson

Govind

Ya. thats fine. I just added the Text portion so that the result comes
in the format desired by April.

Govind.

Dave Peterson wrote:
I think I'd drop the =Text() portion:

=date(year(a1),month(a1),1)

And format the way I want.

Then it's still a date.

Govind wrote:

Hi,

Use

=TEXT(DATE(YEAR(A1),MONTH(A1),1),"mm/dd/yy")

Change cell A1 accordingly.

Govind.

April S. wrote:


I need to calculate the first day of the month for the current month.
ie. 12/06/04 = 12/01/04 or 5/05/05 = 5/01/05




April S.

Thanks! both Govind and Dave. It works perfect.

"Govind" wrote:

Ya. thats fine. I just added the Text portion so that the result comes
in the format desired by April.

Govind.

Dave Peterson wrote:
I think I'd drop the =Text() portion:

=date(year(a1),month(a1),1)

And format the way I want.

Then it's still a date.

Govind wrote:

Hi,

Use

=TEXT(DATE(YEAR(A1),MONTH(A1),1),"mm/dd/yy")

Change cell A1 accordingly.

Govind.

April S. wrote:


I need to calculate the first day of the month for the current month.
ie. 12/06/04 = 12/01/04 or 5/05/05 = 5/01/05





Sandy Mann

Late but an alternative:

=A1-DAY(A1)+1

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"April S." wrote in message
...
I need to calculate the first day of the month for the current month.
ie. 12/06/04 = 12/01/04 or 5/05/05 = 5/01/05





All times are GMT +1. The time now is 01:06 PM.

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