You are beginning with a <?for-each-group?> but ending with an <?end for-each?>. Change to <?end for-each-group?>.
Problem 2: Merged/Split cells
"For" loops should be for an entire row. They get really messy and unpredictable when you use them with merged and/or split cells. You can nest the for loops inside one another, but make sure they include entire line. Like this:
Problem 1: Ending with incorrect tags
You are beginning with a
<?for-each-group?>
but ending with an<?end for-each?>
. Change to<?end for-each-group?>
.Problem 2: Merged/Split cells
"For" loops should be for an entire row. They get really messy and unpredictable when you use them with merged and/or split cells. You can nest the for loops inside one another, but make sure they include entire line. Like this: