I thought I had the formula correct to pull the "state" part out of cell A1 but am coming up blank. Below is the example and the formula I modified from an April posting.
Example: Two Rivers, WI 54241
cell C1 has =IF(ISERR(MID(A1,FIND(",",A1)+2,IF(ISERR(FIND(",",A1,FIND(",",A1)+1)),FIND(",",A1),FIND(",",A1,FIND(",",A1)+1))-FIND(",",A1)-1)),"",MID(A1,FIND(",",A1)+1,IF(ISERR(FIND(",",A1,FIND(",",A1)+1)),FIND(",",A1),FIND(",",A1,FIND(",",A1)+1))-FIND(",",A1)-1))
I found a formula that Hayton posted back in April and thought I modified correctly -- was wrong. Can someone give me some insight here.
B1 pulls out the "city" and cell D1 is getting the ZIP... just having "small" problem with the state.
Thank you
Example: Two Rivers, WI 54241
cell C1 has =IF(ISERR(MID(A1,FIND(",",A1)+2,IF(ISERR(FIND(",",A1,FIND(",",A1)+1)),FIND(",",A1),FIND(",",A1,FIND(",",A1)+1))-FIND(",",A1)-1)),"",MID(A1,FIND(",",A1)+1,IF(ISERR(FIND(",",A1,FIND(",",A1)+1)),FIND(",",A1),FIND(",",A1,FIND(",",A1)+1))-FIND(",",A1)-1))
I found a formula that Hayton posted back in April and thought I modified correctly -- was wrong. Can someone give me some insight here.
B1 pulls out the "city" and cell D1 is getting the ZIP... just having "small" problem with the state.
Thank you