Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
A. Toczko
 
Posts: n/a
Default which function to use?

I have a column of data which is dates, entered as dd/mm/yy, and formated to
display mmm-yy. I would like to set up another column that will assign a
number for each month shown in the date column, where April is month 1, May
month 2, etc.

Enter data in column 1 as 25/11/05, it displays as Nov-05, and in the second
column, I need a function that will compute to 8, the month number. TIA.


  #2   Report Post  
Paul B
 
Posts: n/a
Default

How about =MONTH(A1)

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"A. Toczko" wrote in message
...
I have a column of data which is dates, entered as dd/mm/yy, and formated

to
display mmm-yy. I would like to set up another column that will assign a
number for each month shown in the date column, where April is month 1,

May
month 2, etc.

Enter data in column 1 as 25/11/05, it displays as Nov-05, and in the

second
column, I need a function that will compute to 8, the month number. TIA.




  #3   Report Post  
Jimbola
 
Posts: n/a
Default

This won't work Paul, as entering 25/11/05 - will compute as the month number
11 rather than 8 (which i believe represents the financial period month)

"Paul B" wrote:

How about =MONTH(A1)

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"A. Toczko" wrote in message
...
I have a column of data which is dates, entered as dd/mm/yy, and formated

to
display mmm-yy. I would like to set up another column that will assign a
number for each month shown in the date column, where April is month 1,

May
month 2, etc.

Enter data in column 1 as 25/11/05, it displays as Nov-05, and in the

second
column, I need a function that will compute to 8, the month number. TIA.





  #4   Report Post  
Jimbola
 
Posts: n/a
Default

Use this

=IF(MONTH(A1)<4,MONTH(A1)+9,MONTH(A1)-3)

Where colum A contains the dates.

HTH

J





"A. Toczko" wrote:

I have a column of data which is dates, entered as dd/mm/yy, and formated to
display mmm-yy. I would like to set up another column that will assign a
number for each month shown in the date column, where April is month 1, May
month 2, etc.

Enter data in column 1 as 25/11/05, it displays as Nov-05, and in the second
column, I need a function that will compute to 8, the month number. TIA.



  #5   Report Post  
A. Toczko
 
Posts: n/a
Default

Excellent! Thanks so much.


"Jimbola" wrote in message
...
Use this

=IF(MONTH(A1)<4,MONTH(A1)+9,MONTH(A1)-3)

Where colum A contains the dates.

HTH

J





"A. Toczko" wrote:

I have a column of data which is dates, entered as dd/mm/yy, and formated
to
display mmm-yy. I would like to set up another column that will assign a
number for each month shown in the date column, where April is month 1,
May
month 2, etc.

Enter data in column 1 as 25/11/05, it displays as Nov-05, and in the
second
column, I need a function that will compute to 8, the month number. TIA.







  #6   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Another way

=INDEX({10;11;12;1;2;3;4;5;6;7;8;9},MONTH(A1))

--
Regards,

Peo Sjoblom


"Jimbola" wrote in message
...
Use this

=IF(MONTH(A1)<4,MONTH(A1)+9,MONTH(A1)-3)

Where colum A contains the dates.

HTH

J





"A. Toczko" wrote:

I have a column of data which is dates, entered as dd/mm/yy, and formated
to
display mmm-yy. I would like to set up another column that will assign a
number for each month shown in the date column, where April is month 1,
May
month 2, etc.

Enter data in column 1 as 25/11/05, it displays as Nov-05, and in the
second
column, I need a function that will compute to 8, the month number. TIA.




  #7   Report Post  
Harlan Grove
 
Posts: n/a
Default

"Peo Sjoblom" wrote...
Another way

=INDEX({10;11;12;1;2;3;4;5;6;7;8;9},MONTH(A1))

....

Brute force!

=MOD(MONTH(A1)-4,12)+1


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
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


All times are GMT +1. The time now is 04:36 AM.

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"