Dairy company Fonterra and Rank Group Limited have reached an agreement that will return the Anchor Brand to Fonterra's product range in New Zealand.