How to get historical stock prices in excel

How can Excel be used to retrieve historical stock data over a time range?