Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have extracted the month from the worksheet name using the CELL function to
give me the month name as text. Is there a way I can convert this to a numerical month? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If you list those months in order in a block of cells somewhere, eg
starting in X1: January February March etc., then you can use this: =MATCH(TRIM(D2),X$1:X$12,0) assuming your months are in column D. Copy down as required. Hope this helps. Pete On Oct 29, 8:49*am, Claire_S wrote: I have extracted the month from the worksheet name using the CELL function to give me the month name as text. Is there a way I can convert this to a numerical month? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=MONTH(DATEVALUE("1 "&A1&" 2000"))
-- David Biddulph "Claire_S" wrote in message ... I have extracted the month from the worksheet name using the CELL function to give me the month name as text. Is there a way I can convert this to a numerical month? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Say the file name is something like 18 January 1863.xls
In B1 thru B3 enter: =CELL("filename",A1) =MID(B1,47,15) =MONTH(DATEVALUE(B2)) to display: C:\Documents and Settings\Owner\My Documents\[18 January 1963.xls]Sheet1 18 January 1963 1 This gets you the "1" for January. -- Gary''s Student - gsnu200908 "Claire_S" wrote: I have extracted the month from the worksheet name using the CELL function to give me the month name as text. Is there a way I can convert this to a numerical month? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
But wouldn't that get screwed up if the next filename was 8 May 2007.xls?
-- David Biddulph Gary''s Student wrote: Say the file name is something like 18 January 1863.xls In B1 thru B3 enter: =CELL("filename",A1) =MID(B1,47,15) =MONTH(DATEVALUE(B2)) to display: C:\Documents and Settings\Owner\My Documents\[18 January 1963.xls]Sheet1 18 January 1963 1 This gets you the "1" for January. I have extracted the month from the worksheet name using the CELL function to give me the month name as text. Is there a way I can convert this to a numerical month? |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Oct 29, 8:44*pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote: But wouldn't that get screwed up if the next filename was 8 May 2007.xls? -- David Biddulph Gary''s Student wrote: Say the file name is something like 18 January 1863.xls In B1 thru B3 enter: =CELL("filename",A1) =MID(B1,47,15) =MONTH(DATEVALUE(B2)) to display: C:\Documents and Settings\Owner\My Documents\[18 January 1963.xls]Sheet1 18 January 1963 1 This gets you the "1" for January. I have extracted the month from the worksheet name using the CELL function to give me the month name as text. Is there a way I can convert this to a numerical month?- Hide quoted text - - Show quoted text - With text month in A1 =MONTH(A1&1) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating month to date | Excel Worksheet Functions | |||
calculating month of present date | Excel Discussion (Misc queries) | |||
Calculating Month To Date Revenue | Excel Worksheet Functions | |||
Calculating recurring date in following month, calculating # days in that period | Excel Worksheet Functions | |||
How do I format cells from numerical dates to text month in a dif. | Charts and Charting in Excel |