Hi Guru,
Please advise. if i 'd like to remove blank in front of text or number and the end.
I tried to use Trim , Substitute but not work.
Please see attachment.
Thanks.
Hi Guru,
Please advise. if i 'd like to remove blank in front of text or number and the end.
I tried to use Trim , Substitute but not work.
Please see attachment.
Thanks.
Is this using Excel 2010 or something newer?
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.
Dear Aign,
i think MS 360.
There is no such thing - do you mean MS365?
Please update your profile NOW to reflect this change. Thanks.
You have non-breaking spaces. Try copying and pasting this into your cell:
The space character was entered into the formula by holding down the ALT key and typing 0160 on the numeric keypad, then releasing the ALT key.Please Login or Register to view this content.
Last edited by AliGW; 07-27-2023 at 03:11 AM. Reason: Workbook added.
or:
=SUBSTITUTE(A2,CHAR(160),"")+0
which has the same effect.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh
Hi Align,
your formula same with my original formular. It not work.
or indeed (no formula dragging), delete all expected results forst:
=SUBSTITUTE(A2:A4,CHAR(160),"")+0
Hi Align,
sorry , not same but shown as Value.
No, it is NOT the same. I said this:your formula same with my original formular. It not work.
AND I provided a workbook to show it working.The space character was entered into the formula by holding down the ALT key and typing 0160 on the numeric keypad, then releasing the ALT key.
Please look again.
Don't know what this means, but you could try:sorry , not same but shown as Value.
Please Login or Register to view this content.
Hi Glenn Kennedy,
both formula are work.
may i ask ? why Char (160) why 160.
thanks so much.
My formula works, too - look at the workbook I provided!
CHAR(160) is the same as typing ALT+0160. Our formulae do the same thing in a different way character 160 is a non-breaking space (ASCII code 0160).
If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.
Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
Last edited by AliGW; 07-27-2023 at 03:25 AM.
There are non breaking spaces before your value and there is a real space behind your value,
Please try:Formula:Please Login or Register to view this content.
Last edited by HansDouwe; 07-27-2023 at 03:27 AM.
CHAR 160 is a non-breaking space, commonly used on the www. It can not be removed with TRIM and needs a bit of extra work. It's easier to add it, hard-coded into the formula rather than using ALT-160 which clearly didn't work easily for you.
In Excel, CHAR(160) represents a non-breaking space character.
A non-breaking space (also known as NBSP) is a special type of space character that prevents the line from breaking at that point. It is commonly used in situations where you want to keep two words or elements together on the same line without allowing a line break between them. This is useful, for example, in preventing awkward line breaks between words or keeping numerical values and their units together.
It can be common when exporting data from external systems into Excel.
If things don't change they stay the same
Some insight about cleaning "dirty" data https://www.rondebruin.nl/win/s9/win017.htm
Marked as SOLVED.
If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
Hi all,
thanks for all you guy to help me.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks