How to deal with a 14 month (period) year - VBA

jlax2485

New Member
Joined
Mar 24, 2017
Messages
6
Hi Everyone,

I am running into a frustrating problem with a VBA project I am working on. Our organization uses a 14 month year (12 regular months and 2 special posting periods for trailing charges), and I am not sure how to handle the two extra periods. I want to validate that the month of the column where I extracted the data matches the month of the column where the sum of this data will be placed.

For example, I thought of verifying that the MONTH( ) of each item in the ranges match, but it wont work with anything beyond 12. Our system uses the order of the month in the fiscal year, so (1/2018 = July 2017, 6/2018 = December 2017 and so forth). I could get around that with DATEADD( ) but it wont work with the two extra periods.

For periods 13 and 14, I want those values to be added onto June's total (the last month of our fiscal year). I have searched but cannot find anything useful to inspire me to get around this problem. Any help you can provide would be most appreciated!
 

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
Not everything in those extra two months can be trailing charges (otherwise you'd just have 14-month 'years'). So those items (columns, entries, ???) must be annotated or segregated somehow, no?
 
Upvote 0
Not everything in those extra two months can be trailing charges (otherwise you'd just have 14-month 'years'). So those items (columns, entries, ???) must be annotated or segregated somehow, no?

Unfortunately, Period 13 and 14 count for the fiscal year in which they are posted. They show up as columns of data from a system-generated report, with the "post period date" as the header.

I thought about using a select case statement to put each period into it's corresponding calendar date, and include 13 and 14 as "June 2017" but that would have to be updated each year.
 
Upvote 0
Dunno. Have no idea what your data looks like.
 
Upvote 0
Dunno. Have no idea what your data looks like.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Account[/TD]
[TD]GL [/TD]
[TD]CATEGORY[/TD]
[TD]001/2017[/TD]
[TD]002/2017[/TD]
[TD]003/2017[/TD]
[TD]004/2017[/TD]
[TD]005/2017[/TD]
[TD]006/2017[/TD]
[TD]007/2017[/TD]
[TD]008/2017[/TD]
[TD]009/2017[/TD]
[TD]010/2017[/TD]
[TD]011/2017[/TD]
[TD]012/2017[/TD]
[TD]013/2017[/TD]
[TD]014/2017[/TD]
[/TR]
[TR]
[TD]80002575[/TD]
[TD]615005[/TD]
[TD]Personnel [/TD]
[TD]5,000[/TD]
[TD](2,000)[/TD]
[TD][/TD]
[TD][/TD]
[TD]50[/TD]
[TD][/TD]
[TD][/TD]
[TD]10,000[/TD]
[TD][/TD]
[TD][/TD]
[TD]25,000[/TD]
[TD][/TD]
[TD](10,000)[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]80006933[/TD]
[TD]991412[/TD]
[TD]Other[/TD]
[TD][/TD]
[TD]15,000[/TD]
[TD][/TD]
[TD](500)[/TD]
[TD]2,500[/TD]
[TD][/TD]
[TD]35,000[/TD]
[TD][/TD]
[TD]25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Sorry about that - here is a rough idea of my source report. My destination template is similar, but I am using corresponding calendar year dates. I am putting the results of each column into an array, because there could be any number of accounts #'s that correspond to a particular line of business, and the sum of what is in each column of the array gets pasted into the destination template.
 
Upvote 0
OK -- so what's the question?

013/2017 are trailing charges for FY17

001/2018 is the same month with charges that apply to FY18.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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