U.S. stocks closed mildly lower on Friday, the final day of trade for July, as investors digested energy earnings misses and soft data that could push an initial rate hike further out. (Tweet This)

Stocks were mixed to slightly lower in afternoon trade after earlier attempting to rally. The Nasdaq struggled to hold higher in afternoon trade as shares of major tech firms declined. The S&P 500 and Dow Jones industrial average traded lower as declines in energy stocks weighed.