Iced coffee can keep you awake longer, but the degree to which it affects your sleep quality is quite dismal. But, again, it also depends on your caffeine tolerance.