@fairymemay
FYI, There is another approach
So, it writes total rows in C Column without using for each