+ Reply to Thread
Results 1 to 8 of 8

How to find Last(Latest) Payment date and Amount from Excel

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    7

    How to find Last(Latest) Payment date and Amount from Excel

    Hi Team

    I preparing Report every month my Client Payments and Payment date (Latest payment) , this process i am doing it manually, this process sucks more time , i was tried "max" formula as well
    its returns 0,

    Could you anyone help me to simplify the process (using vba macro generate the report as expected)

    Payment_Details
    payment_details.jpg

    Report
    report_result.jpg


    i've attached sample sheet,
    Attached Files Attached Files

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

    Re: How to find Last(Latest) Payment date and Amount from Excel


    Hi !

    Why don't you use Excel BASICS ?!

    Sort data on dates column in descending way, use an advanced filter on first column to get unique clients …

    And if you really need a code, activate Macro recorder before to operate : you will get your own free code !

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: How to find Last(Latest) Payment date and Amount from Excel

    i have reproduced,
    BUT a Pivot table would do the job , the only issue is
    how do you define the MAX value for date and the value to return
    you have multiple values for the same client and the same date
    do you want to sum those

    or are you simply basing they value on the last value in the list

    see client7
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: How to find Last(Latest) Payment date and Amount from Excel

    Try this for results starting "F1"
    Please Login or Register  to view this content.
    Regards Mick

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

    Cool Try this !

    PHP Code: 
    Sub Macro1()
                 [
    F6].CurrentRegion.Clear
        With Cells
    (1).CurrentRegion
            
    .Sort Cells(1), xlAscendingCells(2), , xlDescendingCells(3), xlDescendingxlYes
            
    .Columns(1).AdvancedFilter xlFilterInPlaceUnique:=True
            
    .Copy [F6]
            If 
    ActiveSheet.FilterMode Then ActiveSheet.ShowAllData
        End With
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

  6. #6
    Registered User
    Join Date
    03-28-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to find Last(Latest) Payment date and Amount from Excel

    thank you very much , your code help me to get result as i expected

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

    Re: How to find Last(Latest) Payment date and Amount from Excel


    Thanks for the rep' !

    Base code created using Macro recorder just with Excel basics …

  8. #8
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: How to find Last(Latest) Payment date and Amount from Excel

    You're welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need to find a negative amount and match it to the positve amount based on Acct# and Date
    By sbrandhorst in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2016, 07:49 PM
  2. Replies: 9
    Last Post: 12-21-2014, 06:29 PM
  3. formula to subtract payment amount on monthly payment date
    By restingdonkey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2014, 03:39 PM
  4. Replies: 3
    Last Post: 04-08-2014, 02:34 AM
  5. Replies: 8
    Last Post: 11-19-2012, 06:58 PM
  6. Replies: 1
    Last Post: 04-04-2012, 08:21 AM
  7. [SOLVED] How to change scheduled payment amount in Excel
    By farmgal in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-01-2006, 10:25 AM

Tags for this Thread

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