I am afraid that there is no formula that can do this...you can make your custom function and use it but that is as good as the VBA code that I have provided above...
Are you not allowed to use vba, or just uncomfortable w/it?
I am very much fond of VBA code, I used to write till the previous version of xls file, now a days you can not make xlsx file with vba code attached what I understand, that is why I am avoiding using vba code for portability purpose.
Anyway, if you also can guide me how to use any addin in the menu bar it is welcome.