Hello XLD,

That formula looks perfect for my needs! I've run some initial tests and it's working just the way I want.

Thanks a million. I've been struggling with it for a while.

DocBrown