Return text between dates challenge

volpi2

New Member
Joined
Feb 11, 2018
Messages
2
Does anyone know how to calculate quarters in excel from a beg and end date where i am looking to seperate for Q1,Q2,Q3,Q4,Full Year?

The challenge is the quarters fall between a specific range and not the usual Jan 1 to Mar 31. Every year has a different date range for Q1,Q2,etc...Then we have another challenge where we need to know if Full Year when the end date is anytime in December and Start date is anytime in January.

Hope someone is smarter than me to figure out this formula.

Example
Year 2017
Q1: Jan 1, 2017 to Mar 24, 2017
Q2: Mar 25, 2017 to June 15, 2017
Q3: June 16,2017 to Sept 24, 2017
Q4: Sept 25,2017 to Dec 31, 2017
Full Year: Jan 1-31 to Dec 1-31,2017
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Welcome to the forum.

The simplest way is to create a reference table of threshold dates and corresponding quarters, and then use a lookup formula to retrieve the correct quarter for each date.

Copy B7 down as necessary.

ABCDE
6exampleQthresholdquarter
72/13/17q11/01/17q1
84/16/17q23/25/17q2
98/15/17q36/16/17q3
109/29/18q39/25/17q4
119/30/18q41/01/18q1
121/26/19q13/28/17q2
136/22/18q3
149/30/18q4
1512/28/18q1
163/21/19q2
17etcetera

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet17

Worksheet Formulas
CellFormula
B7=VLOOKUP(A7,$D$7:$E$16,2,1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Welcome to the forum.

The simplest way is to create a reference table of threshold dates and corresponding quarters, and then use a lookup formula to retrieve the correct quarter for each date.

Copy B7 down as necessary.

ABCDE
6exampleQthresholdquarter
72/13/17q11/01/17q1
84/16/17q23/25/17q2
98/15/17q36/16/17q3
109/29/18q39/25/17q4
119/30/18q41/01/18q1
121/26/19q13/28/17q2
136/22/18q3
149/30/18q4
1512/28/18q1
163/21/19q2
17etcetera

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet17

Worksheet Formulas
CellFormula
B7=VLOOKUP(A7,$D$7:$E$16,2,1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Thank you, i will just need to create another column for dates that fall between full year.
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,767
Members
449,049
Latest member
greyangel23

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