for it vs in it

for it

prep
  • Facing punishment for a misdeed. 

  • In order to attain some implied goal. 

  • Corresponding in volume. 

  • Used other than figuratively or idiomatically: see for, it. 

in it

prep
  • In trouble. 

  • Taking part in something, such as a lottery. 

  • Having an expected payout or reward. 

  • Getting on successfully, especially in a game. 

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