Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
April S.
 
Posts: n/a
Default 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
  #2   Report Post  
Govind
 
Posts: n/a
Default

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

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

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
  #4   Report Post  
Govind
 
Posts: n/a
Default

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



  #5   Report Post  
April S.
 
Posts: n/a
Default

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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate running target by days in the month Robert Excel Worksheet Functions 2 July 4th 05 06:14 AM
How to calculate the day before last two working day of each month Angus Excel Discussion (Misc queries) 1 June 29th 05 12:22 PM
How to calculate total interest on 12 month loan with early payments Fred Smith Excel Worksheet Functions 0 January 6th 05 02:33 AM
Excel: Is there a way to calculate the date as week of month? debra adams Excel Discussion (Misc queries) 2 January 3rd 05 09:39 PM
calculate month from week number ankman Excel Worksheet Functions 2 November 24th 04 01:27 AM


All times are GMT +1. The time now is 12:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"