Consumer companies rose after mixed inflation data offset weak earnings from European consumer-products giants.