See this is what exactly i meant, I aligned the data in a table like i showed you earlier and then applied a formula and if you see the results are exactly the same what you were getting.
All you need to note that the data is sorted in ascending order.
Enclosed is your workbook for your reference...
Saurabh...