A b c d
4 3 1* * 8 2 6 * * 6 6 1 * * 228
4 4 1* * 8 5 3 * * 3 9 8 * * 4 9 4 * *
1 2 5* * 5 0 7 * * 7 2 3 * * 1 4 9 * *
1 8 1* * 7 7 3 * * 9 8 3 * * 0 1 0 * *
I have column A, B, C and D.... How to remove space of A, B, C D of numbers
A b c d
4 3 1* * 8 2 6 * * 6 6 1 * * 228
4 4 1* * 8 5 3 * * 3 9 8 * * 4 9 4 * *
1 2 5* * 5 0 7 * * 7 2 3 * * 1 4 9 * *
1 8 1* * 7 7 3 * * 9 8 3 * * 0 1 0 * *
I have column A, B, C and D.... How to remove space of A, B, C D of numbers
Try
=SUBSTITUTE(A1," ","")
Fill across and down.
Dave
I can't tell whether the spaces are embedded (that is in a column, you have number space number), or they are leading or trailing spaces.
@FlameRetired suggested SUBSTITUTE.
I think this will give you text.
If you want to have a number, you could use =VALUE(A1) which will ignore the leading or trailing spaces. It won't work with embedded spaces.
You would need to combine the two thus: =VALUE(SUBSTITUTE(A1," ",""))
I hope this helps, please let me know!
Regards,
David
If this has been helpful
- Please click on the *Add Reputation button at the bottom left.
Please mark your thread as SOLVED:
- Click Thread Tools above your first post, select "Mark your thread as Solved".
Uday1969
Use this TRIM function
=TRIM(A1)
Decio
Like deciog says - the WorksheetFunction Trim will remove internal spaces but the VBA Trim will not
If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)
You can't do one thing. XLAdept
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin
uday1969 the more I look at this the more I wonder. What do the "*" characters represent in the example? Are they spaces or literal "*"s?
Can you also post the desired output ... indicating if they are to be text (including or excluding "*"s) or numbers as David A Coop pointed out?
Please help, Need to remove space between numbers within a long text
For example:
POUCH, STERILIZATION, 3.5X4 4IN, SELF-SEALING, BLUE, TENTED TRANSPARENT FILM, EASY DETECTION, EXTERNAL AND INTERNAL INDICATOR, MULTIPLE SEAL, 10 00POUCHES/BOX
Desired Output
POUCH, STERILIZATION, 3.5X44IN, SELF-SEALING, BLUE, TENTED TRANSPARENT FILM, EASY DETECTION, EXTERNAL AND INTERNAL INDICATOR, MULTIPLE SEAL, 1000POUCHES/BOX
You are pushing your luck now. You already have your own thread on this.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks