ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   simple date and time functions (https://www.excelbanter.com/excel-discussion-misc-queries/59041-simple-date-time-functions.html)

marquis de montrose

simple date and time functions
 
Hello. I am trying to compare the difference between two dates and times
based on a 24 hour structure, including the NETWORKDAYS function. We work on
a 48 hour turn around. Document comes in at 10:00 on 12-06-2005 and out 12:00
12-08-2005 then "no" else "yes". Specific formatting for dates and times seem
to be an issue in NETWORKDAYS where I get the correct date calculation, but
when I enter in the holidays, it returns a VALUE#. I have used mm-dd-yyyy.
Thanks in advance for your help.

Bob Phillips

simple date and time functions
 
How about

=IF(networkdays(A20,A21)-(MOD(A20,1)-MOD(A21,1))=2,"yes","no")

where A20 is the start date/time, A21 the end.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"marquis de montrose" <marquis de wrote
in message ...
Hello. I am trying to compare the difference between two dates and times
based on a 24 hour structure, including the NETWORKDAYS function. We work

on
a 48 hour turn around. Document comes in at 10:00 on 12-06-2005 and out

12:00
12-08-2005 then "no" else "yes". Specific formatting for dates and times

seem
to be an issue in NETWORKDAYS where I get the correct date calculation,

but
when I enter in the holidays, it returns a VALUE#. I have used mm-dd-yyyy.
Thanks in advance for your help.




Bob Phillips

simple date and time functions
 
Forgot the holidays bit, just add that to the NETWORKDAYS

=IF(networkdays(A20,A21,holidays)-(MOD(A20,1)-MOD(A21,1))=2,"yes","no")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"marquis de montrose" <marquis de wrote
in message ...
Hello. I am trying to compare the difference between two dates and times
based on a 24 hour structure, including the NETWORKDAYS function. We work

on
a 48 hour turn around. Document comes in at 10:00 on 12-06-2005 and out

12:00
12-08-2005 then "no" else "yes". Specific formatting for dates and times

seem
to be an issue in NETWORKDAYS where I get the correct date calculation,

but
when I enter in the holidays, it returns a VALUE#. I have used mm-dd-yyyy.
Thanks in advance for your help.





All times are GMT +1. The time now is 06:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com