In previous articles we derived and tested the quasi-Gaussian entropy theory, a description of the excess Helmholtz free energy in terms of the potential energy distribution, instead of the configurational partition function. We obtained in this way the temperature dependence of thermodynamic functions in the canonical ensemble assuming a Gaussian, Gamma or Inverse Gaussian distribution. In this article we extend the theory to describe the temperature dependence of thermodynamic properties in an exact way in the isothermal-isobaric and grand canonical ensemble, using the distribution of the appropriate heat function. For both ensembles restrictions on and implications of these distributions are discussed, and the thermodynamics assuming a G...