Missing days with and without weekends

treeppm

Board Regular
Joined
Jun 3, 2015
Messages
60
Hi fellows
I would like to know the missing day between the range that exclude weekends(Saturday, Sunday)

in the following example from the date range A1 to A4 what is the formula we have to write in B2 and B4 to get result like this?

2019/06/05Missing Days with out week end
2019/06/073
2019/06/10Missing Days with week end
2019/06/135

<tbody>
</tbody>


Kind Regards
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
In this example how to get result in B5 like this (showing how many weekend days between the range)

2019/06/05
2019/06/07
2019/06/10
2019/06/13
weekend days2

<tbody>
</tbody>

Kind Regards

B2 formula = A2 -A1 - 1 - NetworkDays(A1 + 1, A2 - 1)

The other steps the same.
 
Upvote 0
I think you take this I'm only using this 4 Row and columns,, but I'm taking this 4 row and columns for example the reality is I've dates like

I've to calculate
2019/04/09
2019/04/10
2019/04/11
2019/04/12
2019/04/15
2019/04/16
2019/04/19
2019/04/22
2019/04/24
2019/04/25

<tbody>
</tbody>

and more

Thats why I want to know the formula..
 
Last edited:
Upvote 0
I think you take this I'm only using this 4 Row and columns,
I don't think that.
Copy the B2 formula down as far as required.
It seems to me you haven't tried what I've suggested.
If you do, it should be clear to you - if it's still not, I give up.
 
Upvote 0
B2

What do you mean : and there is no calculation A3,A4.... ?

Just perform the steps set out in post # 8

Bro,, Please check what you have given solution in Post 8
it's
"Assuming your data starts in A1 (which contains 2019/06/05)
• Enter in B2 =NETWORKDAYS(A1+1,A2-1)
• Copy B2 and paste to B3:B4
• Enter in B5 =SUM(B2:B4) "

we should not touch anything from B1 to B4 because it has other things.

we have to do the calculation only B5 and B6
B5 calculation should count the missing day values excluding weekend.
and B6 calculation should count the missing day values including weekend.

or now you can give me one simple solution how to calculate number of weekend days between two selected range

Kind Regards
 
Upvote 0
Bro,, Please check what you have given solution in Post 8
it's
"Assuming your data starts in A1 (which contains 2019/06/05)
• Enter in B2 =NETWORKDAYS(A1+1,A2-1)
• Copy B2 and paste to B3:B4
• Enter in B5 =SUM(B2:B4) "

we should not touch anything from B1 to B4 because it has other things.

we have to do the calculation only B5 and B6
B5 calculation should count the missing day values excluding weekend.
and B6 calculation should count the missing day values including weekend.

or now you can give me one simple solution how to calculate number of weekend days between two selected range

Kind Regards
Can't think of a single formula to do what you want. Perhaps someone else can.
My suggestions are based upon using helper column(s).

"we should not touch anything from B1 to B4 because it has other things."
I really need to improve my mind reading abilities.
 
Last edited:
Upvote 0
I think you take this I'm only using this 4 Row and columns,, but I'm taking this 4 row and columns for example the reality is I've dates like

I've to calculate
2019/04/09
2019/04/10
2019/04/11
2019/04/12
2019/04/15
2019/04/16
2019/04/19
2019/04/22
2019/04/24
2019/04/25

<tbody>
</tbody>

and more

Thats why I want to know the formula..

Given the above example, I work out that there are 4 weekend days in that range:

DateDayWeekend Days In Date Range
09/04/2019Tuesday
10/04/2019Wednesday
11/04/2019Thursday
12/04/2019Friday
15/04/2019Monday2
16/04/2019Tuesday
19/04/2019Friday
22/04/2019Monday2
24/04/2019Wednesday
25/04/2019Thursday

<tbody>
</tbody>

If this logic is correct, it can be achieved via formula as follows:

Code:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(MIN(A2:A11)&":"&MAX(A2:A11))),2)={6,7}))

Matty
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top