Solved

Excel Sumif(s) using networkdays?

Posted on 2014-10-07
2
345 Views
Last Modified: 2014-10-07
Hi,

I have the following two formulas that are inserted into cells. on sheet2. The first sums the values in column K of every row where column F is a date that is 10 days prior to today. The second sums the values in column K of every row in column F where the date is between 11 and 20 days prior to today. Unfortunately, instead of "calendar" days prior to today, I actually need "networkdays" prior to today. How would I modify these formulas to get that result?

   Range("M20").Formula = "=SUMIF('Sheet1'!F:F,""=""&TODAY()-10,'Sheet1'!K:K)"
   Range("M21").Formula = "=SUMIFS('Sheet1'!K:K,'Sheet1'!F:F,""<""&TODAY()-10,'Sheet1'!F:F,"">""&TODAY()-20)"

Thanks,

swjtx99
0
Comment
Question by:swjtx99
2 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 40365851
Do you mean:
Range("M20").Formula = "=SUMIF('Sheet1'!F:F,""=""&WORKDAY(TODAY(),-10),'Sheet1'!K:K)"
   Range("M21").Formula = "=SUMIFS('Sheet1'!K:K,'Sheet1'!F:F,""<""&WORKDAY(TODAY(),-10),'Sheet1'!F:F,"">""&WORKDAY(TODAY(),-20))"

Open in new window

0
 

Author Closing Comment

by:swjtx99
ID: 40366170
Perfect.

Thanks for your help.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question