ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Eliminating weekends when subtracting dates (https://www.excelbanter.com/excel-discussion-misc-queries/195189-eliminating-weekends-when-subtracting-dates.html)

mdub

Eliminating weekends when subtracting dates
 
Hi,

I have a date in cell E18, and a number in cell E16. I need to subtract cell
E16 from E18, and eliminate the weekends. I want the result to be a date. I
am trying the NETWORKDAYS function, but cant get it to work. It only gives
me the number of days between 2 dates. Does it only give numerical results?
Thanks,

Michael

Rick Rothstein \(MVP - VB\)[_940_]

Eliminating weekends when subtracting dates
 
You want the WORKDAY function which, like NETWORKDAYS, requires the Analysis
ToolPak (unless you are using XL2007 in which case it is a built-in
function).

Rick


"mdub" wrote in message
...
Hi,

I have a date in cell E18, and a number in cell E16. I need to subtract
cell
E16 from E18, and eliminate the weekends. I want the result to be a date.
I
am trying the NETWORKDAYS function, but cant get it to work. It only
gives
me the number of days between 2 dates. Does it only give numerical
results?
Thanks,

Michael




All times are GMT +1. The time now is 09:02 AM.

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