KEY POINTS
  • "I love a nice, clean story as much as the next guy, but confusing situations like Salesforce and Costco ... often make for the best long-term opportunities," CNBC's Jim Cramer said.
  • "And in both cases, history tells me that you've gotta buy them when they're weak," he said.

Salesforce and Costco both presented investors an opportunity to buy after both stocks pulled back on suboptimal reports, CNBC's Jim Cramer said Friday.

Shares of Costco slipped 0.35% and Salesforce backtracked 3.5% after a mixed quarter report from the former and soft guidance offered by the latter.