Hi and welcome.
First thing. to learn here.. upload example files, not pictures.. Debugging pictures is often very difficult.
to answer your questions based on picture only.
1) because using TIME function is not needed, worse it causes the error. simply use E4-D4 to find the hours between "fra"and "Til"
2) formula could be
for time notation
or for decimal value
3) see 1:, but if you want it to show as decimal value 3,25 then multiply by 24 =(E4-D4)*24
if you also have to (til) times after midnight then you need a slightly more complicated formula
where the (E4<D4) will add 1 to E4 to be bigger then D4.
Times in excel are fractions of 1
so 6:00 equals 0,25 and 18:00 equals 0,75
when the end time is smaller then the begin time then you get a negative value and times cannot be negative therefore you need to make the endtime bigger (by adding 1) to get a correct time worked.
Bookmarks