I think that doing it in Excel would be a waste of time. If you just look at the closing prices, you can do the math in your head. For the Qs, $1 = 40.xxx NDX points, and $1 SPY = 9.9xxx S&P points. The exact value drifts over time, so you need to check it periodically. Over the last 12 months, the variation has been plus-or-minus 1.5%, and it can drift as much as plus-or-minus 8% over longer periods.
But the arbs keep the ratio from suddenly changing by an amount which would be large enough and last long enough for a retail trader to exploit.
As you know, comparing these to their corresponding futures is an entirely different story, depending on the time remaining until expiration, the risk-free interest rate, and the market's mood. That's why books about futures start by explaining things like backwardation, contango, and calculation of fair value.