Using wp_trim_excerpt to get the_excerpt() outside the loop
Since WP 3.3.0, wp_trim_words() is helpful if you’re able to get the content that you want to generate an excerpt for. Hope that’s helpful to someone and it saves creating your own word counting function. http://codex.wordpress.org/Function_Reference/wp_trim_words