DonkeyOte,

Thank you very much. Those two formulas are exactly what I was looking for. I can see now why I was getting #REF! errors. Thanks again!