excel - Incorrect answer when matching rows on two criteria -


this should simple, yet painful.

i merely want find recent scores each id. data looks this:

id       date   score1  score2 747     1/4/12     1      -6 747     1/28/11    1      -6 747     4/21/10    0       1 747     2/6/13     1      -6 747     3/4/09     1      -6 747     3/19/08    1      -6 747     11/8/06    1      -6 2442    5/3/12     1      -6 2442    1/13/15    1      -6 2442    5/4/11     1      -6 2442    6/2/10     1      -6 2442    5/8/09     1      -6 

the result should this:

id       date   score1  score2 747     2/6/13     1      -6 2442    1/13/15    1      -6 

i think 1 of common operations imaginable in excel.

i googled around , found out pivot table isn't right solution multiple criteria. found nice tutorial here.

the formula =index(a2:d431,match(1,(a:a=a2)*(b:b=max(b2)),0),1) makes sense me. reason keep getting incorrect date. don't understand wrong simple formula. data here.

any advice appreciated.

if 2 id's found in g2 , g3, please try in h2 , copied down:

=max(if(a:a=g2,b:b)) 

entered ctrl+shift+enter

and matching scores suit (say vlookup).


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -