Start with a filter to determine which dates you have, put those dates then try a sumif() statement, based on the dates you need