Dear friends,
I required your help for the below excel query:
The following is the data set sample:
[TABLE="width: 210"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Class. Date[/TD]
[TD] Reg.No [/TD]
[TD="align: right"]Course[/TD]
[/TR]
[TR]
[TD="align: right"]12/05/2017[/TD]
[TD="align: right"] 123456[/TD]
[TD="align: right"] ?[/TD]
[/TR]
[TR]
[TD="align: right"]19/05/2017[/TD]
[TD="align: right"]123456[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]30/05/2017[/TD]
[TD="align: right"]123456[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]02/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]09/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]16/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]23/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]?[/TD]
[/TR]
</tbody>[/TABLE]
I require the course name based if two criteria are met:
a) Reg no
b) Data range is within category from the below data set:
Reg no From To Course
123456 1/05/2017 26/05/2017 Maths
123456 27/05/2017 31/05/2017 Geography
901999 1/05/2017 15/06/2017 Science
901999 16/06/2017 30/06/2017 History
Based on the below, the final data set with course name should be as follows:
[TABLE="width: 210"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Class. Date[/TD]
[TD] Reg.No [/TD]
[TD="align: right"]Course[/TD]
[/TR]
[TR]
[TD="align: right"]12/05/2017[/TD]
[TD="align: right"] 123456[/TD]
[TD="align: right"]Maths [/TD]
[/TR]
[TR]
[TD="align: right"]19/05/2017[/TD]
[TD="align: right"]123456[/TD]
[TD="align: right"]Maths[/TD]
[/TR]
[TR]
[TD="align: right"]30/05/2017[/TD]
[TD="align: right"]123456[/TD]
[TD="align: right"] Geography[/TD]
[/TR]
[TR]
[TD="align: right"]02/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]Science[/TD]
[/TR]
[TR]
[TD="align: right"]09/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]Science[/TD]
[/TR]
[TR]
[TD="align: right"]16/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]History[/TD]
[/TR]
[TR]
[TD="align: right"]23/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]History
[/TD]
[/TR]
</tbody>[/TABLE]
Hope its clear. Thanks
Rahmit
I required your help for the below excel query:
The following is the data set sample:
[TABLE="width: 210"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Class. Date[/TD]
[TD] Reg.No [/TD]
[TD="align: right"]Course[/TD]
[/TR]
[TR]
[TD="align: right"]12/05/2017[/TD]
[TD="align: right"] 123456[/TD]
[TD="align: right"] ?[/TD]
[/TR]
[TR]
[TD="align: right"]19/05/2017[/TD]
[TD="align: right"]123456[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]30/05/2017[/TD]
[TD="align: right"]123456[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]02/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]09/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]16/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]?[/TD]
[/TR]
[TR]
[TD="align: right"]23/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]?[/TD]
[/TR]
</tbody>[/TABLE]
I require the course name based if two criteria are met:
a) Reg no
b) Data range is within category from the below data set:
Reg no From To Course
123456 1/05/2017 26/05/2017 Maths
123456 27/05/2017 31/05/2017 Geography
901999 1/05/2017 15/06/2017 Science
901999 16/06/2017 30/06/2017 History
Based on the below, the final data set with course name should be as follows:
[TABLE="width: 210"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Class. Date[/TD]
[TD] Reg.No [/TD]
[TD="align: right"]Course[/TD]
[/TR]
[TR]
[TD="align: right"]12/05/2017[/TD]
[TD="align: right"] 123456[/TD]
[TD="align: right"]Maths [/TD]
[/TR]
[TR]
[TD="align: right"]19/05/2017[/TD]
[TD="align: right"]123456[/TD]
[TD="align: right"]Maths[/TD]
[/TR]
[TR]
[TD="align: right"]30/05/2017[/TD]
[TD="align: right"]123456[/TD]
[TD="align: right"] Geography[/TD]
[/TR]
[TR]
[TD="align: right"]02/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]Science[/TD]
[/TR]
[TR]
[TD="align: right"]09/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]Science[/TD]
[/TR]
[TR]
[TD="align: right"]16/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]History[/TD]
[/TR]
[TR]
[TD="align: right"]23/06/2017[/TD]
[TD="align: right"]901999[/TD]
[TD="align: right"]History
[/TD]
[/TR]
</tbody>[/TABLE]
Hope its clear. Thanks
Rahmit