  We prove general fomulas for the deviations of two overpartition ranks from
the average. These formulas are in terms of Appell--Lerch series and sums of
quotients of theta functions and can be used, among other things, to recover
any of the numerous overpartition rank difference identities in the literature.
We give two illustrations.
