Not sure if this is what you try to do but here is a general way to display list of data in 3 per row:
$counter = 0;
echo '<div class="row">';
while (has_sub_field('company_members')) {
echo ($counter++ % 3 == 0) ? '</div><div class="row">' : '';
get_template_part('team-member-box');
}
echo '</div>';
Explained:
has_sub_field it loops all company_members, I guess get_template_part
renders some html using the current item. See the_sub_field('content')
in the above link.
The $counter
is not related to above behavior it is just used to separate the results in chunks of 3 and wrapping them in divs.