Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default An easier way?

Hi,

I have already posted a couple of things today with regards to this and I
have finally found my own solution. The only thing is that the formula seems
a little monstrous to say the least. Basically this formula totals up time
travelled and adds it to time on site so long as time on site is not more
than 8 hours. If it is more that 8 hours then the formula simply adds the 8
to the travel time instead with the left over dealt with elsewehere. The next
thing it does is display nothing if the answer is less than 0, the reason for
this is that the format of the cell containing this formula is [h]:mm so if
the date is negative then it just displays ######## which means at the bottom
of the sheet the sum total of time worked will not add up properly. Thats it
really it adds time travelled and time worked (so long as no more than 8
hours on site) if more than 8 hours it just adds 8 and if the number is
negative it displays nothing.

What do you think? Is there a clearer way than this as it is quite confusing.

=IF(((SUM(F5-E5,F6-E6,F7-E7,F8-E8,F9-E9,F10-E10))+(IF((SUM(H5-G5,H6-G6,H7-G7,H8-G8,H9-G9,H10-G10)-0.0208333333333333)<=0.333333333333333,((SUM(H5-G5,H6-G6,H7-G7,H8-G8,H9-G9,H10-G10)-0.0208333333333333)),0.333333333333333)))<0,"",((S UM(F5-E5,F6-E6,F7-E7,F8-E8,F9-E9,F10-E10))+(IF((SUM(H5-G5,H6-G6,H7-G7,H8-G8,H9-G9,H10-G10)-0.0208333333333333)<=0.333333333333333,((SUM(H5-G5,H6-G6,H7-G7,H8-G8,H9-G9,H10-G10)-0.0208333333333333)),0.333333333333333))))


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there an easier way? Alexey[_2_] Excel Worksheet Functions 4 September 28th 08 10:59 PM
easier way to do this? guitara Excel Discussion (Misc queries) 2 August 22nd 07 05:16 PM
got to be an easier way? redneck joe Excel Discussion (Misc queries) 6 March 29th 06 02:56 AM
Easier Way? scott45 Excel Worksheet Functions 2 October 12th 05 04:55 AM
There has to be any easier way!! mully New Users to Excel 18 August 13th 05 12:26 PM


All times are GMT +1. The time now is 08:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"