Hi, I have a spreadsheet and on one of the sheets named 'data' I have names (column C), areas (column E) and categories from row F1:P1. For easy reference I will call the areas 'class' and categories 'subjects'. It looks something like below
[TABLE="width: 387"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]ART[/TD]
[TD]MATHS[/TD]
[TD]HISTORY[/TD]
[/TR]
[TR]
[TD]NAME 1[/TD]
[TD]CLASS C[/TD]
[TD]15/07/2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 2[/TD]
[TD]CLASS A[/TD]
[TD]03/03/2018[/TD]
[TD][/TD]
[TD]26/01/2018[/TD]
[/TR]
[TR]
[TD]NAME 3[/TD]
[TD]CLASS C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 4[/TD]
[TD]CLASS B[/TD]
[TD]28/02/2018[/TD]
[TD]16/05/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 5[/TD]
[TD]CLASS B[/TD]
[TD][/TD]
[TD]04/12/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 6[/TD]
[TD]CLASS A[/TD]
[TD]22/08/2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 7[/TD]
[TD]CLASS C[/TD]
[TD]14/11/2018[/TD]
[TD]17/06/2018[/TD]
[TD]04/10/2018[/TD]
[/TR]
[TR]
[TD]NAME 8[/TD]
[TD]CLASS A[/TD]
[TD][/TD]
[TD]23/08/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 9[/TD]
[TD]CLASS A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 10[/TD]
[TD]CLASS A[/TD]
[TD][/TD]
[TD][/TD]
[TD]16/10/2018[/TD]
[/TR]
</tbody>[/TABLE]
In another sheet I am looking up data from this sheet. In cell D2 I have a validation looking at the all the subjects in row 1 from F:P. In C4 I have 'Class A', in D4 'Class B' etc. In C5 I have a basic counta formula counting the total numbers for Class A etc . The formula I need is for cell C6 which will be look at cell C4 (Class A) and cell D2 (the subject) against my data and return the number for that, in this case if we chose Class A and Art it would return 2. The data would change as I changed my subject.
In addition to this I also want to list the names of anyone in Class A and Art that does not have a date (this would be in cell C12. Class B would be in D12. In this instance it would bring off Name 2, Name 8 and Name 10 and again that would change as cell D2 (subject) changed
I hope this makes sense and any help is appreciated. I have tried countif by using another sheet and converting the dates to numbers and also sum product
[TABLE="width: 387"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]ART[/TD]
[TD]MATHS[/TD]
[TD]HISTORY[/TD]
[/TR]
[TR]
[TD]NAME 1[/TD]
[TD]CLASS C[/TD]
[TD]15/07/2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 2[/TD]
[TD]CLASS A[/TD]
[TD]03/03/2018[/TD]
[TD][/TD]
[TD]26/01/2018[/TD]
[/TR]
[TR]
[TD]NAME 3[/TD]
[TD]CLASS C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 4[/TD]
[TD]CLASS B[/TD]
[TD]28/02/2018[/TD]
[TD]16/05/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 5[/TD]
[TD]CLASS B[/TD]
[TD][/TD]
[TD]04/12/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 6[/TD]
[TD]CLASS A[/TD]
[TD]22/08/2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 7[/TD]
[TD]CLASS C[/TD]
[TD]14/11/2018[/TD]
[TD]17/06/2018[/TD]
[TD]04/10/2018[/TD]
[/TR]
[TR]
[TD]NAME 8[/TD]
[TD]CLASS A[/TD]
[TD][/TD]
[TD]23/08/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 9[/TD]
[TD]CLASS A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NAME 10[/TD]
[TD]CLASS A[/TD]
[TD][/TD]
[TD][/TD]
[TD]16/10/2018[/TD]
[/TR]
</tbody>[/TABLE]
In another sheet I am looking up data from this sheet. In cell D2 I have a validation looking at the all the subjects in row 1 from F:P. In C4 I have 'Class A', in D4 'Class B' etc. In C5 I have a basic counta formula counting the total numbers for Class A etc . The formula I need is for cell C6 which will be look at cell C4 (Class A) and cell D2 (the subject) against my data and return the number for that, in this case if we chose Class A and Art it would return 2. The data would change as I changed my subject.
In addition to this I also want to list the names of anyone in Class A and Art that does not have a date (this would be in cell C12. Class B would be in D12. In this instance it would bring off Name 2, Name 8 and Name 10 and again that would change as cell D2 (subject) changed
I hope this makes sense and any help is appreciated. I have tried countif by using another sheet and converting the dates to numbers and also sum product