Similarly, your side receives a Combat Result bonus based on the best rank bonus in the fight, not the total rank bonus.
For example, if a unit of Goblins (with 2 extra ranks) and, from the same army, a unit of Trolls (with 1 extra rank) are involved in the same multiple combat, then the Extra Ranks Combat Result bonus earned is +2 – the Trolls' rank is ignored.