Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CCW
 
Posts: n/a
Default How do I copy only the month from a date

I need to copy just the month from one worksheet "A" to worksheet "B" in the
same work book so I can count the number of occurances in one month. I also
have to copy the whole date in worksheet "A" to worksheet "B" in another
column.

Worksheet A Worksheet B Column 1 Worksheet B Collumn 2
To copy To paste To Paste
03/21/05 03 03/21/05

Worksheet B ,occasionally, gets sorted by date. Worksheet A will be data
entry where leaving off the "0" occassionaly in the first 9 months will
happen from time to time as human error.

Worksheet A populates worksheet B and once worksheet A is populated the
newly populated row in B is copied to the row below. Once copied to to the
row below the data in A is deleted with the next set of data.

Is this too much for excel and an ACCESS application. I just about have it
in excel ecept for these two collumns.


  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

You can get the month of an actual date by using the MONTH(date) function.
It will return only a 3, not an 03. If you need two digits, use
=TEXT(MONTH(date),"00")

Just directly reference the date in Worksheet A to get it into Worksheet B.

=date



"CCW" wrote in message
...
I need to copy just the month from one worksheet "A" to worksheet "B" in
the
same work book so I can count the number of occurances in one month. I
also
have to copy the whole date in worksheet "A" to worksheet "B" in another
column.

Worksheet A Worksheet B Column 1 Worksheet B Collumn 2
To copy To paste To Paste
03/21/05 03 03/21/05

Worksheet B ,occasionally, gets sorted by date. Worksheet A will be data
entry where leaving off the "0" occassionaly in the first 9 months will
happen from time to time as human error.

Worksheet A populates worksheet B and once worksheet A is populated the
newly populated row in B is copied to the row below. Once copied to to
the
row below the data in A is deleted with the next set of data.

Is this too much for excel and an ACCESS application. I just about have
it
in excel ecept for these two collumns.




  #3   Report Post  
Thief_
 
Posts: n/a
Default

ws2.cells(1,1) = month( ws1.cells(2,2))


--
|
+-- Julian
|

"CCW" wrote in message
...
I need to copy just the month from one worksheet "A" to worksheet "B" in

the
same work book so I can count the number of occurances in one month. I

also
have to copy the whole date in worksheet "A" to worksheet "B" in another
column.

Worksheet A Worksheet B Column 1 Worksheet B Collumn 2
To copy To paste To Paste
03/21/05 03 03/21/05

Worksheet B ,occasionally, gets sorted by date. Worksheet A will be data
entry where leaving off the "0" occassionaly in the first 9 months will
happen from time to time as human error.

Worksheet A populates worksheet B and once worksheet A is populated the
newly populated row in B is copied to the row below. Once copied to to

the
row below the data in A is deleted with the next set of data.

Is this too much for excel and an ACCESS application. I just about have

it
in excel ecept for these two collumns.




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
Lookup the month in a date string 01/03/05 Una Excel Worksheet Functions 1 March 30th 05 09:45 AM
Count the occurances of a month in a range of date fields Keith Brown Excel Worksheet Functions 8 March 14th 05 11:24 AM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
How can I format a cell so date field only displays the Month? tk_2u Excel Discussion (Misc queries) 3 December 4th 04 12:54 AM
Return the end of month date from a date Steve F. Excel Worksheet Functions 3 October 28th 04 06:17 PM


All times are GMT +1. The time now is 08:07 PM.

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

About Us

"It's about Microsoft Excel"