after importing TEXT data it won't align right

%3CLINGO-SUB%20id%3D%22lingo-sub-2241869%22%20slang%3D%22en-US%22%3Eafter%20importing%20TEXT%20data%20it%20won't%20align%20right%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2241869%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20used%20Excel%20for%20a%20long%20time.%26nbsp%3B%20I%20rarely%20come%20across%20an%20issue%20that%20I%20can't%20figure%20out%2C%20but%20this%20has%20me%20stumped.%26nbsp%3B%20I%20have%20looked%20extensively%20for%20answers%20on%20the%20web%20to%20no%20avail.%26nbsp%3B%20I%20have%20a%20database%20program%20that%20I%20need%20to%20Export%20data%20from%20into%20Excel%20365.%26nbsp%3B%20Some%20of%20the%20data%2C%20but%20not%20all%2C%20does%20not%20align%20right%20properly%2C%20and%20some%20of%20the%20data%20won't%20align%20left%20properly.%26nbsp%3B%3C%2FP%3E%3CP%3EEx%3A%20(The%20second%20number%20is%20the%20problem%20data)%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BAF4681%3C%2FP%3E%3CP%3EAF61270%3C%2FP%3E%3CP%3EI%20have%20tried%20to%20massage%20the%20data%20into%20another%20cell%20using%20the%20TRIM%20function%2C%20and%20it%20looks%20exactly%20the%20same%2C%20that%20is%2C%20it%20looks%20like%20it%20is%20aligned%20right%20with%20a%201.5%20space%20indent%20(impossible%2C%20I%20know).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20look%20at%20the%20text%20in%20the%20formula%20bar%2C%20the%20data%20appears%20with%20one%20very%20long%20space%20before%20the%20text%2C%20almost%20like%20a%20tab%20was%20inserted.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B______AF61270%3C%2FP%3E%3CP%3EIf%20I%20remove%20the%20very%20long%20single%20%22space%22%20by%20backspacing%201%20time%20or%20deleting%201%20time%2C%20formatting%20becomes%20normal.%3C%2FP%3E%3CP%3EAF61270%3C%2FP%3E%3CP%3ESome%20of%20the%20other%20data%20in%20the%20same%20column%20has%20the%20same%20issue%2C%20but%20some%20of%20it%20comes%20across%20with%20a%20reversed%20issue.%26nbsp%3B%20That%20is%2C%20it%20will%20justify%20right%20completely%2C%20but%20it%20will%20not%20justify%20left%20by%20what%20looks%20like%20a%200.5%20space%20indent%20(an%20odd%20half%20indention).%26nbsp%3B%3C%2FP%3E%3CP%3EEx%20(The%20first%20number%20is%20the%20problem%20number)%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BAF4681%3C%2FP%3E%3CP%3EAF61270%3C%2FP%3E%3CP%3EWhen%20I%20look%20at%20the%20text%20string%20in%20the%20formula%20line%2C%20there%20is%20a%20very%20small%20space%20before%20the%20text%20string%3C%2FP%3E%3CP%3E_AF4681%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20other%20observation%20is%20that%20if%20I%20copy%20the%20data%20from%20the%20formula%20bar%20and%20past%20it%20into%20a%20cell%2C%26nbsp%3B%3C%2FP%3E%3CP%3ENormally%2C%20I%20want%20to%20copy%20the%20exported%20data%20from%20the%20database%20to%20a%20blank%20worksheet.%26nbsp%3B%20On%20another%20tab%2C%20I%20have%20a%20formatted%20form%20(table)%20to%20extract%20the%20data%20from%20the%20raw%20data%20and%20put%20it%20into%20a%20specific%20format%20required%20by%20the%20company%20asking%20for%20the%20data.%26nbsp%3B%20I%20really%20don't%20want%20to%20have%20to%20clean%20up%20the%20data%2C%20or%20really%20even%20touch%20it.%26nbsp%3B%20I%20want%20to%20import%20it%20and%20the%20formatted%20tab%20is%20print%20ready%20with%20no%20intervention.%26nbsp%3B%20This%20errant%20formatting%20is%20requiring%20me%20to%20clean%20up%20hundreds%20of%20errors.%26nbsp%3B%20Find%20and%20replace%20doesn't%20work%2C%20because%20apparently%20the%20big%20space%20is%20something%20other%20than%20a%20valid%20search%20parameter.%26nbsp%3B%20It%20would%20be%20a%20sub-optimal%20solution%20anyway%20because%20I%20really%20want%20to%20import%20and%20the%20just%20print%20the%20resulting%20table%20on%20the%20formatted%20form%20tab.%26nbsp%3B%20The%20TRIM%20function%20does%20not%20recognize%20the%20long%20space%20as%20a%20space%20either%20or%20that%20would%20have%20been%20an%20acceptable%20solution.%26nbsp%3B%20I%20have%20searched%20for%20formatting%2C%20conditional%20formatting%2C%20and%20the%20style%20says%20NORMAL.%26nbsp%3B%20I%20have%20tried%20using%20the%20%22copy%20format%22%20brush%20to%20copy%20the%20format%20from%20cells%20that%20are%20working%20correctly.%26nbsp%3B%20The%20only%20oddity%20is%20that%20this%20is%20the%20only%20column%20that%20has%20a%20text%20string%20composed%20of%20both%20alpha%20%26amp%3B%20numeric%20data.%26nbsp%3B%20Changing%20the%20format%20to%20numeric%20does%20not%20fix%20anything.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20tapped%20out%20of%20ideas%2C%20and%20my%20research%20is%20not%20giving%20me%20useful%20answers.%26nbsp%3B%20Any%20ideas%20would%20be%20welcome.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I have used Excel for a long time.  I rarely come across an issue that I can't figure out, but this has me stumped.  I have looked extensively for answers on the web to no avail.  I have a database program that I need to Export data from into Excel 365.  Some of the data, but not all, does not align right properly, and some of the data won't align left properly. 

Ex: (The second number is the problem data)

     AF4681

AF61270

I have tried to massage the data into another cell using the TRIM function, and it looks exactly the same, that is, it looks like it is aligned right with a 1.5 space indent (impossible, I know). 

 

When I look at the text in the formula bar, the data appears with one very long space before the text, almost like a tab was inserted. 

 ______AF61270

If I remove the very long single "space" by backspacing 1 time or deleting 1 time, formatting becomes normal.

AF61270

Some of the other data in the same column has the same issue, but some of it comes across with a reversed issue.  That is, it will justify right completely, but it will not justify left by what looks like a 0.5 space indent (an odd half indention). 

Ex (The first number is the problem number) 

 AF4681

AF61270

When I look at the text string in the formula line, there is a very small space before the text string

_AF4681

 

One other observation is that if I copy the data from the formula bar and past it into a cell, 

Normally, I want to copy the exported data from the database to a blank worksheet.  On another tab, I have a formatted form (table) to extract the data from the raw data and put it into a specific format required by the company asking for the data.  I really don't want to have to clean up the data, or really even touch it.  I want to import it and the formatted tab is print ready with no intervention.  This errant formatting is requiring me to clean up hundreds of errors.  Find and replace doesn't work, because apparently the big space is something other than a valid search parameter.  It would be a sub-optimal solution anyway because I really want to import and the just print the resulting table on the formatted form tab.  The TRIM function does not recognize the long space as a space either or that would have been an acceptable solution.  I have searched for formatting, conditional formatting, and the style says NORMAL.  I have tried using the "copy format" brush to copy the format from cells that are working correctly.  The only oddity is that this is the only column that has a text string composed of both alpha & numeric data.  Changing the format to numeric does not fix anything.

 

I am tapped out of ideas, and my research is not giving me useful answers.  Any ideas would be welcome.

  

 

0 Replies