Wonderfully Weird function in Excel

Wonderfully Weird function in Excel