Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Extracting the Month from the Date in other cell

I have a spreadsheet that I D/L daily where column C2 is formatted as Date
like 1/6/2004.
I originally wanted the week number but this fails?
So, I tried to get the Week or Month in various ways with the following
results:
WEEKNUM(C2) = 1/2/1900 ???
LEFT(C2,1) = 3 ???

Can anyone tell me what I am doing wrong?

Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Extracting the Month from the Date in other cell

Hi
for the weeknum formula format the target cell as 'Number' (Fornat - Cells
menu)

--
Regards
Frank Kabel
Frankfurt, Germany

RustyR wrote:
I have a spreadsheet that I D/L daily where column C2 is formatted as
Date like 1/6/2004.
I originally wanted the week number but this fails?
So, I tried to get the Week or Month in various ways with the
following results:
WEEKNUM(C2) = 1/2/1900 ???
LEFT(C2,1) = 3 ???

Can anyone tell me what I am doing wrong?

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Extracting the Month from the Date in other cell

Remeber that these are really numbers (well I hope they
are) You can either covert these to a month by entering a
formula:

=TEXT(A1,"MMM") - short month name
=TEXT(A1,"MMMM") - full month name


Or you could use a custome format ad just type MMM or MMMM
into the input field in the format cells, number, custom.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Extracting the Month from the Date in other cell

Rusty,
Assuming that you have a date in c1
entering "=Month(C1) will give you the number of month. A date is not a
string and would have to be converted to a string before attempting to use
string functions, like you were attempting to do.

"RustyR" wrote:

I have a spreadsheet that I D/L daily where column C2 is formatted as Date
like 1/6/2004.
I originally wanted the week number but this fails?
So, I tried to get the Week or Month in various ways with the following
results:
WEEKNUM(C2) = 1/2/1900 ???
LEFT(C2,1) = 3 ???

Can anyone tell me what I am doing wrong?

Thanks!



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
extracting only month from a date deepak Excel Discussion (Misc queries) 6 September 7th 09 05:22 PM
Extracting a month name forom a date Finance Guru Excel Worksheet Functions 5 May 28th 09 05:42 PM
Extracting date from Date and Time formatted cell Aviral Sharma Excel Discussion (Misc queries) 2 March 6th 09 05:04 AM
Extracting month from a date field Alan Excel Discussion (Misc queries) 2 January 30th 06 10:29 PM
Formula for Extracting Month out of a Date column PokerZan Excel Discussion (Misc queries) 3 June 10th 05 08:30 PM


All times are GMT +1. The time now is 01:55 AM.

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"