Adding a space at the end of a text string

TOFW

New Member
Joined
Sep 16, 2002
Messages
8
I need to add a single space to the end of a text string in a column of numbers of varying lengths. (Find and replace is somewhat limited)
Thanks for that which works for any length of number. I forgot to mention that some cells have no number and do not require a space!
What I'm actually trying to achieve but perhaps looking at the problem the wrong way is as follows
column 1 has a house number
column 2 has a street
I can use the following
=CONCATENATE(A1," ",A2)which works fine apart from it adds a space to the front of the result when column 1 has no number
eg
Column 1 is 88
Column 2 is Hill Street

Formula returns 88 Hill Street

Column 1 is Empty
Column 2 is Hill Street

Formula returns (space)88 Hill Street
Which means the address result is not aligned
Any ideas to help?
This message was edited by TOFW on 2002-09-19 02:47
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Thanks for that which works for any length of number. I forgot to mention that some cells have no number and do not require a space!
What I'm actually trying to achieve but perhaps looking at the problem the wrong way is as follows
column 1 has a house number
column 2 has a street
I can use the following
=CONCATENATE(A1," ",A2)which works fine apart from it adds a space to the front of the result when column 1 has no number
eg
Column 1 is 88
Column 2 is Hill Street

Formula returns 88 Hill Street

Column 1 is Empty
Column 2 is Hill Street

Formula returns (space)88 Hill Street
Which means the address result is not aligned
Any ideas to help?
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,424
Members
448,896
Latest member
MadMarty

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