INDEX and MATCH function with finding two rows and display their content

nsa1

New Member
Joined
Jul 11, 2023
Messages
39
Office Version
  1. 2010
Hello,

I have an issue where I would like to add contents of multiple rows of a referenced column via INDEX and MATCH function into one cell...

I've added snapshots below.

I would want a cell under Andy where the formula is to return "xyx, yz". My current formula only returns the first value of the row it finds.

thanks,

NA
 

Attachments

  • IndexMatch2.png
    IndexMatch2.png
    69.1 KB · Views: 4
  • IndexMatch1.png
    IndexMatch1.png
    72.5 KB · Views: 4

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
With your version of Excel I don't think you will be able to use a formula to put the answer in one cell. This formula will find both or more answers and put them in columns of the same row.
Enter the formula in H3 and drag across columns.
Book1
ABCDEFGHI
1
2NameJanFebMarNameAndy
31Alper$11,882$11,519$7,565xyxYZ
42Burrows$11,676$6,344$5,406
53Chandler$10,296$9,693$11,867
64Colby$4,752$6,786xyz
75Frantz$10,699$5,194$10,525
86Gonzalez$10,404xyz$8,964
97Kyle$11,841$4,689$10,992
108Little$5,259$3,900$7,845
119Long$6,364$4,759
1210Andy$999xyx$99
1311AndyxyxYZ$100
Sheet1
Cell Formulas
RangeFormula
H3:I3H3=IFERROR(INDEX($C$3:$E$13,AGGREGATE(15,6,(ROW($B$3:$B$13)-ROW($B$3)+1)/($B$3:$B$13=$H$2),COLUMNS($H$3:H$3)),2),"")
 
Upvote 0
Hi @nsa1, few questions:
1. Could you confirm your Excel version please, is it only Excel 2010?
2. Would you accept a custom VBA function?
3. What is the exact criteria for the result, eg. only text or everything except a number?
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,064
Members
449,090
Latest member
fragment

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