INDEX MATCH 2 Criteria 1st Occurance

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,501
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

I am in need of an index match formula with 2 criteria to match and return 1st Occurance than 2nd and so on

Here is a sample data with headings in Row 1
Data starting from Row 2 (Coumns A,B,C)


REF#------Name----------Size

414--------Flat Sheet-----125x200
414--------Flat Sheet-----240x200
414--------Fitted Sheet---150x210
414--------Pillow----------50x70
414--------Duvet----------125x200



Cell D1 = 414
Cell E1 = Flat Sheet
Cell F1 = Formula required to give the first occurance ( 125x200)
Cell F2 = Formula required to give the second occurance (240x200)


Any help would be appreciated.

Regards,

Humayun
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
How about
=IFERROR(INDEX($C$2:$C$6,AGGREGATE(15,6,(ROW($C$2:$C$6)-ROW($C$2)+1)/(($A$2:$A$6=$D$1)*($B$2:$B$6=$E$1)),ROWS($A$1:$A1))),"")
 
Upvote 0
Hi Fluff,

Thanks for the reply.... Your formula is working perfect

I was using this formula with a single criteria

Code:
=IFERROR(INDEX($B$2:$B$6,SMALL(IF($A$2:$A$6=$D$1,ROW($A$2:$A$6)-1,""),ROW(1:1))),"")


Is it possible to add the second criteria in the above formula. Your formula is very advance i guess (working perfect though).
Finding it difficult to understand.
 
Upvote 0
How about
=IFERROR(INDEX($C$2:$C$6,SMALL(IF(($A$2:$A$6=$D$1)*($B$2:$B$6=$E$1),ROW($A$2:$A$6)-1,""),ROW(1:1))),"")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,002
Messages
6,122,652
Members
449,092
Latest member
peppernaut

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