Konigsfeldt
New Member
- Joined
- Jun 17, 2020
- Messages
- 13
- Office Version
- 365
- Platform
- Windows
Hi all,
I have rows with budget amounts that are totals for a year, but want to split them into 4 rows in same sheet, changing the date from 01-01-20XX to 01-01, 01-04, 01-07 & 01-10 and furthermore divide the amount with 4. (So I can compare with actuals by quarter when pivoting)
The variable is in column "C", and says "Budget", which determines whether it should be quartered or not. Column "C" contains other values as well, such as "Actual" and "Opening post", and those should be skipped - but all budget rows should be quartered and pasted to the bottom (or anywhere in the dataset, as long as the entire dataset can be marked with crtl+shift+down). The sheet is called "Rawdata", and lastrow is column "AB".
The code should do the following (example with first budget row):
to:
Hope it makes sense!
Thanks for any help on this.
/Jacob
I have rows with budget amounts that are totals for a year, but want to split them into 4 rows in same sheet, changing the date from 01-01-20XX to 01-01, 01-04, 01-07 & 01-10 and furthermore divide the amount with 4. (So I can compare with actuals by quarter when pivoting)
The variable is in column "C", and says "Budget", which determines whether it should be quartered or not. Column "C" contains other values as well, such as "Actual" and "Opening post", and those should be skipped - but all budget rows should be quartered and pasted to the bottom (or anywhere in the dataset, as long as the entire dataset can be marked with crtl+shift+down). The sheet is called "Rawdata", and lastrow is column "AB".
The code should do the following (example with first budget row):
to:
Hope it makes sense!
Thanks for any help on this.
/Jacob