I don't have a spreadsheet for it, but I do know the typical 4-step process is:
a) everyone first gets their 3% to cover TH
b) only then does the "excess piece" kick in, where folks next get up to 3% of their excess pay. If the contribution is just barely over a flat 3%, then you get a somewhat odd-looking case of people maybe getting 3% of pay plus only 0.6% of their excess pay. But often the whole 3% on excess pay (above the integration level) ends up filling up, too.
c) Then with everyone at 3+3, you scale everyone up to as high as 4.3, 5.4, or 5.7% of combined "compensation plus excess compensation", depending on your integration level. Here's where, if the contribution amount runs out, you might end up the folks all getting 5.2% of compensation plus 5.2% of excess compensation (it's the same rate in both parts there, unlike in (b) above
d) Once everyone's maxed out their excess piece there, the rest is pro rata, comp to comp.