I have worksheet that contains in Column A “Contract No.”, in Column “AU” to “BF” Last Fiscal Year such as every column from AU to BF represent the twelve month of the year e.g. “Apr, May, Jun, July, Aug, Sep, Oct, Nov, Dec, Jan, Feb, Mar”. Now the first row for each contract a formula is maintained which sum up the product of all the transaction for each contract no. see the example below:
Then in Column “BG” to “BR” the column for the current Fiscal year totals for each month.
So now the objective is that when the date of the system reaches April first in the current year I want all the data to be moved from let us say month of April to last Fiscal year April corresponding row and column. But keep the formula intact in the black row which contains for each month the corresponding formula.
Month April last Fiscal year
Month April Current Fiscal Year
As shown above in the picture the first contract # happened to be from Row 6 to row 8 but can be expanded based on the number of transactions. In Month of April Row 6 Column AU will be replaced by the amount found in Row 6 Column BG Current Fiscal Year. Then clear the corresponding row column of the current fiscal year only after copying the value to the corresponding month row & column of the same month but last fiscal year.
This process will be done throughout all the rows until last row containing data.
Hope someone could help me achieve that using VBA so I can integrate that macro and using a button to trigger the macro every time a new fiscal year is reached.
I need your help.
Regards,
Chuck
Then in Column “BG” to “BR” the column for the current Fiscal year totals for each month.
So now the objective is that when the date of the system reaches April first in the current year I want all the data to be moved from let us say month of April to last Fiscal year April corresponding row and column. But keep the formula intact in the black row which contains for each month the corresponding formula.
Month April last Fiscal year
HTML:
=SUMIF($A:$A,"="&INDIRECT("$A"&ROW()+1),AU:AU)
Month April Current Fiscal Year
HTML:
=SUMIF($A:$A,"="&INDIRECT("$A"&ROW()+1),BG:BG)
As shown above in the picture the first contract # happened to be from Row 6 to row 8 but can be expanded based on the number of transactions. In Month of April Row 6 Column AU will be replaced by the amount found in Row 6 Column BG Current Fiscal Year. Then clear the corresponding row column of the current fiscal year only after copying the value to the corresponding month row & column of the same month but last fiscal year.
This process will be done throughout all the rows until last row containing data.
Hope someone could help me achieve that using VBA so I can integrate that macro and using a button to trigger the macro every time a new fiscal year is reached.
I need your help.
Regards,
Chuck