Chanoaguilas
New Member
- Joined
- Nov 19, 2018
- Messages
- 1
Hi guys,
I am new to using excel. so here's what I'm trying to do:
Some US zip codes have 9 digits and I want to a Hyphen "-" after the first 5 digits in a column. However, the same column also includes 5 digit ones so I am trying to use =IF(LEN(a2)>5,(REPLACE(a2,6,0,"-"))) but I can't seem to get it right. It should like this.
<colgroup><col></colgroup><tbody>
</tbody>Can I have some help, please? Thank you.
I am new to using excel. so here's what I'm trying to do:
Some US zip codes have 9 digits and I want to a Hyphen "-" after the first 5 digits in a column. However, the same column also includes 5 digit ones so I am trying to use =IF(LEN(a2)>5,(REPLACE(a2,6,0,"-"))) but I can't seem to get it right. It should like this.
21117-2111 |
21117 |
21234 |
20737-2073 |
21133-2113 |
21133-2113 |
20853 |
20850 |
<colgroup><col></colgroup><tbody>
</tbody>