Hi,
i had a Column which contains Months in (MMMM) format. What i want is to show the From & To dates based on the month.I had attached an example of the same.
Kindly,help me in this regard.
Hi,
i had a Column which contains Months in (MMMM) format. What i want is to show the From & To dates based on the month.I had attached an example of the same.
Kindly,help me in this regard.
Last edited by excelkeechak; 06-16-2010 at 10:49 PM.
THANKS
ExcelKeechak
Is it not possible.???
In C2 copied down: =("22 "&SUBSTITUTE(B2,"'"," "))*1
In D2 copied down: =DATE(YEAR(C2),MONTH(C2)+1,20)
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
Nice Domski. I didn't even think to coerce excel into converting it like that with the *1. I was going to provide a longer more complicated version that it didn't need to be.
=DATE(20&RIGHT($B2,2),MONTH(1& LEFT($B2,FIND("'",$B2)-1)),22)
So that helped me too and I didnt need it![]()
WOW.....thats amazing.......results......
Thanks both for your Formulas.
I had been struggling with this little formula from an year................
Once again.......Thanks a ton.....
Thanks Domski...as Dulanic said.i never thought that we can build excel formulas like this also.....
Hats off.....![]()
This also works:
For the 1st date
=DATEVALUE(CONCATENATE("22/",LEFT($B2,FIND("'",$B2)-1),"/",RIGHT($B2,2)))
For the 2nd date
=DATEVALUE(CONCATENATE("26/",MATCH(LEFT($B2,FIND("'",$B2)-1),$N$2:$N$13,0)+1,"/",RIGHT($B2,2)))
if N2:N13 contains a list of January, February, March etc.
Domski's solution is better I think.
Last edited by SgtSunshine; 06-17-2010 at 10:40 AM.
Thanks for the replies.
I had one more query in connection to this post.how can i change the above formula if i had two or more products in the worksheet.I mean is it possible to display different dates for different products based on the vlookup using a helper column.
Any other ideas would be greatly helpful to me.
TIA.
any suggestions or ideas please.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks