View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Stefi[_2_] Stefi[_2_] is offline
external usenet poster
 
Posts: 25
Default help with a formula please

On dec. 9, 13:55, "KRK" wrote:
Hello

I have a text field *'2007 Aug' , which I want to turn into a date 15/8/2007
so I can do some calculations with it. I've tried splitting the field etc
but I'm getting into a real mess.

Can someone help me with the formula pls ??

Thanks

KK


Try this formula:
=DATE(LEFT(A1,4),LOOKUP(RIGHT(A1,3),
{"Apr","Aug","Dec","Feb","Jan","Jul","Jun","Mar"," May","Nov","Oct","Sep"},
{4,8,12,2,1,7,6,3,5,11,10,9}),15)
15 is a constant in the formula because you didn't mention the source
of the day.

Regards,
Stefi