How to solve this equation for tidal correction

Feb 2018
Hello everyone, I had been trying for days how to solve the following equation in Spreadsheet:

using the dataset below:

I am getting frustrated of myself for being so hard to learn. i hope somebody can help me get through this. thank you.