# Construct a formula to track time spent in business hours only

1. ## Construct a formula to track time spent in business hours only

I am in need of some assistance. I need to form a calculation for my employer. The Help Desk is opened from 7:30am to 6:30pm. I am in charge of excel reports for email support to ensure we are meeting all SLAs. If an email comes in at 8:00am and we have not responded to this user until the next day at 9:15am, we need to track the actual time it took to respond. How can we construct a formula to take into consideration the 11 hour work day from 7:30am to 6:30pm.

This is what i have so far. Again, it does not take into consideration our business hours and actual time it took to respond.

2. ## Re: Need him with a formulate!!!!!!!!!

Welcome to the forum

To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST

3. ## Re: Need him with a formulate!!!!!!!!!

Can anyone help me?

4. ## Re: Construct a formula to track time spent in business hours only

This formula will calculate business hours assuming that the start and end times are always within the business hours

=(NETWORKDAYS(A2,B2)-1)*("7:30"-"18:30")+MOD(B2,1)-MOD(A2,1)

where A2 has start time/date and B2 end time/date

format result cell as [h]:mm

If the email might come in outside of work hours then change to this version

=(NETWORKDAYS(A2,B2)-1)*("7:30"-"18:30")+MOD(B2,1)-MEDIAN(NETWORKDAYS(A2,A2)*MOD(A2,1),"7:30","18:30")

5. ## Re: Construct a formula to track time spent in business hours only

Thank you Daddylonglegs. I am trying to implement this into my spreadsheet and it is not working correctly. A calculation that is only 3 hours is coming out over 12 hours.

6. ## Re: Need him with a formulate!!!!!!!!!

I am sorry. I do not know how to 'PM' you.

7. ## Re: Construct a formula to track time spent in business hours only

Can you give me the details for a calculation that doesn't give what you want - what dates/times do you have, what result do you expect?

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

## X vBulletin 4.1.8 Debug Information

• Page Generation 0.06422 seconds
• Memory Usage 8,993KB
• Queries Executed 14 (?)
Template Usage (31):
• (1)footer
• (1)forumrules
• (1)gobutton
• (7)memberaction_dropdown
• (1)navbar
• (4)navbar_noticebit
• (6)option
• (7)postbit_legacy
• (7)postbit_onlinestatus
• (7)postbit_wrapper
• (1)spacer_close
• (1)spacer_open
• (1)tagbit_wrapper

Phrase Groups Available (6):
• global
• inlinemod
• postbit
• posting
• reputationlevel
Included Files (39):
• ./vbseo.php
• ./env.php
• ./vbseo/includes/functions_vbseo.php
• ./vbseo/includes/functions_vbseo_pre.php
• ./vbseo/includes/functions_vbseo_url.php
• ./vbseo/includes/functions_vbseo_createurl.php
• ./vbseo/includes/functions_vbseo_db.php
• ./vbseo/includes/functions_vbseo_vb.php
• ./vbseo/includes/functions_vbseo_seo.php
• ./vbseo/includes/functions_vbseo_misc.php
• ./vbseo/includes/functions_vbseo_crr.php
• ./vbseo/includes/functions_vbseo_cache.php
• ./vbseo/includes/functions_vbseo_hook.php
• ./vbseo/includes/functions_vbseo_startup.php
• ./includes/config.php
• ./global.php
• ./includes/class_bootstrap.php
• ./includes/init.php
• ./includes/class_core.php
• ./includes/functions.php
• ./includes/class_friendly_url.php
• ./includes/class_hook.php
• ./includes/functions_cforum.php
• ./includes/functions_bigthree.php
• ./includes/class_postbit.php
• ./includes/class_bbcode.php
• ./includes/functions_reputation.php
• ./includes/class_bootstrap_framework.php
• ./vb/vb.php
• ./vb/phrase.php
• ./includes/functions_notice.php
• ./packages/vbattach/attach.php
• ./vb/types.php
• ./vb/cache.php
• ./vb/cache/db.php
• ./vb/cache/observer/db.php
• ./vb/cache/observer.php

Hooks Called (46):
• init_startup
• friendlyurl_resolve_class
• database_pre_fetch_array
• database_post_fetch_array
• global_bootstrap_init_start
• global_bootstrap_init_complete
• cache_permissions
• fetch_foruminfo
• global_state_check
• global_bootstrap_complete
• global_start
• style_fetch
• global_setup_complete
• friendlyurl_redirect_canonical
• bbcode_fetch_tags
• bbcode_create
• postbit_factory
• postbit_display_start
• cache_templates
• template_register_var
• parse_templates
• notices_check_start
• notices_noticebit
• process_templates_complete
• reputation_image
• postbit_imicons
• bbcode_parse_start
• bbcode_parse_complete_precache
• bbcode_parse_complete
• postbit_display_complete
• memberaction_dropdown
• tag_fetchbit_complete
• forumrules