monolithicjoe
New Member
- Joined
- Sep 26, 2017
- Messages
- 2
Hello,
I am attempting to auto populate a list based on times. I am using this formula and it works great if the shift times are different =INDEX(Sheet1!A:A,MATCH("XXXXXX",Sheet1!C:C, 0))
However, when they are the same, i.e =INDEX(Sheet1!A:A,MATCH("7:00A - 3:30P",Sheet1!C:C, 0)) it will obviously fill in the first name it finds.
Also the reason why all of rows A and C are selected is because the names and times do not always appear in the same row.
Example:
[TABLE="width: 289"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Doe, John[/TD]
[TD][/TD]
[TD]7:00A - 3:30P[/TD]
[/TR]
[TR]
[TD]Smith, John[/TD]
[TD][/TD]
[TD]7:00A - 3:30P[/TD]
[/TR]
[TR]
[TD]Rodger, John[/TD]
[TD][/TD]
[TD]7:00A - 3:30P
[/TD]
[/TR]
</tbody>[/TABLE]
Will show as:
[TABLE="width: 104"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Doe, John[/TD]
[/TR]
[TR]
[TD]Doe, John[/TD]
[/TR]
[TR]
[TD]Doe, John
But would like:
[TABLE="width: 103"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Doe, John[/TD]
[/TR]
[TR]
[TD]Smith, John[/TD]
[/TR]
[TR]
[TD]Rodger, John
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I am attempting to auto populate a list based on times. I am using this formula and it works great if the shift times are different =INDEX(Sheet1!A:A,MATCH("XXXXXX",Sheet1!C:C, 0))
However, when they are the same, i.e =INDEX(Sheet1!A:A,MATCH("7:00A - 3:30P",Sheet1!C:C, 0)) it will obviously fill in the first name it finds.
Also the reason why all of rows A and C are selected is because the names and times do not always appear in the same row.
Example:
[TABLE="width: 289"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Doe, John[/TD]
[TD][/TD]
[TD]7:00A - 3:30P[/TD]
[/TR]
[TR]
[TD]Smith, John[/TD]
[TD][/TD]
[TD]7:00A - 3:30P[/TD]
[/TR]
[TR]
[TD]Rodger, John[/TD]
[TD][/TD]
[TD]7:00A - 3:30P
[/TD]
[/TR]
</tbody>[/TABLE]
Will show as:
[TABLE="width: 104"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Doe, John[/TD]
[/TR]
[TR]
[TD]Doe, John[/TD]
[/TR]
[TR]
[TD]Doe, John
But would like:
[TABLE="width: 103"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Doe, John[/TD]
[/TR]
[TR]
[TD]Smith, John[/TD]
[/TR]
[TR]
[TD]Rodger, John
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]