Dates Help! Using SUMPRODUCT,MONTH<ROW< INDIRECT and network days

sgibbs183

New Member
Joined
Aug 5, 2020
Messages
28
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
I have a sheet below where I need to calculate how many days between the start and end date fall into that period. I have done this, so for example, 30 days falls into April from start date 28/03/2022 to end date 01/05/2022. But I want to know how many of these days are NETWORKDAYS so I can times this amount by the blended rate.

Is there anyone that can help please!

1674123140626.png
 

Attachments

  • 1674123018850.png
    1674123018850.png
    28 KB · Views: 5

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi,

Tried to make it as easy as possible. Try this and see if this helps:
Book1
DEFGH
2Startend1-3-20221-4-20221-5-2022
328-3-20221-5-20224210
428-3-20221-5-20223290
Sheet1
Cell Formulas
RangeFormula
F3:H3F3=NETWORKDAYS(MAX($D3,F$2),MIN($E3,EOMONTH(F$2,0)))
F4:H4F4=DATEDIF(MAX($D4,F$2),MIN($E4,EOMONTH(F$2,0)),"d")


Just be aware: the NETWORKDAYS function calculates somewhat different so perhaps for your purpose you need to add a day extra to the equasion.
 
Upvote 0
What exactly do you have in G3, H3 etc? Is it 1st of the month, end of the month or something else.
 
Upvote 0
What exactly do you have in G3, H3 etc? Is it 1st of the month, end of the month or something else.
It was just the month in text,

But what I actually need is how many network days between the start and end date, fall into that period. I have added the period start and end dates to the table to see if that helps but I still can't get it to work.

1674149585519.png
 
Upvote 0
Hi,

Tried to make it as easy as possible. Try this and see if this helps:
Book1
DEFGH
2Startend1-3-20221-4-20221-5-2022
328-3-20221-5-20224210
428-3-20221-5-20223290
Sheet1
Cell Formulas
RangeFormula
F3:H3F3=NETWORKDAYS(MAX($D3,F$2),MIN($E3,EOMONTH(F$2,0)))
F4:H4F4=DATEDIF(MAX($D4,F$2),MIN($E4,EOMONTH(F$2,0)),"d")


Just be aware: the NETWORKDAYS function calculates somewhat different so perhaps for your purpose you need to add a day extra to the equasion.
Sorry I have added the start date and end date of the period end dates.

What I need to know is how many network days from start date and end date fall into the period end dates...
1674149648375.png
 
Upvote 0
Thanks for that, how about
Excel Formula:
=NETWORKDAYS(MAX($D6,G$3),MIN($E6,G$4,0))
 
Upvote 0
Thanks for that, how about
Excel Formula:
=NETWORKDAYS(MAX($D6,G$3),MIN($E6,G$4,0))
That returns an odd number:
1674151366388.png



But I did change this to median and it works sort off, but as you can see in the later months it is calculating the days from the start date

1674151479073.png
 
Upvote 0
A stray 0 crept into the formula it should be
Excel Formula:
=NETWORKDAYS(MAX($D6,G$3),MIN($E6,G$4))
 
Upvote 0
A stray 0 crept into the formula it should be
Excel Formula:
=NETWORKDAYS(MAX($D6,G$3),MIN($E6,G$4))
Thanks Fluff, that doesn't work either. If you see below, the start date is 28/03/22 end date 10/05/2022, the network days in May should be from 2nd may to 10th May but it is returning 20
1674152825782.png
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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