Solved

Excel Sumif(s) using networkdays?

Posted on 2014-10-07
2
335 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

832 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