in the end vs lastly

in the end

prep
  • After a thorough examination of the situation 

  • Eventually, finally. 

lastly

adv
  • Used to signal that the speaker is about to yield control of the conversation. 

  • Used to mark the beginning of the last in a list of items or propositions. 

How often have the words in the end and lastly occurred in a corpus of books? (source: Google Ngram Viewer )