Data for S&P 500 at end of Q2 for each indicated year from Standard and Poor. 2019 market cap is $24.42 trillion.