Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default First day of the Month


Hi All,

How can I get first day of the selected month (from given
date)

eg. if I enter 21/8/2003 in A1 i want to get 1/8/2003 in
B1

TIA

Soniya
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default First day of the Month

Try

B1 =DATE(YEAR(A1),MONTH(A1),1)

Cheers

Dave



"Soniya" wrote in message
...

Hi All,

How can I get first day of the selected month (from given
date)

eg. if I enter 21/8/2003 in A1 i want to get 1/8/2003 in
B1

TIA

Soniya



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default First day of the Month

Soniya,

You can do this with a formula

=DATE(YEAR(A1),MONTH(A1),1)
or
=A1-DAY(A1)+1


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Soniya" wrote in message
...

Hi All,

How can I get first day of the selected month (from given
date)

eg. if I enter 21/8/2003 in A1 i want to get 1/8/2003 in
B1

TIA

Soniya



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default First day of the Month

Soniya,

Try

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

--

HTH

Bob Phillips

"Soniya" wrote in message
...

Hi All,

How can I get first day of the selected month (from given
date)

eg. if I enter 21/8/2003 in A1 i want to get 1/8/2003 in
B1

TIA

Soniya



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
excel to make the days cary over month to month automaticly GARY New Users to Excel 1 April 19th 08 06:05 PM
Excel 2003 month to month data change grid Chad[_2_] Excel Discussion (Misc queries) 2 February 15th 08 01:36 AM
Retrieve data for previous 3, 6, 12 month given current month GB Excel Worksheet Functions 4 July 19th 07 11:58 PM
When using MONTH function on Blank Cell!! Returns Month=Jan! mahou Excel Discussion (Misc queries) 6 January 9th 06 02:46 AM
transfer cell $ amount to other sheet month-to-month without overc Colin2u Excel Discussion (Misc queries) 1 July 28th 05 02:36 AM


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

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"