any vs which

any

pron
  • Any thing(s) or person(s). 

adv
  • To even the slightest extent, at all. 

det
  • One at all; at least one; at least one kind of; some; a positive quantity of. 

  • No matter what kind. 

which

pron
  • The/Any ones that; whichever. 

  • What one or ones (of those mentioned or implied). 

  • Introduces a relative clause giving further information about something previously mentioned. 

det
  • What, of those mentioned or implied. 

  • The/Any ... that; whichever. 

  • Designates the one(s) previously mentioned. 

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