Excel 2010-2019 Excel 2007 Excel 2003 Tips & Tricks Excel Forum Course Index CIG Excel Book

 Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon More... What's New? Popular Links ------------ Access Courses Access Index Access TechHelp Access Forum ------------ Excel Courses Excel Index ------------ Code Vault Testimonials

 Tips & Tricks New Tips Added Weekly! Click here to get on our Mailing List

Count Records Between Two Dates

 Q: I have a bunch of dated invoices. I need to count how many orders were placed between two dates (say, September 1st and September 30th). How can I do this in Excel? A: You could use the IF function to put a 1 or 0 in the next column to determine whether or not to count this score. Here's what you can do: Create two cells in your sheet for a Begin Date and End Date. I'll put them in D1 and D2 respectively (use any you like). Now, if your date is in column A, then you could say in column B: =IF(AND(A1>=\$D\$1,A1<\$D\$2),1,0) In English, this says "if A1 is after my start date and before my end date, put a 1 in this cell, otherwise, put a 0 there." The dollar (\$) signs create an ABSOLUTE reference so when you AutoFill this formula down your row, it stays D1 and D2. Now, just SUM up that column, and you have a count of all of the dates that are between your start and end date.

By Richard Rost
Click here to sign up for more FREE tips

 You may want to read these articles from the 599CD News:
 2/22/2022 ISO Date Format 1/27/2022 Work Days 1/11/2022 Excel Fast Tips 1/7/2022 Count Cells by Color 1/7/2022 Excel VBA 1/7/2022 Excel Count by Color 12/26/2021 Conditional Formatting 12/9/2021 Excel 2003 Quick Start 1 12/9/2021 Excel 2003 Expert 232 12/9/2021 Excel 2003 Expert 231

 Learn  Access - index Excel - index Word - index Windows - index PowerPoint - index Photoshop - index Visual Basic - index ASP - index Seminars More... Customers  Login My Account My Courses Lost Password Memberships Student Databases Change Email Info  Latest News New Releases User Forums Topic Glossary Tips & Tricks Search The Site Code Vault Collapse Menus Help  Customer Support Web Site Tour FAQs TechHelp Consulting Services About  Background Testimonials Jobs Affiliate Program Richard Rost Free Lessons Mailing List Order  Video Tutorials Handbooks Memberships Learning Connection Idiot's Guide to Excel Volume Discounts Payment Info Shipping Terms of Sale Contact  Contact Info Support Policy Email Richard Mailing Address Phone Number Fax Number Course Survey