index match second result

j4ymf

Well-known Member
Joined
Apr 28, 2003
Messages
755
Office Version
  1. 365
Platform
  1. Windows
Good Evening

I was wondering would it be possible to find the first and second result.

My look up is joe bloggs and as you can see from my image my first result is Apples and the second result is Pears
How would i do this

thank you in advance, Jason
 

Attachments

  • Annotation 2020-06-15 185052.jpg
    Annotation 2020-06-15 185052.jpg
    63.1 KB · Views: 13

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
VBA Code:
=IFERROR(INDEX(Download!$D$1:$D$9999,AGGREGATE(15,6,(ROW(Download!$D$1:$D$9999)-ROW(Download!$D$1)+1)/(Download!$F$1:$F$9999=B8),1)),"")

I was given this code on the forum last week which finds my first result its just the second result im struggling with

Thank you
 
Upvote 0
Try:

Book5
ABCDEFGH
1
2
3Joe BloggsApplesFirst result
4Joe BloggsApplesLookupJoe Bloggs
5Joe BloggsApplesFirst resultApples
6Joe BloggsApplesSecond ResultPears
7Joe BloggsApples
8Joe BloggsApples
9Joe BloggsApples
10Joe BloggsApples
11Joe BloggsPearsSecond Result
12Joe BloggsPears
13Joe BloggsPears
14Joe BloggsPears
15Joe BloggsPears
16Joe BloggsPears
17
Sheet17
Cell Formulas
RangeFormula
H5:H6H5=IFERROR(INDEX(C:C,AGGREGATE(15,6,ROW(C$3:C$16)/(COUNTIF(H$4:H4,$C$3:$C$16)=0)/($B$3:$B$16=H$4),1)),"")
 
Upvote 0
Thank you Eric
What formula do i put in H6 to get my second result?
 
Upvote 0
Hi Eric,
I think ive got it
Thank you for your help

ill just have a play
 
Upvote 0
Happy to help! You can continue to drag the formula down further to get additional results.

:cool:
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

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