Bob Phillips Wrote:
> Shorter and simpler at the very least vbg
>
> =((J7-G7)-IF(AND(H7"",I7""),I7-H7,0))*24
>
> --
> HTH
>
> Bob Phillips
>
> snip
I tried it but excel would only accept it without the quotations after
(H7"",I7""). Then, I would get "#NAME?" error...may need the HOUR
MINUTE in there somewhere??? Will experiment some more... Thanks!

Signature
ChefBoiRD
Bob Phillips - 20 Sep 2005 10:01 GMT
Something happened in the posting, what is in your message is not what I
posted. I used
=((J7-G7)-IF(AND(H7<>"",I7<>""),I7-H7,0))*24
note the <> between H7 and "" and I7 and ""
Please re-try with this formula.

Signature
HTH
Bob Phillips
> Bob Phillips Wrote:
> > Shorter and simpler at the very least vbg
[quoted text clipped - 11 lines]
> (H7"",I7""). Then, I would get "#NAME?" error...may need the HOUR
> MINUTE in there somewhere??? Will experiment some more... Thanks!