I think I am making it difficult. A1 can be the name and B1 the SSnI need the end result to be the name, followed by the last 6 digits of the SSN, with the dash between (45-6789)
That works with "6" instead of "7", but I need that "-" between the first 2 digits and the last 4Try
Excel Formula:=B1&" "&Right(A1,7)
The social shows..."123-45-6789"Is the Social Security Number enclosed in parentheses the way your post seems to show?
Is the Social Security Number in the cell the way you show or do you have a 9-digit number in the cell and add the dashes (and maybe the parentheses) using cell formatting?
Book3.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | 123-45-6789 | John Doe | John Doe 45-6789 | John Doe 45-6789 | ||||
Sheet937 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D1 | D1 | =B1&" "&REPLACE(RIGHT(A1,6),3,0,"-") |
F1 | F1 | =B1&" "&MID(A1,4,2)&"-"&RIGHT(A1,4) |