Hello Buchu
right-click on the tab
choose - view code
in the window that will appear click insert menu - choose module
thenpaste the code given above by xladept in the window.close.
then you can use
=MoYr(C18)
btw save the workbook as macro-enabled workbook.
Bookmarks