I know this post is old, but I want to thank you for uploading the excel sheet. I am new to excel and I was able o understand the formula and apply it, it was exactly was i was looking for. thanks again for taking the time to answer. yuli