Exactly! You only need *24 on the Boolean to add 24 hours if the (B1-A1)
has also been multiplied by 24 to convert it to hours.
If he's going to leave the result formatted as time, then the formula is
=B1-A1+(B1<A1), but if he wants to format the result as general or number to
give hours then the formula is =(B1-A1+(B1<A1))*24
If he formats the results as time like h:mm then he can get away with his
formula of =B1-A1+(B1<A1)*24 because the Boolean term is adding 24 days
instead of 1 day, but the extra 23 whole days are lost in the formatting as
time, but, as you imply, if you format as [h]:mm to allow C1:C3 to be added
and deal with a total of greater than 24 hours then he will see that he's
got a silly result from his formula. His formula totals to 1130:42 for the
3 days, instead of the correct answer of 26:42.
--
David Biddulph
It's a trick.
(B1<A1) will either be True or False, its a boolean test
True or False will give 1 or 0, then *24 means that it effectively adds 24
hours
if B1 is less than A1
When starting with Excel stick to the IF() format if you aren't sure
You'r point about the hours / format etc is valid
and it is always necessary to keep the units of the various components the
same
ie 1 formatted as hh:mm will be 00:00 as it will treat it as 1 day !
[h]:mm would show it as 24:00
Steve