Closing the gender gap in corporate America is far from being a reality, a new report finds.

In fact, women are "unable to enter" a number of sectors--particularly automotive and industrial manufacturing, energy and basic materials, and technology, says the research from McKinsey and LeanIn.org, Facebook COO Sheryl Sandberg's nonprofit.

The report, which collected data from 30,000 employees in 118 companies in the U.S. across nine industries, suggests that the gender disparity is due mainly to a pipeline problem. Women make up only 20 percent of bachelor's degrees, 24 percent of master's degrees, and 23 percent of doctorates in engineering.

As a result, women are either "unable to enter" certain fields, "stuck in the middle" when they do get in, or are "locked out of top" positions, the report says.

In tech, only 37 percent of entry level jobs are filled by women and only 15 percent of women hold chief officer positions. Energy, automotive and industrial manufacturing industries have similar numbers.

The study found that 38 percent of women in tech "feel that their gender will make it difficult for them to advance in the future."

Some sectors are able to fill entry level jobs with women but fail to promote women. In healthcare and pharmaceuticals, women make up 59 percent of entry level jobs, but only 19 percent and 32 percent of vice president and c-suite positions, respectively. Similar percentages are found across logistics and transportation and hospitality.

Retail and consumer goods, media and telecom, and financial and professional services are good at attracting women into entry level jobs and promoting them into middle management roles, but still struggle in promoting women to executive positions.

In the retail sector, women make up 46 percent of all entry-level jobs and 36 percent of senior management and director roles, but only 13 percent of women in this industry make it to executive positions. In the entire sample, women were 92 percent as likely as their male counterparts to make the jump from senior vice president to executive roles, but in retail and consumer goods the odds drops to 45 percent.

Alexis Krivkovich and Lareina Yee, principals in McKinsey's San Francisco office, and Eric Kutcher, director in the Silicon Valley office, write in the report that they hope these numbers help companies across all industries take a look in the mirror.

"Our hope is that if companies can recognize themselves in one of these patterns, they will be better able to target their gender initiatives," Krivkovich, Yee, and Kutcher write.