Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
When importing external data into excel, I end up with 2 blank spaces before the data. Need to remove the 2 blanks spaces for all the cells in that column. Changed the format and tried decreasing indent, neither worked. Is there a formula or VBA code that would work? Thanks, Tom |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Tom
If you are sure it is always 2 spaces, then in another column enter =MID(A1,3,255) and copy down When finished copy your new column and Paste SpecialValues back over the original data to "fix the data". The helper column can then be deleted. Alternatively, if the data doesn't have other spaces within the source cells you could use =SUBSTITUTE(A1," ","") and repeat as above. -- Regards Roger Govier "Tom" wrote in message oups.com... Hello, When importing external data into excel, I end up with 2 blank spaces before the data. Need to remove the 2 blanks spaces for all the cells in that column. Changed the format and tried decreasing indent, neither worked. Is there a formula or VBA code that would work? Thanks, Tom |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
use the TRIM() function
-- Gary's Student gsnu200703 "Tom" wrote: Hello, When importing external data into excel, I end up with 2 blank spaces before the data. Need to remove the 2 blanks spaces for all the cells in that column. Changed the format and tried decreasing indent, neither worked. Is there a formula or VBA code that would work? Thanks, Tom |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Here's a link to a nice little macro that's perfect for this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall Biff "Tom" wrote in message oups.com... Hello, When importing external data into excel, I end up with 2 blank spaces before the data. Need to remove the 2 blanks spaces for all the cells in that column. Changed the format and tried decreasing indent, neither worked. Is there a formula or VBA code that would work? Thanks, Tom |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Got it working with the macro. Tried the =MID(A1,3,255) but didn't
work for me as needed. Thanks to all, Tom On Jan 29, 2:33 pm, "T. Valko" wrote: Here's a link to a nice little macro that's perfect for this: http://www.mvps.org/dmcritchie/excel/join.htm#trimall Biff "Tom" wrote in ooglegroups.com... Hello, When importing external data into excel, I end up with 2 blank spaces before the data. Need to remove the 2 blanks spaces for all the cells in that column. Changed the format and tried decreasing indent, neither worked. Is there a formula or VBA code that would work? Thanks, Tom- Hide quoted text -- Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumproduct issues | Excel Worksheet Functions | |||
Help with this conditional IF statement | Excel Discussion (Misc queries) | |||
CELL IS BLANK BUT NEED IT FILLED WITH SPACES TO A SPECIFIC LENGTH | Excel Worksheet Functions | |||
cell color index comparison | New Users to Excel | |||
Removing Spaces in a Cell | Excel Worksheet Functions |