Return different values using INDEX AND MATCH

rdna123

New Member
Joined
Mar 14, 2025
Messages
2
Office Version
  1. 365
Platform
  1. Windows
This is the current formula I am using:

=INDEX(B:B,MATCH($B9,C:C,0))

However, if there are two of the same number in B:B it only returns the first value of C that shows up even if there are multiple responses.
How do I get it to show the first value in one row and the second value in another?
Row 5 should show a different name/initials

1741981930209.png


Thanks!
 
Welcome to the Board!

Have a look at Excel's new FILTER function (available in 365), which allows you to return multiple matches instead of just the first one.
See: FILTER function - Microsoft Support
 
Upvote 0
When I tried to use the formula it returned a SPILL error code for this
 
Upvote 0
See if this link helps on spill error. It's probably because you are using a whole column reference.
 
Upvote 0
This is the current formula I am using:

=INDEX(B:B,MATCH($B9,C:C,0))
Is that really the formula you are using? We don't know exactly what your data looks like** but that formula looks unlikely to me.
See if you could adapt something like this.

** I suggest that you investigate XL2BB for providing sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be.
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)

25 03 19.xlsm
ABCDEF
1AssociateValueTop 5Value
2QW172.2JP179.4
3US171.3LW177.7
4SX176.4BC177.7
5LW177.7GK177.7
6DL177.6DL177.6
7BC177.7
8HY174.2
9JP179.4
10GK177.7
11NC174.4
12JK177.5
13DT175.1
14BV170.7
15
Top 5
Cell Formulas
RangeFormula
E2:F6E2=TAKE(SORT(B2:C14,2,-1),5)
Dynamic array formulas.
 
Upvote 0

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