Excel help for a novice

sjohnson77

New Member
Joined
Apr 17, 2021
Messages
11
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Guys,

In my current role I have to look at data for a financial year and change it into calendar year data.

In my company, a financial year has 13 periods (4 weeks per period) and starts from April each year (e.g. 18P04 = 2018 Period 4).

The issue I am experiencing is that with P01 being from April, I need a way of converting the period data in calendar year data. So period 01 needs to become period 4 (+3 months per period so that april becomes P04 instead of P01).

The problem with just simply adding +3 onto the values is that for periods 11, 12 and 13; they become 14, 15 & 16. Is there a formula I can use which would not only take my data I receive "18P04" and display it as "18P07", but also can detect the end of the sequence (13 periods) and then start the next year by itself? E.G. my output data shows "18P12" but with the formula will then show "19P02"? (YYPXX is the format for the data I have = Year/period)

Any help on this would be greatly received & appreciated.

Thanks
 

Attachments

  • Periods.JPG
    Periods.JPG
    26.2 KB · Views: 16

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".
Thank you Fluff, that has worked a treat :D!

Now that I have the calendar year sorted. Is there a formula to recognise the data "19P06" for example and separate this into 2 separate columns, one for the year and another for the period?

For example "19P06" in cell B2, then in cell C2 you get the year "2019" and in D2 you get the period "P06"?

This really would be the cherry on the cake if possible!

Thanks again for your help, really appreciate it! :)
 
Upvote 0
You can use
Excel Formula:
=2000+LEFT(A2,2)+INT((RIGHT(A2,2)+2)/13)
and
Excel Formula:
="P"&TEXT(MOD(RIGHT(A2,2)+2,13)+1,"00")
for that.
 
Upvote 0
Another option for 365 only, if you have the LET function
+Fluff 1.xlsm
ABCD
1
218P0118P042018P04
318P0218P052018P05
418P0318P062018P06
518P0418P072018P07
618P0518P082018P08
718P0618P092018P09
818P0718P102018P10
918P0818P112018P11
1018P0918P122018P12
1118P1018P132018P13
1218P1119P012019P01
1318P1219P022019P02
1418P1319P032019P03
1519P0119P042019P04
1619P0219P052019P05
1719P0319P062019P06
Lists
Cell Formulas
RangeFormula
B2:D17B2=LET(P,RIGHT(A2,2)+2,Yr,LEFT(A2,2)+INT(P/13),Np,"P"&TEXT(MOD(P,13)+1,"00"),CHOOSE({1,2,3},Yr&Np,Yr+2000,Np))
Dynamic array formulas.
 
Upvote 0
"Fluff - The gift that keeps on giving!"

That is 2/2. Thank you so much, you have saved me no end of time :D
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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