Index Match

hajiali

Well-known Member
Joined
Sep 8, 2018
Messages
624
Office Version
  1. 2016
Platform
  1. Windows
1MIKEHATJIMBATJAMESBATBOBHAT
2BOBBATJAMESHATBILLHAT
3JIMHAT
4MIKEBATJAMESHATBOBBAT
5BILLHATMIKEHAT

<tbody>
</tbody>

above table Column A is day of month column followed by names than code to the right for each person. on another sheet I have the list of all the names in cell (A2) down. In cell (A1) I input Day of Month. based on the (A1), in column B i want to it pull the code next to each name that appears for that day of month. Ex. If I put 2 in cell (A1) results should be below.

2
MIKE
JIM
JAMESHAT
BILLHAT
BOBBAT
PHILIP

<tbody>
</tbody>

IF I change cell (A1) to 4 the results would read:

4
MIKEBAT
JIM
JAMESHAT
BILL
BOBHAT
PHILIP

<tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Re: Index Match Help

With data like

Book1
ABCDEFGHI
1
21MIKEHATJIMBATJAMESBATBOBHAT
32BOBBATJAMESHATBILLHAT
43JIMHAT
54MIKEBATJAMESHATBOBBAT
65BILLHATMIKEHAT
Sheet1


try


Book1
AB
14
2MIKEBAT
3JIM
4JAMESHAT
5BILL
6BOBBAT
7PHILIP
Sheet2
Cell Formulas
RangeFormula
B2=IFERROR(INDEX(Sheet1!$C$2:$I$6,$A$1,MATCH(A2,INDEX(Sheet1!$B$2:$I$6,$A$1,0),0)),"")
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,729
Members
449,049
Latest member
MiguekHeka

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