I am trying to include a figure in a sum but I only want to count it if a date appears in another cell.