An invariance formula in the class of generalized p-variable quasiarithmetic means is provided. An effective form of the limit of the sequence of iterates of mean-type mappings of this type is given. An application to determining functions which are invariant with respect to generalized quasiarithmetic mean-type mappings is presented.