thats also a possibility and so is pivot table, but the cells where the =sumif would go would be relative to the other cells and amount of data in the top part take for example
Range("B42").Select
ActiveCell.FormulaR1C1 = _
"=SUMIF(R[-16]C[2]:R[-4]C[2],R[-16]C[2],R[-16]C[5]:R[-4]C[5])"
In another worksheet the range may start from B50 or B60, what i have been using is a macro to find the first blank row and offsetting like this
what you had in mind was
lastcell.offset(3,3).formular1c1 = "sumif( criteria )
this would not work because the relative offsets you be different depending on where the last cell for the offset would be located
I have tried to do an array, collection, object, but am not getting anywhere with this
Can anyone provide any assistance
Bookmarks