Earnings can be down yet S&P goes up lots of years.

It's because during a bad year, people sell off and prices are down (like last year let's say 20 or 30% down). Then the next year so much has been discounted that with a low earning report people can still be buying saying yeah that's fine that's discounted already. They're anticipating.