I'm trying to count the number of quotes completed by week. The challenge is there are two departments who may work on a quote and each enter their own completion date. Sometimes only one department works on a quote so only one of the two completion date columns is filled in. In a nutshell I want to only count "Type A" quotes that were completed within a specific weekending date range (ex. week that ended on 8/8/20) based upon the most recent completion date of department "A" or "B" for the quote. Keep in mind that either department "A" or "B's" completion date field may be blank if they didn't need to work on it.
I figured out how to count "Type A" quotes based on one department's completion date but counting both date ranges and selecting the most recent has me stumped. Below is the formula I've came up with so far:
=COUNTIFS({Pre-Sales Request Range 1}, ="NO DWG, EWR ONLY", {Pre-Sales Request Range 2}, AND(@cell >= ([Week Ending Date]21 - 6), @cell < ([Week Ending Date]21 + 1)))
Any help would be greatly appreciated, Thanks!