IF THEN Formula?

goldiekratz437

New Member
Joined
May 14, 2013
Messages
9
Hi: I need to convert a date in one column to a text field. If the date is between 01/01/2013 and 03/31/2013 then the text would be 13Q1. If the date is between 04/01/2013 and 06/30/2013 then the text would be 13Q2. And so on. I'm trying not to manually do this. Thank you very much!!

</SPAN>
</SPAN>
Launch Date
Year
4/25/13
13Q2
7/18/14
14Q3
11/3/14
14Q4
2/1/2013
13Q1
6/1/2014
14Q2

<TBODY>
</TBODY>

<TBODY>
</TBODY>
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi: I need to convert a date in one column to a text field. If the date is between 01/01/2013 and 03/31/2013 then the text would be 13Q1. If the date is between 04/01/2013 and 06/30/2013 then the text would be 13Q2. And so on. I'm trying not to manually do this. Thank you very much!!

Launch DateYear
4/25/1313Q2
7/18/1414Q3
11/3/1414Q4
2/1/201313Q1
6/1/201414Q2

<tbody>
</tbody>

<tbody>
</tbody>

Try this :

=RIGHT(YEAR(A2),2)&"Q"&IF(AND(MONTH(A2)>=1,MONTH(A2)<=3),1,IF(AND(MONTH(A2)>=4,MONTH(A2)<=6),2,IF(AND(MONTH(A2)>=7,MONTH(A2)<=9),3,4)))
 
Upvote 0
=TEXT(A1,"yy")&"Q"&ROUNDUP(MONTH(A1)/3,0)

Edit: Slightly shorter... =TEXT(A1,"yyQ")&ROUNDUP(MONTH(A1)/3,0)
 
Upvote 0

Forum statistics

Threads
1,215,746
Messages
6,126,645
Members
449,325
Latest member
Hardey6ix

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top