title: How to split a string of text in excel based on a given word?
body: <p>I  have a list of combinations of companies, cities, and states in excel, each a string. I would like to split the string of words based on a given word (the city name) and the result to be two columns, one with with company name, one with the city and state. </p>
  
  <p>Splitting on space or symbol delimiters doesn't work because the companies don't all have one word names, and similar for cities. </p>
  
  <p>I have thousands of records and would like to loop this as well. I've tried the SPLIT() function in VBA but not sure how to loop it. </p>
  
  <pre><code>Initial                     Splitting word  Result 1     Result 2
  Clean Choc Detroit MI       Detroit         Clean Choc  Detroit MI
  Space Kites Des Moines IA   Des Moines      Space Kites Des Moines IA
  Tattoosie Chicago IL        Chicago         Tattoosie   Chicago IL
  One for Two New York City NYNew York City   One for Two New York City NY
  Limonistas Carlsbad CA      Carlsbad        Limonistas  Carlsbad CA
  </code></pre>