X-ray absorption spectroscopy (XAS) and X-ray magnetic circular dichroism (XMCD) were used to probe the oxidation state and element specific magnetic moments of Mn in Heusler compounds with different crystallographic structure. The results were compared with theoretical calculations, and it was found that in full Heusler alloys, Mn is metallic (oxidation state near 0) on both sublattices. The magnetic moment is large and localized when octahedrally coordinated by the main group element, consistent with previous theoretical work, and reduced when the main group coordination is tetrahedral. By contrast, in the half Heusler compounds the magnetic moment of the Mn atoms is large and the oxidation state is +1 or +2. The magnetic and electronic properties of Mn in full and half Heusler compounds are strongly dependent on the structure and sublattice, a fact that can be exploited to design new materials.