returning the 2nd instance...

kazbear

New Member
Joined
Dec 16, 2002
Messages
42
Office Version
  1. 365
Platform
  1. Windows
I am using this formula to match results (It works great):
=INDEX('sheet'!$A$2:$J$1293,MATCH(1,('Sheet'!$A$2:$A$1293=$E$8)*('Sheet'!$E$2:$E$1293=A29)*('sheet'!$G$2:$G$1293<>"Delete Item")*('sheet'!$G$2:$G$1293<>"Locked Item"),0),10)

Most of the time there will be only one result. But I do have a couple of instances where there will be more than one result. I would like to return those values as well.

The cell value I am capturing is text.

Is there a way I can modify this formula to return the second (or third, etc...) match?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi Kazbear,

I propose the following. Let me know if you have any questions.


Excel 2010
AEGJMN
1c
256Delete Itemaf
356Locked Itemb#NUM!
456xc
546d
653e
756f
85
9.
296
Sheet
Cell Formulas
RangeFormula
N1{=INDEX($A$2:$J$1293,SMALL(IF((Sheet!$A$2:$A$1293=$E$8)*(Sheet!$E$2:$E$1293=$A$29)*($G$2:$G$1293<>"Delete Item")*($G$2:$G$1293<>"Locked Item"),ROW($A$2:$A$1293)-MIN(ROW($A$2:$A$1293))+1,""),ROWS(1:$1)),10)}
Press CTRL+SHIFT+ENTER to enter array formulas.


'Great day,

Luke
 
Upvote 0
Works perfect.
Thank you. I should be able to use this same concept now for the other areas where I have similar needs...
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,847
Members
449,051
Latest member
excelquestion515

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