daniels012
Well-known Member
- Joined
- Jan 13, 2005
- Messages
- 5,219
I have in cell B7:
Raleigh, NC 27628
I use this in cell C10 to get only the zip code:
=right(mid(B7,1,find(",",B7,1)+10),5)
This works great for 5 numbers.
What can I add to my code to look for either a normal 5 number zip or 9 number zip?
ie: 27628 or 27628-6427
Thank You,
Michael
Raleigh, NC 27628
I use this in cell C10 to get only the zip code:
=right(mid(B7,1,find(",",B7,1)+10),5)
This works great for 5 numbers.
What can I add to my code to look for either a normal 5 number zip or 9 number zip?
ie: 27628 or 27628-6427
Thank You,
Michael