To replace or substitute one thing with another; to switch or change (transitive).
古いランプを新しいものと入れ替えた。
I replaced the old lamp with a new one.
選手を一人入れ替えて、フォーメーションを調整した。
We substituted one player and adjusted the formation.
表のデータと裏のデータを入れ替えると計算結果が変わる。
If you swap the front and back data, the calculation result changes.
To move something or transfer it to another place (transitive).
棚の本を全部入れ替えて並び順を変えた。
I rearranged the books on the shelf, changing their order.
配送センターは荷物の仕分け先を入れ替えた。
The distribution center changed the destinations for sorting the packages.