1 | MIKE | HAT | JIM | BAT | JAMES | BAT | BOB | HAT |
2 | BOB | BAT | JAMES | HAT | BILL | HAT | ||
3 | JIM | HAT | ||||||
4 | MIKE | BAT | JAMES | HAT | BOB | BAT | ||
5 | BILL | HAT | MIKE | HAT |
<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 | |
JAMES | HAT |
BILL | HAT |
BOB | BAT |
PHILIP |
<tbody>
</tbody>
IF I change cell (A1) to 4 the results would read:
4 | |
MIKE | BAT |
JIM | |
JAMES | HAT |
BILL | |
BOB | HAT |
PHILIP |
<tbody>
</tbody>