View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Glenn Glenn is offline
external usenet poster
 
Posts: 1,240
Default One text for particular period

Glenn wrote:
kashish wrote:
If A1 = Any date, I need a formula for A2 with conditions like

If A1 between 01 Jan 2009 to 31 Mar 2009 then A2 = Q1
If A1 between 01 Apr 2009 to 30 Jun 2009 then A2 = Q2
If A1 between 01 Jul 2009 to 30 Sep 2009 then A2 = Q3
If A1 between 01 Oct 2009 to 31 Dec 2009 then A2 = Q4



="Q"&INT(MONTH(A1)/4)+1



Right, like Mike H said...

="Q"&INT((MONTH(A1)-1)/3)+1