hi! i have 2 separate tabs with the following information in google sheets
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Dates[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Lauren[/TD]
[TD]09/10/19, 09/11/19, 09/13/19[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Ron[/TD]
[TD]09/10/19, 09/12/19, 09/14/19[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Mike[/TD]
[TD]09/10/19[/TD]
[/TR]
</tbody>[/TABLE]
i need a formula for the cells below that have the #1 in them.
=countifs('Tab 1'!$A:$A,$A2,'Tab 1'!$B:$B,B$1)
The only row the formula above is working for is Mike in Row 4 because he only has 1 date. the first part of the formula is to match up the names...then esentially i need the formula to count if any of the dates in TAB 1 - COLUMN B match the date in TAB 2 - ROW 1
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD="align: center"]09/10/19[/TD]
[TD="align: center"]09/11/19[/TD]
[TD="align: center"]09/12/19[/TD]
[TD="align: center"]09/13/19[/TD]
[TD="align: center"]09/14/19[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]Lauren[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Ron[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]Mike[/TD]
[TD="align: center"]1
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Dates[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Lauren[/TD]
[TD]09/10/19, 09/11/19, 09/13/19[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Ron[/TD]
[TD]09/10/19, 09/12/19, 09/14/19[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Mike[/TD]
[TD]09/10/19[/TD]
[/TR]
</tbody>[/TABLE]
i need a formula for the cells below that have the #1 in them.
=countifs('Tab 1'!$A:$A,$A2,'Tab 1'!$B:$B,B$1)
The only row the formula above is working for is Mike in Row 4 because he only has 1 date. the first part of the formula is to match up the names...then esentially i need the formula to count if any of the dates in TAB 1 - COLUMN B match the date in TAB 2 - ROW 1
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD="align: center"]09/10/19[/TD]
[TD="align: center"]09/11/19[/TD]
[TD="align: center"]09/12/19[/TD]
[TD="align: center"]09/13/19[/TD]
[TD="align: center"]09/14/19[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]Lauren[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Ron[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]Mike[/TD]
[TD="align: center"]1
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]