The substitution of one ion for another on a charged solid substrate such as a clay, zeolite or resin.