[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]MIKE[/TD]
[TD]HAT[/TD]
[TD]JIM[/TD]
[TD]BAT[/TD]
[TD]JAMES[/TD]
[TD]BAT[/TD]
[TD]BOB[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BOB[/TD]
[TD]BAT[/TD]
[TD]JAMES[/TD]
[TD]HAT[/TD]
[TD]BILL[/TD]
[TD]HAT[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]JIM[/TD]
[TD]HAT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]MIKE[/TD]
[TD]BAT[/TD]
[TD]JAMES[/TD]
[TD]HAT[/TD]
[TD]BOB[/TD]
[TD]BAT[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]BILL[/TD]
[TD]HAT[/TD]
[TD]MIKE[/TD]
[TD]HAT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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.
[TABLE="width: 500"]
<tbody>[TR]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MIKE
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JIM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JAMES[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]BILL[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]BOB[/TD]
[TD]BAT[/TD]
[/TR]
[TR]
[TD]PHILIP[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
IF I change cell (A1) to 4 the results would read:
[TABLE="width: 500"]
<tbody>[TR]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MIKE[/TD]
[TD]BAT[/TD]
[/TR]
[TR]
[TD]JIM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JAMES[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]BILL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BOB[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]PHILIP[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD]1[/TD]
[TD]MIKE[/TD]
[TD]HAT[/TD]
[TD]JIM[/TD]
[TD]BAT[/TD]
[TD]JAMES[/TD]
[TD]BAT[/TD]
[TD]BOB[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BOB[/TD]
[TD]BAT[/TD]
[TD]JAMES[/TD]
[TD]HAT[/TD]
[TD]BILL[/TD]
[TD]HAT[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]JIM[/TD]
[TD]HAT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]MIKE[/TD]
[TD]BAT[/TD]
[TD]JAMES[/TD]
[TD]HAT[/TD]
[TD]BOB[/TD]
[TD]BAT[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]BILL[/TD]
[TD]HAT[/TD]
[TD]MIKE[/TD]
[TD]HAT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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.
[TABLE="width: 500"]
<tbody>[TR]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MIKE
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JIM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JAMES[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]BILL[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]BOB[/TD]
[TD]BAT[/TD]
[/TR]
[TR]
[TD]PHILIP[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
IF I change cell (A1) to 4 the results would read:
[TABLE="width: 500"]
<tbody>[TR]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MIKE[/TD]
[TD]BAT[/TD]
[/TR]
[TR]
[TD]JIM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JAMES[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]BILL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BOB[/TD]
[TD]HAT[/TD]
[/TR]
[TR]
[TD]PHILIP[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]