hopefully someone can help,
i have a sheet of data imported from an external source (the number of rows changes for each import)
i have 1 column which displays an employees Hours worked (eg row 4) and then various commisions (eg rows 5 - 9) for each date within the pay cycle
using vba i have seperated the commisions into another column, so now i have 1 column for "hours worked" and another column for "commisions"
i am trying to sum both of these columns which now include blanks, after searching the web i have found a way to acheive this using "DYNAMIC NAMED RANGES"
Here is what i have so far...
I am not sure what i am missing/doing incorrectly?
i would like it to sum the entire column from the first Numeric entry to the last, including the blanks...
Any help would be greatly appreciated
i have a sheet of data imported from an external source (the number of rows changes for each import)
i have 1 column which displays an employees Hours worked (eg row 4) and then various commisions (eg rows 5 - 9) for each date within the pay cycle
using vba i have seperated the commisions into another column, so now i have 1 column for "hours worked" and another column for "commisions"
i am trying to sum both of these columns which now include blanks, after searching the web i have found a way to acheive this using "DYNAMIC NAMED RANGES"
Here is what i have so far...
Code:
Range("E4:E" & Cells.End(xlDown).Row).Select
ActiveWorksheet.Names.Add Name:="SumHrs", RefersTo:= _
"=OFFSET($E$4,0,0,COUNT($E:$E),1)"
Range("A4").Select
Selection.End(xlDown).Select
Selection.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=SUM(SumHrs)"
I am not sure what i am missing/doing incorrectly?
i would like it to sum the entire column from the first Numeric entry to the last, including the blanks...
Any help would be greatly appreciated