ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count # days (https://www.excelbanter.com/excel-worksheet-functions/85131-count-days.html)

Annette

Count # days
 
Here's my formula, but it is resulting unexpected.

=IF((NETWORKDAYS(A68,D68))=1,1,"")

I want to eliminate 'same day'. So if the date is 1/1/06 in A68 and 1/1/06
in D68, I don't want a number but rather a blank. My formula indicates 1
when it sees same day.

The formula works correctly if cell A has 1/1/06 and cell d has 1/2/06 = 1

Thanks!



Peo Sjoblom

Count # days
 
If testing for same values why not use

=IF(A68=D68,"",your _formula

if you use the same dates and the dates are on a weekend date networkdays
will return zero
whereas it is on a weekday it will return 1





--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Annette" wrote in message
...
Here's my formula, but it is resulting unexpected.

=IF((NETWORKDAYS(A68,D68))=1,1,"")

I want to eliminate 'same day'. So if the date is 1/1/06 in A68 and
1/1/06 in D68, I don't want a number but rather a blank. My formula
indicates 1 when it sees same day.

The formula works correctly if cell A has 1/1/06 and cell d has 1/2/06 = 1

Thanks!




Annette

Count # days
 
Now ... why didn't I think of that (must be an age thing for me!). Yes,
that works
"Peo Sjoblom" wrote in message
...
If testing for same values why not use

=IF(A68=D68,"",your _formula

if you use the same dates and the dates are on a weekend date networkdays
will return zero
whereas it is on a weekday it will return 1





--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Annette" wrote in message
...
Here's my formula, but it is resulting unexpected.

=IF((NETWORKDAYS(A68,D68))=1,1,"")

I want to eliminate 'same day'. So if the date is 1/1/06 in A68 and
1/1/06 in D68, I don't want a number but rather a blank. My formula
indicates 1 when it sees same day.

The formula works correctly if cell A has 1/1/06 and cell d has 1/2/06 =
1

Thanks!







All times are GMT +1. The time now is 07:20 PM.

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