KEY POINTS
  • A gain on investments benefited Salesforce's adjusted earnings in the quarter. 
  • The company's full-year guidance beat expectations, but earnings guidance for the current quarter was soft.
Marc Benioff, chairman and chief executive officer of Salesforce.com speaks during the grand opening ceremonies for the Salesforce Tower in San Francisco on May 22, 2018.

Salesforce shares rose as much as 14% in extended trading Tuesday after the enterprise-software company reported fiscal second-quarter earnings that surpassed analysts' expectations, the day after S&P Dow Jones Indices said Salesforce will replace Exxon Mobil in the 30-stock Dow Jones Industrial Average on Aug. 31.

Here's how the company did: