Summarizing excel

in general it is a groupBy Case and is aggregating the gross premium