+ Reply to Thread
Results 1 to 3 of 3

Lookup latest status from database

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Lookup latest status from database

    On the attached example I have two worksheets; 'Training Notes' which is a database of notes from training sessions. Then there is 'Overview' which is where I'm looking for your help. What I want is to put a formula in the matrix grid that shows the latest 'training status' (column E on Training Notes) for the corresponding member of staff (column D) and sport (column B).

    Adam.
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Lookup latest status from database

    Hi,

    Try this array** formula in B3 and copy across and down:

    =INDEX('Training Notes'!$E$2:$E$169,MIN(IF('Training Notes'!$A$2:$A$169=MAX(IF(('Training Notes'!$B$2:$B$169=Overview!$A3)*('Training Notes'!$D$2:$D$169=Overview!B$2),'Training Notes'!$A$2:$A$169)),ROW('Training Notes'!$A$2:$A$169)-MIN(ROW('Training Notes'!$A$2:$A$169))+1)))

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

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

    Re: Lookup latest status from database

    hi Adam. how about those which are not there? For eg. Scott D, Tennis. Neil R, Tennis, etc. i put them as blanks. and this is assuming your dates are in ascending order:
    =IFERROR(LOOKUP(2,1/(('Training Notes'!$B$2:$B$169=$A3)*('Training Notes'!$D$2:$D$169=B$2)),'Training Notes'!$E$2:$E$169),"")

    if not in ascending order, then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    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

+ 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. Replies: 9
    Last Post: 11-28-2013, 05:20 PM
  2. [SOLVED] Pulling out the latest data with date from the database given.
    By djwaz69 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-07-2012, 12:20 AM
  3. Replies: 4
    Last Post: 04-08-2012, 09:43 PM
  4. Lookup Latest number
    By Abrielle in forum Excel General
    Replies: 4
    Last Post: 04-04-2012, 02:58 PM
  5. Pivot Table Count & Sum latest revision from the Database
    By rickyilas in forum Excel General
    Replies: 2
    Last Post: 02-24-2010, 08:25 AM

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