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?


[TABLE="width: 55"]
<tbody>[TR]
[TD="width: 55, bgcolor: transparent, align: right"]2018.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2017.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2017.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2017.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2017.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2016.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2016.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2016.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2016.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2015.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2015.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2015.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2015.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2014.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2014.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2014.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2014.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2009.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2009.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2009.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2009.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2008.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2008.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2008.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2008.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2007.4[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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