Ok I'm a little rusty here. Anyone know how to make this formula work correctly?
I am making a timesheet spreadsheet that lets you enter times in cells and then, and here's the prob, calculate the hours.
It works fine except that I want the result cell to be normal numbers (2.5 hours, not 2:30 hours if it were 7:00 in G8 and 9:30 in H8) I can't figure out how to format the cell to give a number like that. If I format as number the number comes out as some weird stuff derived from the time.
Here's where I'm at:
=IF(H8>G8,IF(G8>0,H8-G8, ""),IF(G8>0,(H8+24)-G8,""))
I am making a timesheet spreadsheet that lets you enter times in cells and then, and here's the prob, calculate the hours.
It works fine except that I want the result cell to be normal numbers (2.5 hours, not 2:30 hours if it were 7:00 in G8 and 9:30 in H8) I can't figure out how to format the cell to give a number like that. If I format as number the number comes out as some weird stuff derived from the time.
Here's where I'm at:
=IF(H8>G8,IF(G8>0,H8-G8, ""),IF(G8>0,(H8+24)-G8,""))