function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sudhirn@merunetworks.comsudhirn@merunetworks.com 

Get Quater dates based on close date in opportunity

Hi,

   Based on close date in opportunity I need to create a formula field to identify to which quater and year it belongs to QQYYYY format. 

   Please suggest me how to get this details. 
 

Thanks
Sudhir

SaiGSaiG
Assuming your Fiscal Year starts in Jan, you could try this logic:

CASE( MONTH(( CloseDate )), 
1, "Q1"&RIGHT(TEXT(YEAR((CloseDate))), 4), 
2, "Q1"&RIGHT(TEXT(YEAR((CloseDate))), 4), 
3, "Q1"&RIGHT(TEXT(YEAR((CloseDate))), 4), 
4, "Q2"&RIGHT(TEXT(YEAR((CloseDate))), 4), 
5, "Q2"&RIGHT(TEXT(YEAR((CloseDate))), 4), 
6, "Q2"&RIGHT(TEXT(YEAR((CloseDate))), 4), 
7, "Q3"&RIGHT(TEXT(YEAR((CloseDate))), 4), 
8, "Q3"&RIGHT(TEXT(YEAR((CloseDate))), 4), 
9, "Q3"&RIGHT(TEXT(YEAR((CloseDate))), 4), 
"Q4"&RIGHT(TEXT(YEAR((CloseDate))), 4))