From: vivek jain [mailto:vivek.j...@gmail.com] Sent: Saturday, April 03, 2010 8:04 AM To: 'excel-macros@googlegroups.com' Cc: 'excel-macros+nore...@googlegroups.com' Subject: IMPORT FIXED WIDTH TXT FILE TO EXCEL Dear Group Members, I want to import a txt file without any separator except for space of different lengths. The length of the data field/items is also not uniform. Is there any method by which we can convert the fixed width file to comma separated (CSV) file and then import them to excel. A Sample file is enclosed herewith. Thanks & Regards... cid:image001.jpg@01C85EB8.0483F790 Vivek Jain, FCA, DISA (ICAI) Vivek Shantilal Jain & Co. Chartered Accountants 3010 Ram Kumar Arcade, Chatribari Road, A T Road, Guwahati-781001 (0361-2603895,9435019908 think_before_print_en -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our Facebook Group @ http://www.facebook.com/group.php?gid=287779555678 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,800 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe To unsubscribe, reply using "remove me" as the subject.
<<image001.jpg>>
<<image004.jpg>>
þÿ S T B T F M F N T F N R L R R F G T L B R N V F R D T F L N B N B C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - B R B N C H N N - 1 2 2 3 4 B R B N C H N B M F - B B B B C C C K K P B G F N N - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - S R N N B C N N N B M F N T T S T B N D L N G D R B W L N G L R R F G T L B R L T Y B C C R T F D B C C T M B T N ( R S ) P N W F R ( R S ) ( R S ) L N T F R F S T ( R S ) B R B N C H - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 2 1 3 3 8 1 1 1 3 1 - 1 L T C K Y P R L N T F R S 7 9 1 7 1 1 . 3 2 4 1 9 9 3 2 . 3 2 1 8 1 7 8 8 . 1 1 7 7 1 7 8 . 4 7 1 7 1 7 7 2 2 1 3 8 7 9 8 9 2 8 - 3 M / S L C N M 2 1 8 1 4 4 . 1 1 8 7 7 7 1 . 1 1 1 2 1 3 7 3 . 1 1 3 1 7 7 8 . 7 1 1 7 1 7 7 3 1 1 8 1 7 4 8 9 8 7 - 1 M R . P R B N B B K T M B R T B L T K D B R 1 7 2 1 7 2 . 1 1 1 7 1 7 2 1 . 1 1 2 1 7 7 2 . 1 1 1 1 . 1 1 1 7 1 4 4 4 1 1 7 1 9 4 3 1 8 2 - 8 M R . S T N L L D B S 1 2 1 9 7 8 . 1 1 1 1 9 4 1 9 . 1 1 1 1 7 8 9 . 1 1 1 1 . 1 1 1 7 1 4 4 7 1 1 1 7 4 9 2 7 8 3 - 7 M R . M B H F S W B R B N R N 8 7 1 7 9 . 1 1 7 3 7 7 9 . 1 1 1 3 1 1 1 . 1 1 1 7 9 7 . 1 7 1 7 1 7 7 8 1 1 1 9 2 8 8 1 8 7 - 7 M R . S T R F S H P B T N R 1 1 1 7 3 1 . 1 1 1 8 7 1 3 3 . 1 1 1 3 3 8 9 8 . 1 1 1 2 3 9 9 . 8 4 1 7 1 7 7 7 2 1 3 7 8 1 1 7 1 1 - 1 M R . B L J N Y H T J T R L 1 1 9 1 1 4 . 1 1 7 7 8 8 8 . 1 1 7 3 2 3 8 . 1 1 3 9 4 1 . 2 1 1 7 1 7 7 8 1 1 3 7 7 8 7 7 7 2 - 9 M R . L K R B M H T S S B L N 9 7 1 1 8 . 1 1 8 8 9 8 7 . 1 1 1 1 3 4 1 . 1 1 3 7 1 4 . 3 7 1 7 1 7 7 9 1 1 3 8 4 1 1 9 7 9 - 9 M R . D L K S H L T N B R B Y B N D B S 1 1 1 1 8 1 . 3 8 7 9 8 7 1 . 3 8 1 1 4 9 1 . 1 1 8 1 3 7 . 1 8 1 7 1 7 7 1 1 1 1 3 7 1 7 1 7 7 2 - 7 M R . R B N J L T M N N D B L 8 8 8 1 8 . 1 1 7 1 8 7 7 . 1 1 1 7 7 4 9 . 1 1 7 8 8 . 7 8 1 7 1 7 7 1 1 1 1 3 7 1 1 7 1 4 1 - 8 M R . J B D T B B L S H Y B 1 2 1 1 1 7 . 1 3 8 2 7 2 9 . 1 3 3 8 7 7 8 . 1 1 8 9 7 8 . 7 1 1 7 1 7 7 1 2 1 1 8 1 1 1 9 8 4 1 - 8 M R . B B P B N D B S 1 4 1 3 8 1 . 1 1 8 4 9 7 7 . 1 1 7 7 4 1 4 . 1 1 1 2 8 7 1 . 4 7 1 7 1 7 7 1 3 2 1 3 1 7 8 1 8 7 9 - 1 M R . J F H F R T L L S L B M S B L K L B 1 2 1 2 7 1 . 1 1 4 1 9 9 1 . 1 1 7 8 2 8 1 . 1 1 1 7 1 8 3 . 3 3 1 7 1 7 7 1 4 2 1 3 8 1 9 2 3 2 7 - 4 M R . J B K L R H T S S B L N 1 1 8 1 7 8 . 1 1 4 7 8 1 4 . 1 1 7 1 2 4 2 . 1 1 1 8 8 7 1 . 8 7 1 7 1 7 7 1 7 2 1 3 2 8 3 1 1 2 9 - 7 M R . J B H L R B L L 7 8 7 4 9 . 2 8 8 8 3 4 1 . 2 8 1 2 4 1 9 . 1 1 1 7 1 9 . 4 2 1 7 1 7 7 1 8 2 1 3 3 2 4 4 7 3 9 - 7 M R . F N T S H B L L 7 7 9 1 1 . 1 7 8 3 7 9 8 . 1 7 1 4 2 1 3 . 1 1 3 1 2 3 . 3 2 1 7 1 7 7 1 7 2 1 3 7 8 7 2 2 9 9 - 7 M R . M D M N L D T L L S L B M 7 8 4 7 9 . 1 1 7 1 2 8 7 . 1 1 7 2 1 4 . 1 1 2 3 4 2 . 1 7 1 7 1 7 7 1 8 2 1 3 9 2 4 1 7 8 9 - 8 M R . M N N S T R R B H M B N 8 2 2 7 4 . 1 1 7 8 4 9 2 . 1 1 3 7 8 2 . 1 1 2 8 7 8 . 8 1 1 7 1 7 7 1 9 1 1 3 2 1 4 9 9 8 2 - 7 M R . S T M F S H K H B N 7 1 2 7 4 . 1 1 4 1 3 7 8 . 1 1 9 8 9 8 . 1 1 8 1 7 . 8 4 1 7 1 7 7 2 1 1 1 7 8 4 1 8 1 7 7 - 3 M R . J B L B L T D D L N B H M F D ` 1 1 1 7 7 2 . 1 1 1 1 1 1 7 8 . 1 1 2 9 3 7 8 . 1 1 7 3 8 2 . 8 8 1 7 1 7 7 2 1 1 1 8 8 7 8 8 8 8 1 - 7 M R . S B T N B M S L N G H 7 3 8 8 2 1 . 4 1 7 1 1 1 1 8 . 4 1 3 8 7 1 7 . 1 1 1 1 . 1 1 1 1 1 1 1 2 2 1 1 3 1 7 3 9 2 9 4 - 9 M R . K T S H B L B B R T B H 4 9 8 8 7 1 . 8 7 4 7 3 8 3 8 . 8 7 2 4 8 3 4 . 1 1 8 1 8 . 7 1 1 4 4 8 8 2 3 1 1 1 8 7 4 2 1 1 9 - 2 M R S . D H B N B D B B N R B 1 1 7 2 1 8 8 . 1 1 9 8 1 1 3 2 . 1 1 9 2 1 7 4 . 1 1 8 1 4 1 8 . 8 1 1 7 1 7 7 2 4 2 1 3 8 4 7 2 2 8 1 - 7 M R . N B B B K T M B R S B R M B H 7 4 4 7 8 8 . 1 1 4 8 2 3 7 4 . 1 1 8 2 4 3 4 . 1 1 3 8 9 9 1 . 8 8 1 7 1 7 7 2 7 2 1 3 8 7 2 8 3 9 8 - 3 M R . D L G B N T B K B L L T B 4 3 2 7 1 7 . 1 1 3 8 4 3 3 3 . 1 1 4 8 3 8 4 . 1 1 2 9 3 8 1 . 2 8 1 7 1 7 7 2 8 1 1 3 2 7 8 8 3 2 3 - 9 M T N L N K B L L T B 7 1 1 1 7 7 . 1 1 4 7 9 1 4 3 . 1 1 3 4 1 3 4 . 1 1 3 8 1 4 8 . 1 4 1 7 1 7 7 2 7 1 1 3 8 9 7 2 3 9 8 - 2 M R S . D H T N T D F V L 8 8 7 1 1 8 . 8 4 8 1 8 8 7 4 . 8 4 4 8 4 3 2 . 1 1 1 8 8 3 7 . 7 4 1 7 1 7 7 2 8 1 1 4 8 8 7 1 8 3 2 - 8 M R . N B L L N L K R S B R M B H 8 3 8 8 1 8 . 8 3 7 9 1 9 1 2 . 8 3 4 7 9 1 4 . 1 1 2 8 1 7 7 . 7 8 1 7 1 7 7 2 9 1 1 8 7 7 9 9 1 7 4 - 7 M R S . D L P T Y D F V L 4 4 7 1 2 9 . 3 7 4 1 7 2 7 7 . 3 7 3 1 8 7 4 . 1 1 1 7 3 7 4 . 8 3 1 7 1 7 7 1 1 1 1 1 8 2 7 8 3 3 7 - 3 C H R L S T N P H F R D . K H N T T L Y B 3 4 7 4 1 3 . 1 1 1 7 3 2 3 3 . 1 1 1 7 4 1 7 1 . 1 1 4 1 1 7 3 . 8 1 1 7 1 7 7 3 1 1 1 3 9 7 8 8 1 7 1 - 4 N L B B R B N G N H B L N 2 7 3 1 1 7 . 1 1 1 8 4 3 4 7 . 1 1 8 8 7 7 1 . 1 1 1 1 3 2 9 . 1 1 1 7 1 7 7 3 2 1 1 3 9 4 9 1 7 3 7 - 8 M R . M T S L F M T D D L N B H M F D 7 1 2 8 9 . 1 1 8 3 1 7 1 . 1 1 7 1 1 9 . 1 1 1 1 . 1 1 1 7 1 7 7 3 3 1 1 3 7 9 1 2 3 8 1 - 8 M R . B L P T L K B T H B R 7 8 1 3 7 . 1 1 4 4 1 7 1 . 1 1 3 1 9 8 7 . 1 1 1 1 . 1 1 1 7 1 7 7 3 4 1 1 3 7 8 1 1 9 1 2 - 3 M L S S . J B M T N B B N R N 8 3 4 9 2 . 7 1 8 7 8 8 2 . 1 1 1 7 8 1 1 . 7 1 1 1 . 1 1 1 7 1 7 7 3 7 1 1 3 7 7 2 8 1 1 2 - 2 M L S S . B B B L T B P B T N W B R Y 1 1 7 3 3 3 . 1 1 7 2 8 3 3 . 1 1 3 2 7 1 1 . 1 1 1 1 . 1 1 1 7 1 7 7 3 8 1 1 3 9 4 8 1 7 1 7 - 8 M R . J L T F N H B Z B R L K B 7 3 7 8 2 . 1 1 3 8 9 2 7 . 1 1 1 8 8 3 7 . 1 1 1 1 . 1 1 1 7 1 7 7