Convert ddmmyy to Customise Qtr Yr

dessim

New Member
Joined
Aug 4, 2019
Messages
23
Office Version
  1. 2016
Platform
  1. Windows
Hi ppl,

Previously I made enquires abt converting DDMMYY to Qtr YY.

Example 15012019 = Qtr1 19

But now due to some requirement in company, my Qtr1 can only starts on April 2019

Meaning from April, May, June 19 = Qtr1 19
July,Aug, Sept 19 = Qtr 2 19
Oct, Nov, Dec 19 = Qtr 3 19
Jan 20, Feb20, March20 = Qtr 4 19


With such requirement on above, may i know how to I get the desired output:

example 25th May 19 = Qtr1 19

10th July 19 = Qtr2 19


Do I need some sort of VB code to achived the desired outcome ?

Seek some kind advise .

Thank you very much.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Without seeing the previous resolution there might be 2 option.

1. is an if statement =IF(A1 is between dates, "Qtr1 19", IF(A1 is between dates, "Qtr 2 19", Etc.....
2. see if you can simply subtract from your current solution.
 
Upvote 0
If you are looking for a formula solution, maybe you can try:

REMOVED AS NEEDED TO EDIT
 
Last edited:
Upvote 0
Updated:

="Qtr" & CHOOSE(ROUNDUP(MONTH(A1)/3, 0), 4, 1, 2, 3) & " " & RIGHT(YEAR(A1), 2) - IF(MONTH(A1)<4, 1, 0)

or

="Qtr" & MOD(ROUNDUP(MONTH(A1)/3, 0)+2, 4)+1 & " " & RIGHT(YEAR(A1), 2) - IF(MONTH(A1)<4, 1, 0)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,729
Members
449,049
Latest member
MiguekHeka

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