+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Finding the latest data based on 2 variables

  1. #1
    Registered User
    Join Date
    06-28-2010
    Location
    Wiltshire, UK
    MS-Off Ver
    Excel 2007
    Posts
    10

    Finding the latest data based on 2 variables

    I suspect someone has already asked this question. If so can someone point me to the thread.

    If not here goes.

    I am trying to construct a table which will display the next validation date of a person/piece of eqpt based on the last test results.

    The worksheet attached explains best. The test in B defines the date in E and I want to display the results in E against A and B. Obviously there can be more than one combination of A and B as more retests are added. Almost like a pivot table but with the the results displayed as the latest test date.
    Attached Files Attached Files
    Last edited by Dr Martin; 06-28-2010 at 11:50 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding the latest data based on 2 variables

    You can probably use a Pivot Table... just select MAX of instead of COUNT of for the Field Setting.

    Or you can use formula:

    =MAX(IF($A$2:$A$6=$A17,IF($B$2:$B$6=B$15,$E$2:$E$6)))

    confirmed with CTRL+SHIFT+ENTER and copied down and over.. you can then format cells as Custom: m/d/yyyy;-0;;@ to hide 0's
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-28-2010
    Location
    Wiltshire, UK
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding the latest data based on 2 variables

    NBVC

    I knew there was probably a very simple and quick answer that I was missing (It's been a hard few weeks at work!!). Thanks for your help.

    Dr M

+ 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