S
shaji
Hi
I am getting a file of prog. details daily in col.B contais Time Period,
col.G contains duration. The file contains data of prog. from morning to
night and I want sum the duration within each hour.
I put 6,7.....23 in K2:K19 and put the following formula in M2 and copied it
down.
=SUMPRODUCT(($G$2:$G$557)*(--(LEFT($B$2:$B$557,2))=K2))
the range will vary daily and i would like to have a macro for the above
calculation which i can run on arrival of the data.
thanks in advance
I am getting a file of prog. details daily in col.B contais Time Period,
col.G contains duration. The file contains data of prog. from morning to
night and I want sum the duration within each hour.
I put 6,7.....23 in K2:K19 and put the following formula in M2 and copied it
down.
=SUMPRODUCT(($G$2:$G$557)*(--(LEFT($B$2:$B$557,2))=K2))
the range will vary daily and i would like to have a macro for the above
calculation which i can run on arrival of the data.
thanks in advance