Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-07-2008, 10:23 AM
Niall 84
 
Posts: n/a
Date formatting

Hope someone can help me with this.

I have two colums's of date and time

i.e. Cell H12 has "05/02/2008 11:03"
and Cell N12 has "07/03/2008 11:35"

H13:H60 and N13:N60 has more times

I need to find the difference between these two times in hours and
have it in Cell O12

The problem i'm having is as follows, I need it to be hours in working
days, i.e Monday - Friday 8AM - 6PM.

Is this possible?

Looking forward to any help possible,

thanks,

Niall.

Reply With Quote
  #2 (permalink)  
Old 07-07-2008, 10:58 AM
Bob Phillips
 
Posts: n/a
Re: Date formatting

=(NETWORKDAYS(H12,N12)-(WEEKDAY(H12,2)<=5)-(WEEKDAY(N12,2)<=5))*10+
((("18:00"-MIN("18:00",MOD(H12,1)))*(WEEKDAY(H12,2)<=5))+
((MAX("8:00",MOD(N12,1))-"8:00")*(WEEKDAY(N12,2)<=5)))*24

--
__________________________________
HTH

Bob

"Niall 84" <niall_heavey@yahoo.com> wrote in message
news:e6238745-2c52-48b4-95bf-87d690707001@25g2000hsx.googlegroups.com...
> Hope someone can help me with this.
>
> I have two colums's of date and time
>
> i.e. Cell H12 has "05/02/2008 11:03"
> and Cell N12 has "07/03/2008 11:35"
>
> H13:H60 and N13:N60 has more times
>
> I need to find the difference between these two times in hours and
> have it in Cell O12
>
> The problem i'm having is as follows, I need it to be hours in working
> days, i.e Monday - Friday 8AM - 6PM.
>
> Is this possible?
>
> Looking forward to any help possible,
>
> thanks,
>
> Niall.
>



Reply With Quote
  #3 (permalink)  
Old 07-07-2008, 02:14 PM
Niall 84
 
Posts: n/a
Re: Date formatting

Hi Bob,

Thanks very much for the formula,

It does not seem to be working though,

Should the cells be formatted in any particular way?

Thanks,

Niall
Reply With Quote
  #4 (permalink)  
Old 07-07-2008, 04:35 PM
Rick Rothstein \(MVP - VB\)
 
Posts: n/a
Re: Date formatting

You need to be using the Analysis Toolpak (the NETWORKDAYS function call
requires it). Click Tools/Add-Ins on Excels menu bar and put a check mark
next to the Analysis Toolpak entry.

For future reference, you should always say what "isn't working" instead of
just saying it "doesn't work" so we have some idea about what is going on at
your end.

Rick


"Niall 84" <niall_heavey@yahoo.com> wrote in message
news:449041e7-317f-493f-92ce-76a6b0d08e81@d1g2000hsg.googlegroups.com...
> Hi Bob,
>
> Thanks very much for the formula,
>
> It does not seem to be working though,
>
> Should the cells be formatted in any particular way?
>
> Thanks,
>
> Niall


Reply With Quote
  #5 (permalink)  
Old 07-07-2008, 05:05 PM
Niall 84
 
Posts: n/a
Re: Date formatting

Thanks for both the help and the tip.

Much appreciated, and its working perfect now.

Niall.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT. The time now is 03:22 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Ringtones | Myspace Proxy Directory | Credit Card | Loans | Buy Shares



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114