Remove Spaces

Manny74

Board Regular
Joined
May 6, 2016
Messages
124
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi All,

My data is supposed to look a certain way ( see below)

I need to remove spaces between D, the ID # (for example DXH110817) and the last name Doe.

I'm trying to find an efficient fast way of doing this since I have about 50 records in my data.

Any suggestions?

So right now, it looks like this:

D DXH110817 DOE JOHN
D RXP011916 DOE JANE
D 173616018 DOE JAKE

But it should look like this:
DDXH110817DOEJOHN
DRXP011916DOEJANE
D173616018DOEJAKE

<tbody>
</tbody><colgroup><col><col></colgroup>

<tbody>
</tbody><colgroup><col><col><col><col></colgroup>
 
Oops, I missed the part where you said 5 columns (not 4):


Book1
ABCDEFGHIJKLMNOPQ
1DDXH110817DOEJOHNX201711086Z20.620171213958577066XHVDDXH110817DOEJOHNX201711086Z20.620171213958577066XHV
2DRXP011916DOEJANEX201601196Z20.620171017954772357XHVDRXP011916DOEJANEX201601196Z20.620171017954772357XHV
3D173616018DOEJUDEL201503276Z2120170403953854210XHVD173616018DOEJUDEL201503276Z2120170403953854210XHV
4DAEO110613DOEJILLE201311066B2020150922952860686XHVDAEO110613DOEJILLE201311066B2020150922952860686XHV
Sheet65
Cell Formulas
RangeFormula
M1=A1&B1&C1
N1=D1
O1=E1&F1&G1&H1
P1=I1
Q1=J1&K1
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Concatenate works! Thanks!

But in doing so, column G (06) should have 2 digits (zero and six), and when I concatenate, it removes the zero (0) and leaves it as 6....And I need the 06 as part of the data....

ABCDEFGHIJKLMNOP
1DDXH110817DOEJOHNX2017110806Z20.620171213958577066XHVDDXH110817DOE JOHNX201711086Z20.620171213958577066XHV
2DRXP011916DOEJANEX2016011906Z20.620171017954772357XHVDRXP011916DOE JANEX201601196Z20.620171017954772357XHV
3D173616018DOEJUDEL2015032706Z2120170403953854210XHVD173616018DOE JUDEL201503276Z2120170403953854210XHV
4DAEO110613DOEJILLE2013110606B2020150922952860686XHVDAEO110613DOE JILLE201311066B2020150922952860686XHV

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet65

Worksheet Formulas
CellFormula
M1=CONCATENATE(A1,B1,C1," ",D1)
N1=E1&F1&G1&H1
O1=I1
P1=J1&K1

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Formulas copied down.[/QUOTE]
 
Upvote 0
Is your G Column formatted as Text? Is it already showing the value as 06 ?

Seems to be working for me...


Book1
ABCDEFGHIJKLMNOPQ
1DDXH110817DOEJOHNX2017110806Z20.620171213958577066XHVDDXH110817DOEJOHNX2017110806Z20.620171213958577066XHV
2DRXP011916DOEJANEX2016011906Z20.620171017954772357XHVDRXP011916DOEJANEX2016011906Z20.620171017954772357XHV
3D173616018DOEJUDEL2015032706Z2120170403953854210XHVD173616018DOEJUDEL2015032706Z2120170403953854210XHV
4DAEO110613DOEJILLE2013110606B2020150922952860686XHVDAEO110613DOEJILLE2013110606B2020150922952860686XHV
Sheet65
Cell Formulas
RangeFormula
M1=A1&B1&C1
N1=D1
O1=E1&F1&G1&H1
P1=I1
Q1=J1&K1
 
Upvote 0
What do you see in the formula bar when you select G1, do you see 6 or 06 ?
If the Actual value in G is only 6, formatted to show as 06, then do this:


Book1
ABCDEFGHIJKLMNOPQ
6DDXH110817DOEJOHNX201711086Z20.620171213958577066XHVDDXH110817DOEJOHNX2017110806Z20.620171213958577066XHV
7DRXP011916DOEJANEX201601196Z20.620171017954772357XHVDRXP011916DOEJANEX2016011906Z20.620171017954772357XHV
8D173616018DOEJUDEL201503276Z2120170403953854210XHVD173616018DOEJUDEL2015032706Z2120170403953854210XHV
9DAEO110613DOEJILLE201311066B2020150922952860686XHVDAEO110613DOEJILLE2013110606B2020150922952860686XHV
Sheet65
Cell Formulas
RangeFormula
M6=A6&B6&C6
N6=D6
O6=E6&F6&TEXT(G6,"00")&H6
P6=I6
Q6=J6&K6
 
Upvote 0
When I select format cell and select Text, it changes 06, to 6....
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,946
Members
449,480
Latest member
yesitisasport

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