+ Reply to Thread
Results 1 to 24 of 24

Reconcilation

  1. #1
    Registered User
    Join Date
    03-26-2007
    Posts
    63

    Reconcilation

    I need help again for creating a macro. I have a notepad file that contains data. We need to convert the notepad file into excel and then segregate the data after conversion. Segregation point would be the point where in we can find keyword “Summary”. We need to create a macro that finds the occurrence of summary keyword. Then from the beginning till that summary point cut the entire data and paste in other worksheet. Name the worksheet as “Receivables” or “Payables” or “Fee Payable” depending what type of data that summary contains.


    After creating different worksheets we need to format the worksheet in specific format.
    For example: I have attached the “Recon1” XL file attached. Under Recon1 – “RECEIVABLES 1” contains the as is data converted from notepad. Later we need to modify the same data using macro as specified in “RECEIVABLES 2” and then as per the format available in “RECEIVABLES 3”.

    Any help on this would be highly appreciable.


    Regards,
    Shahcu
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Hi,

    Need help, Please help me out.

    Shahcu

  3. #3
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Someone please help.


  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    If you can attach the file without Zipped, I can take a look at it and see if I can help you or not.

  5. #5
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Hi Jindon,

    I have attached both files as an attachment. Please help.

    Regards
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Attached please find the excel sheet ...
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    Found 3 sheets (RECEIVABLES 1,2,3)

    1) which is the data imported from the text file ?
    2) what is the logic to manipulate the data into separate worksheets?

    I coudn't read your text file attached...
    If you can attach picture file showing original data, it helps a lot.

  8. #8
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Hi jindon,

    RECEIVABLES1 contains data that i have converted from notepad. I need a macro that remove the unnecessary spaces , page header and then put the data in another sheet which is RECEIVABLES2. Receivable3 is againa refined version of RECEIVABLES2. We only need to transfer data from RECEIVABLES2 to Receivable3 in appropriate format ie... only columns listed below.

    Ref no Name CODE DATE RATE AMOUNT DUE

    I am again attaching main notepad file so that u can get the actual look of the raw data.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    shahcu,

    Due to the security here, I can only see worksheets in .xls file and picture file.
    So I can not open .txt file attached...

  10. #10
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Hi Jindon,

    I understand that you are not able to see the notepad files.

    Jindon, I would request you to please copy entire contents of Receivables 1 sheet and paste it into Notepad file at your system. I intention is to just to give you the look n feel of how notepad file looks like. If you can do that If would be a great help for me.

    I can't upload any picture file reason being only 100 kb of file size is allowed on this forum.

    Regards

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    OK
    So RECEIVABLES 1 is the sheet from original data.

    Then what is the logic to manipulate the data ?

    Can you tell me step by step how you manually do the job ?

  12. #12
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Hi Jindon,

    I need a macro that remove the unnecessary spaces , blank lines , page headers and then put the data in another sheet which is RECEIVABLES2.

    When I say page header that means details like :


    Recon Statement
    ABC INC 10:37:34 1 3-Apr-08 Page: 1
    ABC INC 10:37:34 13-Apr-08 Page: 5
    Recon Statement
    Date Ra nge From 01 MAR 08 to 31 MAR 8
    Counterparty Name
    Counterparty Address1
    Dept: SECURITIES
    "Contact: Contact Name " R E C E I V A B L E
    Settled Act F Eff


    Receivable3 is againa refined version of RECEIVABLES2. We only need to transfer data from RECEIVABLES2 to Receivable3 in appropriate format ie... only columns listed below.

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    It seems the number of records in RECEIVABLES 1 & RECEIVABLES 2 are different.
    RECEIVABLES 2 have less records than RECEIVABLES 1.
    Any reason ?

  14. #14
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Reason being i have uploaded the data in zip format when u asked me to upload normal excel file then i deleted some records from each worksheets to reduce the file size to 100kb. We are not allowed to upload any file which is greater than 100 KB.


    Regards

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    Can it be said
    on RECEIVABLES 1
    1) Find 1st "Bargain Ref Date Date" in col.A
    2) Find company name (value not begin with number)
    3) Copy ColA to ColL where ColA have value starts with Number until balnk in ColC
    4) When ColA has any value starts with non numeric character, then find 2nd "Bargain Ref Date Date"

    and continue

    ?

  16. #16
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Yes... that's right

  17. #17
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    Just try this and see if this close..
    Please Login or Register  to view this content.

  18. #18
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Hi Jindon,

    Really appreciate your hard work and support. Many thanks to you for being this much supportive.

    Just ran the macro that you have sent however there are couple of more rows that needs to be eliminated. I have marked them as yellow. I do not need all these yellow marked rows in Receivables2.

    Attached please find the output excel file.


    Many Thanks again.
    Attached Files Attached Files

  19. #19
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    How about
    Please Login or Register  to view this content.
    Edited
    Last edited by jindon; 05-22-2008 at 03:04 AM.

  20. #20
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    I am getting the following error:

    "Run Time Error 424"
    Object Required

    At line ...


    .Formula = "=if(countif(b$1:b1,""Bargain*"")>1,1,"""")"

  21. #21
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    Can you just delete that line and run the code?

  22. #22
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Please let me know what is the significance of thsi statement...


    .SpecialCells(-4123,1).EntireRow.Delete

    I understand that this will delete the entire row carrying any specialcell value but unable ot understand the (-4123,1) what does it mean...

  23. #23
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    If you have any line that you don't understand, get vb Help file first.

    SpecialCells
    -4123 = xlCellTypeFormulas
    1 = xlNumbers

  24. #24
    Registered User
    Join Date
    03-26-2007
    Posts
    63
    Hi,

    Sorry for the late response.

    I am only getting 30 records as a output. Basis the sample file provided i shud get 130 records. Can you please suggest me on that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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