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!
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!