Index match problem

flammabubble

New Member
Joined
Aug 19, 2015
Messages
28
Hi guys,

Working in google sheets, I'm trying to get an Index Match function to work with multiple criteria.

The sheet I am searching looks like this:
Game NumberPlayerMatch Type
1Player1Friendly
2Player1Friendly
3Player1League
4Player1Friendly
5Player1League
6Player1League
7Player1Friendly
8Player1League


I currently have a formula to return the 4th most recent Game Number (column A) as below:
Excel Formula:
=Index('Stat extract 1'!A:A,Match(9.99999999999999E+307,'Stat extract 1'!A:A)-3)

In this instance it would return "5" as intended, and I can adjust the -3 to change what output I am seeking.

What I want to do now is add in the additional criteria of only searching a specific match type. For example, I want to find the 4th most recent "League" match and therefore have the code return game number "3". I also want this to be conditional on whether D4 is not blank (which I believe would be done by adding =if(d4<>"" to the start). I would be grateful if anyone has any suggestions on how to do this?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You could use

Excel Formula:
=LARGE(FILTER('Stat extract 1'!A:A,'Stat extract 1'!C:C="League"),4)
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,451
Members
452,514
Latest member
cjkelly15

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