Feb 11 2018
09:39 AM
- last edited on
Jul 25 2018
11:01 AM
by
TechCommunityAP
Feb 11 2018
09:39 AM
- last edited on
Jul 25 2018
11:01 AM
by
TechCommunityAP
I have a big file with just one column A the only thing in common is that each line has 133 characters on it. I try to use Text to Columns but did not work because the spacing is not the same. I try to count until the first empty character but did not work either since some elements have two empty characters. Any ideas how can I do it.
AD660-C FBH7005N-20 GS1744 AD655 AD660 36 7695000 AD655
AF540 ->A FBNJ007-22 WBN AF540 -BKS AF540 36 7257462 AF540WBN
AG535-3-2-1 -@ FBC8683W-22 FBC8683B-22 FBC8683O-22 WBC F615-S-T-U -@ AG535 605 7696669 F615WBC
Results
Row1
AD660-C
FBH7005N-20
GS1744
AD655
AD660
7695000
AD655
Row2
AF540 ->A
FBNJ007-22
WBN
AF540 -BKS
AF540
36
7257462
AF540WBN
Row3
AG535-3-2-1 -@
FBC8683W-22 FBC8683B-22 FBC8683O-22
WBC
F615-S-T-U -@
AG535
605
7696669
AF540WBN
F615WBC
Feb 11 2018 09:53 AM
Hi Fernando,
Sorry, I didn't catch what you try to do - split on different columns or what?
And better if you attach sample file with few records.
Thank you
Feb 11 2018 11:29 AM
Feb 11 2018 12:10 PM
If copy/paste the text from your post into the Excel the words in text are separated not only by spaces, but with combination of CHAR(160)&CHAR(32) as well.
However it's bit hard to understand is there some logic or that's series of copy/pasting effect.
Feb 11 2018 02:54 PM
Is there any formula to count from the first character until the first empty character without counting the empty? The number of empty’s and the next set of characters and so on to see if I can find a pattern?
Feb 11 2018 03:34 PM
I know you tried Text to column feature in excel. However, in that feature, did you check the box next to "Treat consecutive delimiliers as one"?
Feb 12 2018 06:51 AM
Is there a formula that count the number of characters before the first empty field? So i can find a logic?
AD660-A FBH1560-20 WBH R565-Z AD660 400 7695000 R565WBH B1 = first word 7 characters c1 = two empty space d1 = 10 characters e1 = two empty spaces f1 = 3 characters G1 = one space h1 = 6 characters etc I1 = 45 empty field
|
Feb 12 2018 08:11 AM
I am sorry. Perhaps another community member can help. However, as far as I know, Excel cannot have a logic to extract data for Row 1, and using the same logic, to extract data for Row 3 in your original post, especially, the first cell of Row 3:
AG535-3-2-1[You want a space here]-@