Hello!!
Is there a way to check if two commas exist in a cell? In cell H3 of my worksheet users will enter an address and I want to make sure they use two commas when entering an address as another sheet takes this address and splits it. for example: 123 ABC st Moraga CA 97501 should read, 123 ABC st, Moraga, CA 97501. If the user does not enter two commas in cell H3 I would like a msgbox to appear instructing the user to enter a comma after the street address and after the city and the cell contents to be cleared.
possible workaround: the reason for this, is another sheet splits this address up to show the street address in one cell, and the cell below that will contain the city, state and zip. I haven't found a way using a formula or vba to split the address without the use of commas. As sometimes there will be a city with two names and every street address entered could be different. Using commas seemed to be the best solution, unless someone can provide another solution?
Any help would be greatly appreciated!!
Is there a way to check if two commas exist in a cell? In cell H3 of my worksheet users will enter an address and I want to make sure they use two commas when entering an address as another sheet takes this address and splits it. for example: 123 ABC st Moraga CA 97501 should read, 123 ABC st, Moraga, CA 97501. If the user does not enter two commas in cell H3 I would like a msgbox to appear instructing the user to enter a comma after the street address and after the city and the cell contents to be cleared.
possible workaround: the reason for this, is another sheet splits this address up to show the street address in one cell, and the cell below that will contain the city, state and zip. I haven't found a way using a formula or vba to split the address without the use of commas. As sometimes there will be a city with two names and every street address entered could be different. Using commas seemed to be the best solution, unless someone can provide another solution?
Any help would be greatly appreciated!!