The present invention provides a method of preparing an isolated oligosaccharide or glycolipid by preparing the oligosaccharide or glycolipid having a hydrophobic group, such as a perfluorinated alkyl or a fatty acid, and separating the oligosaccharide or glycolipid using a solid-phase extraction cartridge.