Forum Discussion

Fernando Salgueiro's avatar
Fernando Salgueiro
Copper Contributor
Feb 11, 2018

formula with a irregular field

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

8 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    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

    • Fernando Salgueiro's avatar
      Fernando Salgueiro
      Copper Contributor
      I am trying to split in columns but the data don’t follow a pattern like the 3 samples I place with the results
      • Willy Lau's avatar
        Willy Lau
        Iron Contributor

        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"?

Resources