Hi all,
Hi have a table with three columns, one for names (column A) and the other two for dates (Column B and C). I need to count the distinct dates from column B and C based on criteria on column A.
For example, if the criteria is Paul the result must be 4 (count of distinct dates for this name in both columns, B and C).
How can I do this with formulas?
Thanks.
[TABLE="class: grid, width: 700"]
<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]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date1[/TD]
[TD]Date2[/TD]
[TD][/TD]
[TD]Name[/TD]
[TD="align: center"]Date1[/TD]
[TD="align: center"]Date2[/TD]
[TD="align: center"]Date1:Date2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Paul[/TD]
[TD]12-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD]Paul[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Paul[/TD]
[TD]12-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]John[/TD]
[TD]13-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]12-01-2018[/TD]
[TD="align: center"]12-01-2018[/TD]
[TD="align: center"]12-01-2018[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Laura[/TD]
[TD]13-01-2018[/TD]
[TD]14-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]15-01-2018[/TD]
[TD="align: center"]16-01-2018[/TD]
[TD="align: center"]15-01-2018[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]John[/TD]
[TD]14-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]17-01-2018[/TD]
[TD="align: center"]16-01-2018[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Paul[/TD]
[TD]15-01-2018[/TD]
[TD]16-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]17-01-2018[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Thomas[/TD]
[TD]15-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Paul[/TD]
[TD]15-01-2018[/TD]
[TD]17-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Laura[/TD]
[TD]15-01-2018[/TD]
[TD]18-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hi have a table with three columns, one for names (column A) and the other two for dates (Column B and C). I need to count the distinct dates from column B and C based on criteria on column A.
For example, if the criteria is Paul the result must be 4 (count of distinct dates for this name in both columns, B and C).
How can I do this with formulas?
Thanks.
[TABLE="class: grid, width: 700"]
<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]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date1[/TD]
[TD]Date2[/TD]
[TD][/TD]
[TD]Name[/TD]
[TD="align: center"]Date1[/TD]
[TD="align: center"]Date2[/TD]
[TD="align: center"]Date1:Date2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Paul[/TD]
[TD]12-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD]Paul[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Paul[/TD]
[TD]12-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]John[/TD]
[TD]13-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]12-01-2018[/TD]
[TD="align: center"]12-01-2018[/TD]
[TD="align: center"]12-01-2018[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Laura[/TD]
[TD]13-01-2018[/TD]
[TD]14-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]15-01-2018[/TD]
[TD="align: center"]16-01-2018[/TD]
[TD="align: center"]15-01-2018[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]John[/TD]
[TD]14-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]17-01-2018[/TD]
[TD="align: center"]16-01-2018[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Paul[/TD]
[TD]15-01-2018[/TD]
[TD]16-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]17-01-2018[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Thomas[/TD]
[TD]15-01-2018[/TD]
[TD]12-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Paul[/TD]
[TD]15-01-2018[/TD]
[TD]17-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Laura[/TD]
[TD]15-01-2018[/TD]
[TD]18-01-2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]