I didn't expect to succeed, but somehow I managed to carry it off.
うまくいくとは思いもしなかったが、どういうわけかなんとかうまくやってのけられた。
Click the top sentence to go to tatoeba.org to translate it or leave a comment.