adam_neb
Board Regular
- Joined
- Jun 9, 2002
- Messages
- 101
I have a formula in excel that changes a 5-digit zip code into a 3-dight zip code:
'=IF(LEN(C2)=5,LEFT(C2,3),IF(LEN(C2)=4,CONCATENATE("0",LEFT(C2,2)),""))
Where c2 is Field Name CUCODS.
I need to take the CUCODS (zip code field) in the table and get the corresponding 3 digit zip code.
Some records may have a 4 digit zip code, but there is a leading 0 that is not showing ex: Springfield, MA is zip 01101, but may show 1101. I need the output to recognize that the three digit zip is 011 NOT 110.
Any help appreciated. My data set is too large for my excel formual to work 250,000+ records.
Adam
'=IF(LEN(C2)=5,LEFT(C2,3),IF(LEN(C2)=4,CONCATENATE("0",LEFT(C2,2)),""))
Where c2 is Field Name CUCODS.
I need to take the CUCODS (zip code field) in the table and get the corresponding 3 digit zip code.
Some records may have a 4 digit zip code, but there is a leading 0 that is not showing ex: Springfield, MA is zip 01101, but may show 1101. I need the output to recognize that the three digit zip is 011 NOT 110.
Any help appreciated. My data set is too large for my excel formual to work 250,000+ records.
Adam