+ Reply to Thread
Results 1 to 3 of 3

Find Duplicate (Multiple Columns), Count only most recent Row - Excel 2007

Hybrid View

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Find Duplicate (Multiple Columns), Count only most recent Row - Excel 2007

    Hello,

    I am struggling with an Excel formula and was hoping someone would be able to assist me with!

    What I am trying to do:

    Match columns A ('Name') and B ('Company'), then only count the row with the most recent date (in column D -'Date' ) by putting 1 in column F ('Count') and 0/blank in column F ('Count'), for the remaining rows with the matched A and B columns.

    Please see attached worksheet for an example.

    The purpose is to build an Aging Table via a Pivot Table (as per the example worksheet).

    Please let me know if this does not make any sense!

    Thank you for your time!
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Find Duplicate (Multiple Columns), Count only most recent Row - Excel 2007

    hi armbands1, welcome to the forum. try this array formula in F2 & copy down:
    Formula: copy to clipboard
    =IF(A2&B2&MAX(IF($A$2:$A$9&$B$2:$B$9=A2&B2,$D$2:$D$9))=A2&B2&D2,1,"")


    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER. When done correctly, you should see curly brackets surrounding it

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-17-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find Duplicate (Multiple Columns), Count only most recent Row - Excel 2007

    Amazing! I won't even try and tell you how long I have been stuck on this.

    Thank you, this works perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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