Written by Allen Wyatt (last updated May 11, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, 2021, and Excel in Microsoft 365
Chelsea's job is to track the historical start and end dates for projects within the company. So, she has two columns for each project that specify the start and end dates. Chelsea needs to generate a report that shows, for a target date range, the number of projects that were being worked on for each day within the target range.
Since all that Chelsea needs is a count of projects (and not additional project information), this can be easily accomplished by using a formula that relies on the COUNTIFS function. Let's assume that the project start dates are in column B and the end dates are in column C. In cells F2:F9 you have the dates you want to check. In cell G2 you can use the following formula:
=COUNTIFS(B:B,"<="&F2,C:C,">="&F2)
You can then copy the formula in G2 down as many rows as necessary. (See Figure 1.)
Figure 1. Counting projects on a particular date.
The formula used in G2 assumes that the start and end dates are inclusive. If they should not be inclusive, then just drop the equal signs from the formula:
=COUNTIFS(B:B,"<"&F2,C:C,">"&F2)
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13923) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, and Excel in Microsoft 365.
Best-Selling VBA Tutorial for Beginners Take your Excel knowledge to the next level. With a little background in VBA programming, you can go well beyond basic spreadsheets and functions. Use macros to reduce errors, save time, and integrate with other Microsoft applications. Fully updated for the latest version of Office 365. Check out Microsoft 365 Excel VBA Programming For Dummies today!
When working with data in Excel, you might want to figure out which rows of data represent duplicates of other rows. If ...
Discover MoreCreating math formulas is a particular strong point of Excel. Not all the functions that you may need are built directly ...
Discover MoreOne of the staples of high school algebra classes is the quadratic equation. If you need to solve such equations in ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments