View Full Version : Excel Help
I have a column of data I want to use Text to columns to fix.
The data is not lined up in every cell.
3 MSW
3 MC5000
3 Clm10000
3 STR
When I get rid of the first column of numbers, there is an extra space on the left in many cells.
I tried using TRIM but it doesn't work.
Any suggestions?
TY
jay68802
10-26-2018, 01:45 AM
Try
=SPLIT(A?," ")
rispa
10-26-2018, 06:58 AM
Try using the Text to Columns function:
Either delimited by space or use Fixed width (importing only the column you want).
I'm using Text to Columns, but I still get the text off set.
The example I used straightened itself out in my post!
Looks like this:
3 MSW
3... MC5000
3 Clm10000
3 ...STR
Then after T2C it looks like this
MSW
... MC5000
Clm10000
...STR
Try
=SPLIT(A?," ")
I get a function not valid comment.
rispa
10-26-2018, 09:10 AM
Try this.
Highlight entire row first. Then do text to columns. Choose delimit by space.
Are you taking the data from DRF Winner's books?
I am merging several old Excel sheets into one so I can put into Access.
Some of the data came from comma files, and were spaced odd.
I'll try that T2C method.
I've been using fixed.
Just tried - nope - splits in to too many columns - like, Md Sp Wt is not 3 columns.
I have a manual workaround, just takes a long time.
TY
spiketoo
10-26-2018, 11:43 AM
Shouldn't be any issues if imported from previous xls but try using the CLEAN function to strip out any funky data that may be present before you go T to C.
AltonKelsey
10-26-2018, 08:44 PM
I tried your posted example and it works for me
Did you click the check box on screen two of the splitter "treat consecutive delimiters as one"
If thats not it, upload a sample file, and Ill look at it
Clean as no effect.
=SUBSTITUTE(RIGHT(A1,LEN(A1)-1)," ","")
Where the initial data is in A1.
Could you use find and replace? In the find box hit the space bar, in the replace box put nothing. replace all. done.
CJ - will try that.
Suff - tried that - no luck.
Alton-
I'm using Excel 2000, so maybe some of those things weren't around back then.
rispa
10-28-2018, 09:51 AM
If you would like to send me some of the data, I would give it a whirl and try to help. I'm using Excel 2003.
Just a thought..........
CJ - will try that.
Suff - tried that - no luck.
Alton-
I'm using Excel 2000, so maybe some of those things weren't around back then.
Cool, let me know. Possible the white space is tab or something else if that doesn't work. I just replaced your dots in the example with spaces.
formula_2002
10-30-2018, 06:25 AM
is this what you want?
is this what you want?
Yes. I do not need the column with the numbers, just the other one, justified to the left,
Did my suggestion not work? If not the white space is something different than spaces. Email it to me and I'll figure it out pretty quick I hope.
Thanks, CJ.
I found a quick way to work around - sort the column then use text to columns on the segments with the same number of spaces and it works quick.
I will try your suggestion tonight.
I have a lot more files to fix up.
Yes! It worked.
Did a couple of files and they all came out good
Thank You!!!!!
formula_2002
10-30-2018, 06:28 PM
is this what you want?
attained the results this way
DATA
HIGHLIGHT COLUMN
TEXT TO COLUMNS
DELIMITED
SPACE
FINISH
I tried that p it separates the data as well, ie, instead getting
[Md Sp Wt], I get [ md ][ sp ][ wt ] in 3 columns.
Yes! It worked.
Did a couple of files and they all came out good
Thank You!!!!!
Awesome!
vBulletin® v3.8.9, Copyright ©2000-2024, vBulletin Solutions, Inc.