The Ferrell-Glover-Tinkham (FGT) sum rule has been applied to the temperature dependence of the in-plane optical conductivity of optimally-doped YBa_2Cu_3O_{6.95} and underdoped YBa_2Cu_3O_{6.60}. Within the accuracy of the experiment, the sum rule is obeyed in both materials. However, the energy scale omega_c required to recover the full strength of the superfluid rho_s in the two materials is dramatically different; omega_c simeq 800 cm^{-1} in the optimally doped system (close to twice the maximum of the superconducting gap, 2Delta_0), but omega_c gtrsim 5000 cm^{-1} in the underdoped system. In both materials, the normal-state scattering rate close to the critical temperature is small, Gamma < 2Delta_0, so that the materials are not in the dirty limit and the relevant energy scale for rho_s in a BCS material should be twice the energy gap. The FGT sum rule in the optimally-doped material suggests that the majority of the spectral weight of the condensate comes from energies below 2Delta_0, which is consistent with a BCS material in which the condensate originates from a Fermi liquid normal state. In the underdoped material the larger energy scale may be a result of the non-Fermi liquid nature of the normal state. The dramatically different energy scales suggest that the nature of the normal state creates specific conditions for observing the different aspects of what is presumably a central mechanism for superconductivity in these materials.