Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have a workbook that have multiple workshhets in it. The worksheets are
called January, February, March ..... (Please note thare are a couple of worksheets which are not month related). Within each month sheet I have a column that has a reference number 01 for Jan, 02 for Feb, 03 for March... At the moment the reference numbers are typed in manually. Is there a way where I can extract the month number from the month name and automatically insert it into the reference number column? Any help would be appreciated. |
#2
![]() |
|||
|
|||
![]()
This formula will extract the month name from the sheet tab and calculate
its index =MONTH(DAY(TODAY())&"-"&MID(CELL("filename",A1),FIND("]",CELL("filename",A1) )+1,255)&"-"&YEAR(TODAY())) -- HTH RP (remove nothere from the email address if mailing direct) "PM" wrote in message ... I have a workbook that have multiple workshhets in it. The worksheets are called January, February, March ..... (Please note thare are a couple of worksheets which are not month related). Within each month sheet I have a column that has a reference number 01 for Jan, 02 for Feb, 03 for March... At the moment the reference numbers are typed in manually. Is there a way where I can extract the month number from the month name and automatically insert it into the reference number column? Any help would be appreciated. |
#3
![]() |
|||
|
|||
![]()
Bob,
Many thanks for you time and formula, works a treat. Pank "Bob Phillips" wrote: This formula will extract the month name from the sheet tab and calculate its index =MONTH(DAY(TODAY())&"-"&MID(CELL("filename",A1),FIND("]",CELL("filename",A1) )+1,255)&"-"&YEAR(TODAY())) -- HTH RP (remove nothere from the email address if mailing direct) "PM" wrote in message ... I have a workbook that have multiple workshhets in it. The worksheets are called January, February, March ..... (Please note thare are a couple of worksheets which are not month related). Within each month sheet I have a column that has a reference number 01 for Jan, 02 for Feb, 03 for March... At the moment the reference numbers are typed in manually. Is there a way where I can extract the month number from the month name and automatically insert it into the reference number column? Any help would be appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Seed numbers for random number generation, uniform distribution | Excel Discussion (Misc queries) | |||
how to get week number in month in excel ? | Charts and Charting in Excel | |||
How to format a number in Indian style in Excel? | Excel Discussion (Misc queries) | |||
How do I convert a serial number to the month, day, and year in E. | Excel Discussion (Misc queries) | |||
Is there a template for a number of people traveling by month? | Excel Discussion (Misc queries) |