convert text month to numeric month
On Thu, 2 Apr 2009 10:35:43 +1100, AltaEgo wrote:
Hmmmmm
1) Enter the values below in A1 to A12
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2) In a general module, copy the following function:
Function test(tMth As Range)
test = Month(CVDate(tMth.Value & "-1-2000"))
End Function
3) Enter "=test" (without quotes) in B1.
4) copy down to B12
I get the numbers 1 to 12 in XL 2003.
Thanks again. I ended up using Don's method. (see below)
|