Joining Cells...

NY_Rican

New Member
Joined
Jan 13, 2022
Messages
18
Office Version
  1. 2021
Platform
  1. Windows
Joining Cells...A1 has social security numbers (123-45-6789). B1 has the name John Doe. I want C1 to be "John Doe 45-6789". Thank you all.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Is it always 3 digits and a dash that you want removed from the front of the social security number, or can the number of digits vary , e.g. 45-45-6789
 
Upvote 0
try;
=B1& " " &MID(A1,5,255) or
or
=B1 & " " & MID(A1,FIND("-",A1)+1,255)
 
Upvote 0
I need the end result to be the name, followed by the last 6 digits of the SSN, with the dash between (45-6789)
 
Upvote 0
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?
 
Upvote 0
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?
The social shows..."123-45-6789"
 
Upvote 0
Hi,

It sounds to me like your SSNs are just a 9 digit number formatted as SSN.

Try one of these:

Book3.xlsx
ABCDEF
1123-45-6789John DoeJohn Doe 45-6789John Doe 45-6789
Sheet937
Cell Formulas
RangeFormula
D1D1=B1&" "&REPLACE(RIGHT(A1,6),3,0,"-")
F1F1=B1&" "&MID(A1,4,2)&"-"&RIGHT(A1,4)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,429
Messages
6,124,842
Members
449,193
Latest member
MikeVol

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top