Here's what I came up with: Weekly From =$A5+1-WEEKDAY($A5,2) TO =$A5+7-WEEKDAY($A5,2) Monthly From =DATEVALUE(MONTH($A5)&"-1-"&YEAR($A5)) TO =EOMONTH($A5,0) Quatrly From =DATEVALUE(ROUNDUP(MONTH($A5)/3,0)+2*(ROUNDUP(MONTH($A5)/3,0)-1)&"-1-"&YEAR($A5))
TO =EOMONTH(I5,2) Half Yearly From =DATEVALUE((ROUNDUP(MONTH($A5)/6,0)-1)*5+1&"-1-"&YEAR($A5)) TO =EOMONTH(L5,5) Yearly From =DATEVALUE("1-1-"&YEAR($A5)) TO =EOMONTH(O5,11) Paul ----------------------------------------- “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley ----------------------------------------- ________________________________ From: Kenil Gala <keni...@yahoo.com> To: excel macros <excel-macros@googlegroups.com> Sent: Tue, November 27, 2012 12:44:55 PM Subject: $$Excel-Macros$$ Small Date Query Pls help me solve my query. I have mentioned my query in the file attached. Thanks & Regards, Kenil Gala -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en.