Hi all,
I run a macro like like this on screenshot attached below:
but the column reference for the SUM part became XED and XEE.
Capture.PNG
I then autofilled it across the row, and in the immediate next column the column reference of the first reference in became C[0] (instead of C[29]), as shown in attachment below.
Capture2.PNG
Essentially what I am trying to do is, if the date is less than 30 days from the start date, sum cell-to-the-left and cell-below, if date is larger than 30 days then sum cell-below and the 29 cells to the left of it. Then autofill the row until a certain point (I have sorted the autofill bit out). I imagine this shouldn't be difficult but somehow I just can't make it work with a macro.
Any help much appreciated, please let me know if there is further information I need to provide. Thank you very much in advance.
Bookmarks