I have a partial formula but am stumped. Can I reference a row with a column value?
Cells(r, c).FormulaR1C1 = "=IFERROR(((R(beginning 6000 in column Y)C:R(ending 6000 in column Y)C)*0.085)*R2C,0)
The formula needs to includes the 2019 (column H) numbers of the light green highlighted categories, major account 6000.00.
The kicker is that some of the individual stores has an extra category which will add 3 more rows to the 6000 category. I can't go backwards because some of the stores would be -28 rows and some would be -25 rows. This is why I was thinking of using a row reference. The far right hand column has the row number and beginning with that row number, every 3rd row value until the end row, including the end row. I put a formula in column J, row 164 for an example of end result.
I hope this makes sense and any help will be greatly appreciated. Thank you in advance for your assistance.
Bookmarks