by any means vs in any way

by any means

prep
  • Using whatever method or strategy is required. 

  • In any manner whatsoever; at all. 

in any way

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