+ Reply to Thread
Results 1 to 5 of 5

matching last 2 columns with date

Hybrid View

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    chicago
    MS-Off Ver
    Excel 2010
    Posts
    15

    matching last 2 columns with date

    Hello,
    I have a table with columns
    Name, Date, % Complete

    I would like to grab the Name/Date combo with the last date. Then get the % complete.

    My data could look like this

    Name, date, %complete
    a, 1-1-2012, 10%
    b, 1-5-2012, 20%
    a, 1-6-2012, 20%
    b, 2-1-2012, 30%
    c, 2-1-2012, 10%
    a, 2-3-2012, 30%

    so I would want to grab
    b, 2-1-2012, 30%
    c, 2-1-2012, 10%
    a, 2-3-2012, 30%

    I can create a pivot table with Name and max of date. That gives the Name/Date combo.
    But then I cannot get the % complete.

    anyone have ideas?

    thanks

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: matching last 2 columns with date

    Have alook at the attached, i used Max(if... to determin the latest date for each name, then sumifs to find the % complete for that combo.

    the max if formula is an array formula, so needs to be confimred with Ctrl+Shift+Enter and is:
    =MAX(IF(A2:A7=F2,B2:B7,0))

    the other is a standard sumifs
    =SUMIFS(C:C,A:A,F2,B:B,G2)
    Attached Files Attached Files
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: matching last 2 columns with date

    Maybe like this?
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    04-11-2012
    Location
    chicago
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: matching last 2 columns with date

    Thanks DGagnon, works great

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: matching last 2 columns with date

    @ Magnus101

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as "SOLVED".This is an obligation of all members to mark their own thread "Solved" so please do so.

    For the meantime I'll do it for you.

    How?
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Note:
    **You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
    By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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