![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 7
|
I know that there is a TRIM function that delete extra space between words in a cell. How do you delete all space in a cell.
ex. "White Space" == "WhiteSpace" Is there a function for it, that is similiar to TRIM function? Thank you. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,030
|
Hiya,
how about: =Substitute(A2," ","") Adam |
|
|
|
|
|
#3 |
|
New Member
Join Date: Jun 2011
Posts: 4
|
=UPPER(CONCATENATE((TRIM(LEFT(A1,2))),(RIGHT(A1,5))))
eg. ND 10552 = ND10552 |
|
|
|
|
|
#4 | |
|
Board Regular
Join Date: Aug 2010
Location: Glevum Castra, Britannia
Posts: 5,284
|
Quote:
Also, why are you using UPPER? Still, she'll be deeply moved by the fact that we're still reading her posts after nine years!
__________________
R. --- On two occasions I have been asked, 'Pray, Mr Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. Last edited by Ruddles; Jun 23rd, 2011 at 09:43 AM. |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Jun 2011
Posts: 4
|
You can adjust the "2" to the desired length of your strings. Wont work for different lengths. Unless u use a LEN function somehow....lol ya, i saw it this year only!!
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Sep 2011
Posts: 9
|
Nice!! The Substitute formula worked perfectly!!
Woohooo!!
|
|
|
|
|
|
#7 |
|
New Member
Join Date: Jul 2011
Posts: 2
|
Perfect! The "Substitute" formula worked a treat!
|
|
|
|
|
|
#8 |
|
New Member
Join Date: Dec 2011
Posts: 1
|
Substitute Formula Really waorks Thanks
|
|
|
|
|
|
#9 |
|
New Member
Join Date: Jan 2012
Posts: 1
|
substitute is a great method
Last edited by alansolars3h; Jan 10th, 2012 at 02:53 PM. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|