Using Vlookup or Index/Match based on a Max value

kwread

New Member
Joined
May 12, 2016
Messages
9
I have a data set that has a list of interactions, including organization name, status of interaction, date of the interaction and score of the interaction. I am hoping to write a lookup that can find the score, for the most recent, completed interaction with each organization.
Example of what this looks like below.
I want to be write a lookup such that for each organization name it pulls the score for the most recent completed interaction
So for
Franks -> Should pull a 3
For Jims it would pull 4, because even though the score of 1 was more recent, that interaction is still pending

Etc etc for many installers

Not really sure how to get this to work. I can use Maxifs to return the max date value for a given installer and status, but not sure how to then translate that over to the score column?

Thanks


Organization NameInteraction StatusInteraction ScoreInteraction Date
Jims Complete21/1/2018
FranksComplete31/1/2017
FranksPending32/1/2017
JimsComplete49/1/2019
JimsPending110/1/2019
JimsComplete32/1/2019
JimsComplete42/1/2018
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
What version of Xl are you using?
 
Upvote 0
That sounds as though you might not have the new dynamic arrays yet, is that right?
 
Upvote 0
That sounds as though you might not have the new dynamic arrays yet, is that right?
"Dynamic Arrays" isnt a term ive heard before so im not actually sure....

I think i may have found a potential solution Using a MaxIfs in one column to return the Date of the most recent inspection, and then in the next column using a Index(Match(1,(Condtion)*Condition*Condtion...) based on that date in the next.

It seems to be working, though is two big array formulas so seems calculation intensive.

If anyone has ideas for simpler solutions let me know but this does at least seem to be feasible
 
Upvote 0
If you type =seq into a cell, does it show you SEQUENCE as an option?
 
Upvote 0
Ignore that, how about

+Fluff.xlsm
ABCDEFG
1Organization NameInteraction StatusInteraction ScoreInteraction Date
2JimsComplete201/01/2018Jims4
3FranksComplete301/01/2017Franks3
4FranksPending302/01/2017
5JimsComplete409/01/2019
6JimsPending110/01/2019
7JimsComplete302/01/2019
8JimsComplete402/01/2018
Finals
Cell Formulas
RangeFormula
G2:G3G2=AGGREGATE(15,6,$C$2:$C$8/($D$2:$D$8=MAXIFS($D$2:$D$8,$A$2:$A$8,F2,$B$2:$B$8,"Complete")),1)
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top