This column was originally published on RealMoney on July 20 at 10:03 a.m. EDT. It's being republished as a bonus for TheStreet.com readers.

Are we supposed to sell all of those Kelloggs ( K) and Hersheys ( HSY) and Altrias ( MO) right now, now that the Fed might almost be done raising interest rates?

History's unclear. In 2000, you got outperformance from the group for at least nine months because we didn't avoid a recession.

But after that, they treaded water as the cyclicals (but not the techs) went nuts to the upside.

I believe that you have to maintain a balance. The other day I told ActionAlerts PLUS subscribers that the cyclicals had now gone down too far and that you had to switch to buying them.

My advice is to use the weakness in the staples to pick up the ones that can have upside surprises from here or ones that are restructuring. That means yes to an Altria or a drug company that is just turning around. But for the slower-growth plays, the Hersheys and the General Mills ( GIS) and the Kelloggs and the Cokes ( KO), those have to come in.

The only real staples that have earnings momentum, the only real ones that can surprise to the upside, are Pepsi ( PEP), Walgreens ( WAG) and McDonald's ( MCD). I would be buyers of all of them as they came down in this rotation.

At the time of publication, Cramer was long Altria.

Jim Cramer is a director and co-founder of TheStreet.com. He contributes daily market commentary for TheStreet.com's sites and serves as an adviser to the company's CEO. Outside contributing columnists for TheStreet.com and RealMoney.com, including Cramer, may, from time to time, write about stocks in which they have a position. In such cases, appropriate disclosure is made. To see his personal portfolio and find out what trades Cramer will make before he makes them, sign up for Action Alerts PLUS. Listen to Cramer's RealMoney Radio show on your computer; just click here. Watch Cramer on "Mad Money" at 6 p.m. ET weeknights on CNBC. Click here to order Cramer's latest book, "Real Money: Sane Investing in an Insane World," click here to get his second book, "You Got Screwed!" and click here to order Cramer's autobiography, "Confessions of a Street Addict." While he cannot provide personalized investment advice or recommendations, he invites you to send comments on his column by clicking here.

TheStreet.com has a revenue-sharing relationship with Traders' Library under which it receives a portion of the revenue from Traders' Library purchases by customers directed there from TheStreet.com.

More from Investing

It's National Fast Food Day -- Here's Where to Find Deals

It's National Fast Food Day -- Here's Where to Find Deals

Some Observations on Technical Analysis

Some Observations on Technical Analysis

Etsy, Other Specialty Retailers Tumble

Etsy, Other Specialty Retailers Tumble

Nvidia Is Still a Growth Stock to Bullish Buyers on Weakness

Nvidia Is Still a Growth Stock to Bullish Buyers on Weakness

Nvidia Will Only Appeal to Value Buyers With a Longer Term Time Frame

Nvidia Will Only Appeal to Value Buyers With a Longer Term Time Frame