The cell membrane has an incredible job. It surrounds the cell and lets in and out a variety of material. Each molecule gets in and out of the cell in its unique way. See link
http://www.pbslearningmedia.org/resource/tdc02.sci.life.cell.membraneweb/ce...