+ Reply to Thread
Results 1 to 11 of 11

Bank reconciliation/matching negative with positive amount using VBA

  1. #1
    Registered User
    Join Date
    06-11-2019
    Location
    jakarta
    MS-Off Ver
    2016
    Posts
    7

    Bank reconciliation/matching negative with positive amount using VBA

    Hello,
    I want to make bank reconciliation using VBA. I have two sheets: Bank Book and Ledger. I would like to match the amounts from both Bank Book Amount to the amounts from the Ledger, using column E in Bank Book and column K in Ledger, then the line with the bank account info would move next to the corresponding entry. The bank book sheet has positive value and ledger sheet has negative value, but they has the same exact value. For example, Bank book value is 1234 and ledger value is -1234. They are match. I just need 4 column in Bank Book which are colored in yellow to match it with the Ledger. Entries that don't have a match do not need to move and can stay where they are at. I provide after reconciliation sheet for your output example.
    If anyone could provide me coding for something similar to this that I can attempt to modify for our needs, that would be great. As always, I greatly appreciate any help I can get on this. Thank you.
    Attached Files Attached Files
    Last edited by jodayme; 06-13-2019 at 09:33 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Bank recon using VBA

    Title amended
    Last edited by Pepe Le Mokko; 06-12-2019 at 03:31 AM.

  3. #3
    Registered User
    Join Date
    06-11-2019
    Location
    jakarta
    MS-Off Ver
    2016
    Posts
    7

    Re: Bank recon using VBA

    Hello Pepe
    Thank you for your sugestion. I have edited it based on your sugestion.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Question

    Hi !

    Question : why in Bank Book column E values are in text format instead of numbers, bad import ?! Can be a mess …

  5. #5
    Registered User
    Join Date
    06-11-2019
    Location
    jakarta
    MS-Off Ver
    2016
    Posts
    7

    Re: Bank reconciliation/matching amount using VBA

    Hello Marc
    It was imported from email attachment. I know it would be a problem and I don't know how to fix it. Could you help me convert it to number format?

  6. #6
    Registered User
    Join Date
    06-11-2019
    Location
    jakarta
    MS-Off Ver
    2016
    Posts
    7

    Re: Bank reconciliation/matching amount using VBA

    I have newer version and you can download it. I have transformed text format to number format.
    excelforum.com/attachment.php?attachmentid=628146&stc=1&d=1560418234
    Attached Files Attached Files
    Last edited by jodayme; 06-13-2019 at 05:31 AM.

  7. #7
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Question

    • So it's a very bad import ‼ Text could be transformed to numbers with a child level workaround
      but the better is to revise the import code !

    • Your first attachment has errors in result …

    • Explain what is new in the last attachment, why this newer version ?

  8. #8
    Registered User
    Join Date
    06-11-2019
    Location
    jakarta
    MS-Off Ver
    2016
    Posts
    7

    Re: Bank reconciliation/matching negative with positive amount using VBA

    • Thank for your feedback. I have edited it to the number format and attached it in the last attachment
    • I have edited it
    • As I mention above, because I have edited it to the number format

  9. #9
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Try this ‼


    • Your last attachment result layout does not match with the new layout of Bank Book worksheet, still the initial …

    • Still errors in your result !

    • Anyway according to your last attachment a demonstration as a beginner starter :

    PHP Code: 
    Sub Demo()
                 
    Dim Rw As RangeRf As Range
        With Sheet2
    .UsedRange.Columns
               
    .Item("Q:T").Offset(1).Clear
                Application
    .ScreenUpdating False
            
    For Each Rw In Sheet1.UsedRange.Rows("2:" Sheet1.UsedRange.Rows.Count)
                If 
    Rw.Cells(5).Value2 Then
                    Set Rf 
    = .Item(11).Find(-Rw.Cells(5).Value2, , xlFormulasxlWhole)
                    If 
    Not Rf Is Nothing Then Rw.Range("A1,C1,E1:F1").Copy Rf(17)
                
    End If
            
    Next
        End With
                Set Rf 
    Nothing
                Application
    .ScreenUpdating True
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

  10. #10
    Registered User
    Join Date
    06-11-2019
    Location
    jakarta
    MS-Off Ver
    2016
    Posts
    7

    Re: Try this ‼

    Thank you Marc. It work well

  11. #11
    Registered User
    Join Date
    04-29-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Bank reconciliation/matching negative with positive amount using VBA

    Hi, can you share with me with your final version of the file including code? thank you

+ 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