top of page

Excel Formula to Find Dates Omitted from Range

If you have dates listed in a column in Excel, and want to find the dates which are omitted in that column between the first date and the last date, you can use two formulas to find the results.


Begin by sorting dates listed in column A in date order.


Then enter this formula in column B:

=IF(ROWS($1:1)>MAX(A:A)-MIN(A:A)+1,"",IF(ISNUMBER(MATCH(MIN(A:A)+ROWS($1:1)-1,A:A,0)),"",MIN(A:A)+ROWS($1:1)-1))


Using CTRL + D pull down this formula until it gives blank results after it generates the last date omitted from the range in column A. This formula will generate all of the missing dates, and leave a blank cell where a date is present in column A.


ree


Then in column C, enter this formula:


=IF(ROWS($1:1)>COUNT(B:B),"",SMALL(B:B,ROWS($1:1)))


Pull this down to the end of the worksheet, and it will generate a list of just the omitted dates, without the blank cells listed in column B.



ree


Thanks to T. Valko for posting this solution here.

Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page