Guys, thank you so much for the help. The formula is indeed working great.
Just wanted one more tip. I am using this formula in a different tab of the spreadsheet. The actual values are in the adjacent tab. once I am saving this formula and pressing enter, I am seeing a wierd dotted lines randomly in the sheet. These are disturbing the view.
These are not gridlines as I have tried to get rid of them. Can you please tell why I am seeing it and what I should do in order to get rid of them.
Thanks,
Sid
You should open a new thread for Your own case.
... it'll be smoother for You to upload a sample Excel-file to show You case.
This few Years old thread is closed now.