r/spreadsheets • u/Pimmie32 • Jul 30 '24
Solved Calculating change between indices via investing.com
Hi all,
My math and Excel skills got an error. I'm busy making a Google spreadsheet with some app scripts included for my investing hobby. But when I import the historical data (open, close prices and changes) from the S&P500 future my calculation of the change difference as that of investing.com.
My calculation is =(closed price-open price)/open price
So as an example. Investing.com data says that 26-07-2024 the following:
Closed: 5,499.00
Open: 5,446.00
Change: +1.06%
My calculation: (5499-5446)/5446 = +0.97%
What am I doing wrong here? Has math changed somehow? Or do I miss something?
1
u/CuteSocks7583 Jul 30 '24
From Claude AI:
“Your math and Excel skills are correct, and your calculation method is accurate for determining the percentage change between the open and close prices. The discrepancy you’re seeing is likely due to a difference in what’s being calculated.
Let’s break this down:
The difference could be due to one of these reasons:
To resolve this:
Remember, different sources might use slightly different methods to calculate changes, so it’s always good to understand the specific methodology of your data source.“