Hi @Kenshin (@bosco_yip, it's a pleasure match the post with you.)
First, sorry for my english.
When someone tries to help you, the least you should do is say something about that help.
Now, I leave another solution without volatile functions. Is an array formula, you must press Ctrl + Shift + Enter to get the right result (and not just enter).