ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   month to number (https://www.excelbanter.com/excel-programming/275010-re-month-number.html)

Ron Rosenfeld

month to number
 
On Thu, 21 Aug 2003 11:50:28 -0700, "_______Tim_______" wrote:

Hi,

Can you show me how to write a macro to convert a three
place month abreviation, Jan, Feb, Mar, etc., in column Y
into a number, 1, 2, 3, etc., in column AF?

Thank You.

Regards, Tim


Here's another way: In AF1, insert the formula:


=MATCH(Y1,{"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Ju l";"Aug";"Sep";"Oct";"Nov";"Dec"},0)

and copy down.


--ron


All times are GMT +1. The time now is 11:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com