Results 1 to 4 of 4

Text File for creating report

Threaded View

hsmeet Text File for creating report 08-23-2008, 02:42 PM
shg Here's part of it. I'll let... 08-23-2008, 03:27 PM
hsmeet Thanks a lot, You have done it 08-23-2008, 09:18 PM
hsmeet file attached here 08-23-2008, 09:51 PM
  1. #1
    Registered User
    Join Date
    08-24-2007
    Posts
    18

    Text File for creating report

    (It is some lengthy but PLEASE help, i really need it and THANKS in advance
    I want to convert a text file into excel sheet

    and then sort that file according to one particular column having three diff values

    this data (full rows) has to go to three reports on one sheet according to that column

    my text file is as under:

    1123601714000730300000000100000000520500140022302
    1123601814000730200000000100000000057800140240302
    1150392014000730300000000100000003396100140240302
    1150392114000730200000000100000000377400140025302
    1189906014000730200000000100000000329400140211302
    1189906114000730200000000100000000036600140024303

    and this file may have rows from minimum to max say 1000 rows


    i have to break this data rows as under
    11 236017 140007303 0000000010 00000005205 00 140022302

    now first two digits (11) have no value

    next 6 digits are to go in column B

    then next 9 digits have to go into column A (these 9 digits will always be either of 140007302 or 140007303 or 140007304

    next 10 digits are again of no value

    next 11+2 digits are amount (Rs. and Paise) and have to go in column C in 5205.00 format. (Left zeros to be removed)

    last 9 digits have to go into column D

    when the sheet is prepared this way with column A,B,C & D
    i have to sort it on column A
    140007302
    140007303
    140007304
    these are the codes of separate departments.

    now finally the department wise 3 reports are to be prepared showing column B,C & D

    like this:-
    Department 140007302

    B C D
    236566 --- 5205.00 --- 140022302
    656565 --- 10000.00 --- 140023303
    656564 --- 500.11 --- 140240302
    (all rows having 140007302 in column A to come here)

    Then next report for Department 140007303

    and then for Department 140007304

    I hope you guys understand my problem and will surely provide help for this.
    Function method or VBA method.........both may be suggested please
    Last edited by hsmeet; 08-23-2008 at 02:47 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Import big text file into multiple sheets
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-08-2015, 08:17 PM
  2. Macro to Output Custom Text and File Name
    By KenB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-25-2008, 06:34 AM
  3. code to save selected(pre defined)text to text file
    By martindwilson in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-27-2008, 06:51 PM
  4. Converting Excel to Text File Issue
    By khpr0001 in forum Excel General
    Replies: 0
    Last Post: 06-20-2007, 04:44 PM
  5. Replies: 5
    Last Post: 11-04-2006, 02:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1