Google Docs has made it very easy to track your portfolio and stocks online. They provide a simple way to retrieve the latest stock price, P/E ratio, Market cap and other attributes.
You need a Google account to use this. Visit [docs.google.com] and create a new spreadsheet.
Lets look at one simple example
To insert the current price of Google stock: