William Henry Harrison

The ninth president, William Henry Harrison, spent the shortest time in office. One year before he was elected president he served in the House of Representatives, the Ohio State Senate and the United States Senate. He ran unsuccessfully for president in 1836, then was elected president in 1840.

Source: The Presidents of the United States