From: Eric on
Does anyone have any suggestions on how to convert text "JAN" into number 1?
Does excel have any built in function to do it?
For all the months' symbol into numbers
"JAN" into 1
...
"MAR" into 3
...
"DEC" into 12

Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric
From: Gary''s Student on
Expand this formula:

=LOOKUP(A1,{"JAN","FEB"},{1,2})

for the remaining months
--
Gary''s Student - gsnu201001


"Eric" wrote:

> Does anyone have any suggestions on how to convert text "JAN" into number 1?
> Does excel have any built in function to do it?
> For all the months' symbol into numbers
> "JAN" into 1
> ..
> "MAR" into 3
> ..
> "DEC" into 12
>
> Does anyone have any suggestions?
> Thanks in advance for any suggestions
> Eric
From: Dave Peterson on
If your abbreviations are nice, you could use a formula like:

=month("1"&A1)

If your abbreviations aren't nice, it won't work.



Eric wrote:
>
> Does anyone have any suggestions on how to convert text "JAN" into number 1?
> Does excel have any built in function to do it?
> For all the months' symbol into numbers
> "JAN" into 1
> ..
> "MAR" into 3
> ..
> "DEC" into 12
>
> Does anyone have any suggestions?
> Thanks in advance for any suggestions
> Eric

--

Dave Peterson
From: Bernd P on
Hello Eric,

In UK you can use
=MONTH("1/"&A1)

In USA it is probably
=MONTH(A1&"/1")

Regards,
Bernd
From: Lars-�ke Aspelin on
On Sat, 10 Apr 2010 07:26:02 -0700, Gary''s Student
<GarysStudent(a)discussions.microsoft.com> wrote:

>Expand this formula:
>
>=LOOKUP(A1,{"JAN","FEB"},{1,2})
>
>for the remaining months

The values in the lookup vector have to be in ascending order, so you
need to sort the months like this to have the formula working:

=LOOKUP(A1,{"APR","AUG","DEC","FEB","JAN","JUL","JUN","MAR","MAY","NOV","OCT","SEP"},{4,8,12,2,1,7,6,3,5,11,10,9})

Hope this helps / Lars-�ke
 |  Next  |  Last
Pages: 1 2 3
Prev: Autofilter header row
Next: IF nested problem ..!