Is there a formula that enables you to seperate out a string a numbers
in a cell to three different cells.
like a social security number.
For example:
Starting with
675-97-7876 in A1
Conclusion
675 in B1
97 in C1
7876 in D1
Thanks in advance
It depends on whether the SSN is a formatted number, or a text string.
If it is a text string, then using the Data/Text to Columns wizard with
<hyphen> as the delimiter is probably the simplest.
One could also use text formulas:
B1: =LEFT(A1,3)
C1: =MID(A1,5,2)
D1: =RIGHT(A1,4)
If it is a formatted number, then:
B1: =LEFT(TEXT(A1,"000-00-0000"),3)
C1: =MID(TEXT(A1,"000-00-0000"),5,2)
D1: =RIGHT(TEXT(A1,"000-00-0000"),4)
--------------------------
The above formulas will return text strings. If you need them to be numeric,
then precede each formula with a double unary; e.g. =--LEFT(A1,3)
----------------------------------
Also, if the SSN is a number, then:
B1: =INT(A1/10^6)
C1: =MOD(INT(A1/10^4),100)
D1: =MOD(A1,10^4)
will return numbers.
--ron