How do I get Current Year And Current Quarter

Mathman

Board Regular
Joined
Jan 28, 2017
Messages
152
Office Version
  1. 2016
Platform
  1. Windows
I need to get current year and quarter to update automatically then have previous quarters also displayed. And would like it to be display as shown below. Any suggestion as to how I can do this?


2018.1
2017.4
2017.3
2017.2
2017.1
2016.4
2016.3
2016.2
2016.1
2015.4
2015.3
2015.2
2015.1
2014.4
2014.3
2014.2
2014.1
2013.4
2013.3
2013.2
2013.1
2012.4
2012.3
2012.2
2012.1
2011.4
2011.3
2011.2
2011.1
2010.4
2010.3
2010.2
2010.1
2009.4
2009.3
2009.2
2009.1
2008.4
2008.3
2008.2
2008.1
2007.4

<tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Use this formula in row 1, and copy down:
Code:
=YEAR(EDATE(TODAY(),(ROW()-[COLOR=#ff0000]1[/COLOR])*-3)) & "." & ROUNDUP(MONTH(EDATE(TODAY(),(ROW()-[COLOR=#ff0000]1[/COLOR])*-3))/3,0)
If you are starting in any row other than row 1, change the number in red in the formula above to the row you are putting the first (current date) formula in.
 
Upvote 0
Assuming a data in cell A1 this formula worked for me.
=CONCATENATE(YEAR(A1)&"."& ROUNDUP(MONTH(A1)/3,0))
 
Upvote 0

Book1
A
12018.1
22017.4
32017.3
42017.2
52017.1
62016.4
72016.3
82016.2
92016.1
102015.4
112015.3
122015.2
132015.1
142014.4
152014.3
162014.2
172014.1
182013.4
192013.3
202013.2
212013.1
222012.4
232012.3
242012.2
252012.1
262011.4
272011.3
282011.2
292011.1
302010.4
312010.3
322010.2
332010.1
342009.4
352009.3
362009.2
372009.1
382008.4
392008.3
402008.2
412008.1
422007.4
Sheet1
Cell Formulas
RangeFormula
A1=YEAR(EOMONTH(TODAY(),3-ROW()*3))&"."&INT((MONTH(EOMONTH(TODAY(),3-ROW()*3))-1)/3)+1


WBD
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

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