Based on the expected output in the file and the first line of post #9, the following formulas seem to return the correct values.
For Date:
Formula:
=AGGREGATE(15,6,'Raw data'!$B2:$B9/(('Raw data'!$A2:$A9=$A3)+('Raw data'!$A2:$A9=$B3)),COLUMNS($A$1:A$1))
For Time*:
Formula:
=IFERROR(INDEX('Raw data'!$C$2:$C$9,MATCH($B3&D3,'Raw data'!$A$2:$A$9&'Raw data'!$B$2:$B$9,0)),IFERROR(INDEX('Raw data'!$C$2:$C$9,MATCH($A3&D3,'Raw data'!$A$2:$A$9&'Raw data'!$B$2:$B$9,0)),""))
*The Time formula is an array entered formula which needs to be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER before being copied to other cells.
Note that you will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
Let us know if you have any questions.
Bookmarks