Thanks to the both of you. That will do exactly what I want. The macro was way over my head but the formulas made sense once I looked at them. I'm sure I will be here again for something else.