The detailed valence states of Mn and Fe ions in room-temperature ferromagnetic In2O3 doped with Mn and Fe ions were investigated by the near-edge X-ray absorption fine structure (NEXAFS) measurements. It was confirmed that Mn2+ and Mn3+ coexist in In2O3. In addition, it is suggested that the coexistence of Mn2+ and Mn3+ is mandatory for room-temperature ferromagnetism in Mn- and Fe-codoped In2O3.