The consumer price index excluding fresh food rose 1.8% in July from a year earlier, picking up from a 1.6% advance in the previous month.