Hi, Thank the formula works... Small question....how will the formula change no of rows increased to lets say 60?? because simply increasing the existing ranges to 60 doesn't yield any output... How should the formula need to be changed in order to incorporate more rows? Thank you in advance