The issue here is that the cells with Times are text and not actually times
Times are simply number between 0 (Midnight) and 1 (the following midnight)
eg: 0.5 is Noon, 0.25 is 6 am 0.75 is 6 pm
If you select say cell E5 and put a space between the 00am so it is 00 am and then remove the spaces before the 9, repeat on all the times
Then in G5 simply use =F5-E5
You will have to use a Custom number form of say hh:mm
As I get this data dump from the data warehouse, I would manually have to find a way to formatting as above to the entire data set. Let me try if I can use any trick to get it.
If you are regularly importing the data you can use a simple formula:
G5: =TIMEVALUE(SUBSTITUTE(SUBSTITUTE(F5,"P"," P"),"A"," A"))-TIMEVALUE(SUBSTITUTE(SUBSTITUTE(E5,"P"," P"),"A"," A"))
copy down