Look at the diagram – notice:
Endothermic (as drawn) – ionisation, atomisation, sublimation
Exothermic (as drawn) – Formation, electron affinity, lattice formation
And all of the relationships follow Hess’s law, any two paths will have the same enthalpy.
As one equation, LHS = RHS:
But remember you may have more than one ΔHat, ΔHi, ΔHdiss or ΔHea