Changing "General"data (Month, Quarter and Year) to a "Date" format other than 09 July 1905!

Brazen

New Member
Joined
Jul 26, 2018
Messages
5
Good Afternoon,

Hopefully someone can help me with this issue I have an Excel Document similar to below, with the fields all showing their format as "General" as this is how the data is sent to me.

[TABLE="width: 271"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Quarter[/TD]
[TD]Year[/TD]
[TD]Units[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Q1[/TD]
[TD]2017[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Q1[/TD]
[TD]2017[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Q1[/TD]
[TD]2017[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Q2[/TD]
[TD]2018[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Q2[/TD]
[TD]2018[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]



[/TD]
[TD][/TD]
[TD]




[/TD]
[/TR]
</tbody>[/TABLE]
I am looking to:
- Find a way to change the month from 1/2/3/4.... to Jan/Feb/Mar etc.
- Have Q1 recognized as a period of time
- Have Year (2017/2018 etc) show as 2017/2018 but formatted as a year

The reason for doing this is so that I can start looking at Power BI reports showing MoM, QoQ and YoY data. I didnt publish this in the Power BI section as I believe this is an Excel query.

Many Thanks in advance for any help you can provide!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
This?


Excel 2010
ABCDEF
1MonthQuarterYearUnits
21Q1201711/1/2017
31Q1201741/1/2017
42Q1201762/1/2017
52Q22018105/1/2018
61Q2201844/1/2018
Sheet13
Cell Formulas
RangeFormula
F2=DATE(C2,A2+LOOKUP(B2,{"Q1","Q2","Q3","Q4";0,3,6,9}),1)
 
Upvote 0
Hi Sheetspread, so I have tried the above formula and it is just what I wanted... however...

As soon as it gets to Month "4", Quarter "Q2" it posts 01/07/Year rather than, 01/04/Year.

Any ideas on this?
 
Upvote 0
Does Month mean month of the year or month of the quarter? Row 4 in your original post says Month 2 Q2, which seems to be the second month of the second quarter (May). The second month of the year is February, but that's in Q1.

Since I assumed month of the quarter, Month 4 Q2 returns 1 month after the third month of quarter 2 (July), rather than the 4th month of the year (April).
 
Last edited:
Upvote 0
Month in this case means month of the year. the quarter is just included to add another time period with which to analyse the data.
 
Upvote 0
Then:


Excel 2010
ABCDEF
1MonthQuarterYearUnits
21Q1201711/1/2017
31Q1201741/1/2017
42Q1201762/1/2017
52Q22018102/1/2018
61Q2201841/1/2018
Sheet13
Cell Formulas
RangeFormula
F2=DATE(C2,A2,1)


Remember, if you print 2017 alone in a cell, and format as a date instead of regular number, etc. it will read 7/9/1905 (# of days since 1/0/1900).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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