Dilip Shanghvi of Sun Pharmaceuticals, with a net worth of $21.5 billion, surpassed Mukesh Ambani as the world’s richest Indian on Wednesday, two days after the Reliance Industries Ltd. chief was ranked India’s wealthiest for the eighth consecutive year.

A real-time update by the business magazine Forbes reworked the rankings. On the global rich list, Mr. Shanghvi moved up to the 37th position, while Mr. Ambani slipped to the 43rd.

Earlier on Monday, Forbes released its annual rich list for 2015, ranking Mr. Ambani at the 39th position and Mr. Shanghvi at the 44th. Azim Premji of Wipro was ranked 48th, from which he has moved up one place now. Mr. Shanghvi’s net worth stood at $ 21.5 billion, following a sharp rally in the share prices of his group companies.