Modify formula to find second match

suprsnipes

Active Member
Joined
Apr 26, 2009
Messages
434
Hi

I would like to ask how I could modify the following formula to find the 2nd or third match, if possible.

Code:
=INDEX(P$3:P$100,MATCH(1,IF(1-($I$3:$I$100=""),IF($U$3:$U$100="Y",1)),0))

Thanks in advance
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hello,

A1 enter

=SUMPRODUCT(--($I$3:$I$100<>""),--($U$3:$U$100="Y"))

A2, Control+Shift+Enter, copy down..

=IF(ROWS(A$2:A2)<=$A$1,INDEX(P$3:P$100,SMALL(IF($I$3:$I$100<>"",IF($U$3:$U$100="Y",ROW(P$3:P$100)-ROW(P$3)+1)),ROWS(A$2:A2))),"")
 
Upvote 0
Hi,

Iam using the formula below after getting help from the forum member below, however I would like to stop it from returning #VALUE. How can I do that?

Hello,

A1 enter

=SUMPRODUCT(--($I$3:$I$100<>""),--($U$3:$U$100="Y"))

A2, Control+Shift+Enter, copy down..

=IF(ROWS(A$2:A2)<=$A$1,INDEX(P$3:P$100,SMALL(IF($I$3:$I$100<>"",IF($U$3:$U$100="Y",ROW(P$3:P$100)-ROW(P$3)+1)),ROWS(A$2:A2))),"")

Regards,
suprsnipes
 
Upvote 0
Sorry I should have realised the formula is already doing what I want and doesn't return #VALUE like I mentioned in my previous post. Because the formula is referring to another cell when I tried to repeat the formula on another column instead of P I needed to keep the formula linked to the SUMPRODUCT cell also.

Solved, thanks
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,768
Members
452,940
Latest member
rootytrip

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