looking for help with a formula...

fingermouse

Board Regular
Joined
Dec 13, 2013
Messages
117
Hi,

I'm sure excel can do this but not sure where to start.

Please refer to the table below. Basically, I need a formula in the 'qtr' column which will reset to 'Q1' any time the value of the reference number in the 'ref' column changes.

Any help much appreciated! Thanks, Cal.
RefStart dateEnd DateQtr
000126/10/201525/01/2017Q1
0001
26/01/2016

<tbody>
</tbody><colgroup><col></colgroup>
25/04/2017Q2
0001
26/04/2016

<tbody>
</tbody><colgroup><col></colgroup>
25/07/2017Q3
0001
26/07/2016

<tbody>
</tbody><colgroup><col></colgroup>
25/10/2017Q4
000126/10/201525/01/2016Q1
0001
26/01/2016

<tbody>
</tbody><colgroup><col></colgroup>
25/04/2016Q2
000230/10/201629/01/2017Q1
000230/01/201729/04/2017Q2
000230/04/201729/07/2017Q3
000326/06/201527/09/2015Q1
000328/09/201527/12/2015Q2
000328/12/201527/03/2016Q3
000328/03/201627/05/2016Q4
000420/01/201519/04/2015Q1

<tbody>
</tbody>
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi, here is one option you can try:


Excel 2013/2016
ABCD
1RefStart dateEnd DateQtr
2000126/10/201525/01/2017Q1
3000126/01/201625/04/2017Q2
4000126/04/201625/07/2017Q3
5000126/07/201625/10/2017Q4
6000126/10/201525/01/2016Q1
7000126/01/201625/04/2016Q2
8000230/10/201629/01/2017Q1
9000230/01/201729/04/2017Q2
10000230/04/201729/07/2017Q3
11000326/06/201527/09/2015Q1
12000328/09/201527/12/2015Q2
13000328/12/201527/03/2016Q3
14000328/03/201627/05/2016Q4
15000420/01/201519/04/2015Q1
Sheet1
Cell Formulas
RangeFormula
D2=IF(A2<>A1,"Q1","Q"&IF(RIGHT(D1)="4","1",RIGHT(D1)+1))
 
Upvote 0
Please use this formula - CONCATENATE("Q" & ROUNDUP(MONTH(C2)/3,0))

Column C2 refers to end month date


Hi,

I'm sure excel can do this but not sure where to start.

Please refer to the table below. Basically, I need a formula in the 'qtr' column which will reset to 'Q1' any time the value of the reference number in the 'ref' column changes.

Any help much appreciated! Thanks, Cal.
RefStart dateEnd DateQtr
000126/10/201525/01/2017Q1
0001
26/01/2016

<tbody>
</tbody>
25/04/2017Q2
0001
26/04/2016

<tbody>
</tbody>
25/07/2017Q3
0001
26/07/2016

<tbody>
</tbody>
25/10/2017Q4
000126/10/201525/01/2016Q1
0001
26/01/2016

<tbody>
</tbody>
25/04/2016Q2
000230/10/201629/01/2017Q1
000230/01/201729/04/2017Q2
000230/04/201729/07/2017Q3
000326/06/201527/09/2015Q1
000328/09/201527/12/2015Q2
000328/12/201527/03/2016Q3
000328/03/201627/05/2016Q4
000420/01/201519/04/2015Q1

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,690
Members
449,092
Latest member
snoom82

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