Forum Discussion
Kirk-Anderson
Jun 25, 2024Copper Contributor
INDEX MATCH with MAXIFS?
Hey all. I'm working on some waiting lists, I'm a bit stuck on a formula that indentifies the longest waiter in a table who is still waiting. I've got the first bit working, identifying the longe...
- Jun 25, 2024
Try
=INDEX(Apr24Apr25[Forename], XMATCH(1, (Apr24Apr25[PW]=MAXIFS(Apr24Apr25[PW], Apr24Apr25[Status], "Waiting"))*(Apr24Apr25[Status]="Waiting")))
Kirk-Anderson
Jul 03, 2024Copper Contributor
Hi Hans, is there a way to add a second column and value in? I have a column called Location with five selectable values (one of which is "Swindon"), so I would be wanting to identify the longest waiter from Swindon for example. Thanks in advance.
HansVogelaar
Jul 03, 2024MVP
Let's say you enter the location you want to focus on in L2. The formula for longest waiter from that location is
=INDEX(Apr24Apr25[Forename], XMATCH(1, (Apr24Apr25[PW]=MAXIFS(Apr24Apr25[PW], Apr24Apr25[Status], "Waiting", Apr24Apr25[Location], L2))*(Apr24Apr25[Status]="Waiting")*(Apr24Apr25[Location]=L2)))
- Kirk-AndersonJul 04, 2024Copper ContributorThat's so helpful, thanks again Hans.