How to Exclude Previous Promotion Dates from Average Sales Formulas in Excel
Question details
The user needs to calculate the average sales for a four-week period prior to a promotion but must exclude dates from an earlier promotion to avoid skewing the data.

- Product
- Excel 2016
- Device & OS
- not provided
- Scenario
- Calculating a 28-day pre-promotion baseline average while actively filtering out specific dates that fall within a previous sales event.
- Observed behavior
- The standard SUMIFS formula is inadvertently capturing sales data from the earlier promotion period, resulting in an artificially inflated or inaccurate average.
Ensure your sales data and dates are formatted correctly as standard numerical values and dates, so the formula can properly process the mathematical logic.
Use AVERAGEIFS to Exclude Specific Dates
The most efficient way to calculate an average while skipping certain dates is using the AVERAGEIFS function combined with the not-equal (<>) operator.
AVERAGEIFS calculates the average of all cells that meet multiple criteria. By setting a 28-day window and explicitly excluding past promotion dates, you can quickly achieve an accurate baseline.
Click on the cell where you want the calculated average sales to appear.
Type the formula: =AVERAGEIFS(sales_range, date_range, ">="&start_date-28, date_range, "<"&start_date, date_range, "<>"&exclude_date1). Replace the placeholder names with your actual cell references.
If you have multiple days to exclude, simply append them to the end of the formula like so: , date_range, "<>"&exclude_date2.
Press Enter to execute the formula. The result will now display the average over your specific period while entirely ignoring the specified past promotion dates.

Use SUMIFS and Divide by Adjusted Days
If you prefer calculating the total sum first and manually handling the division, you can use SUMIFS and divide by the exact number of valid days.
Calculate Complex Formulas with WPS Spreadsheet
WPS Office Spreadsheet provides full support for advanced data analysis functions like AVERAGEIFS and SUMIFS. You can effortlessly handle complex date exclusions and calculate accurate sales metrics without compatibility issues.
- 1. Open your data: Launch WPS Spreadsheet and open your existing sales data workbook.
- 2. Insert the function: Navigate to the 'Formulas' tab and click on 'Insert Function'.
- 3. Select AVERAGEIFS: Search for 'AVERAGEIFS' in the function dialog box and specify your sales range and date arrays.
- 4. Apply exclusion criteria: Define your pre-promotion window using the '>=' and '<' operators, and use '<>' to filter out previous promotion dates.
- 5. Complete the calculation: Click OK to apply the formula and instantly view your accurate average sales data.

Frequently Asked Questions
How do I exclude multiple individual dates in my average formula?
You can chain additional criteria directly inside the AVERAGEIFS function. Simply add another criteria range and criteria pair to the end of your formula, such as: date_range, "<>"&exclude_date2.
Why does my AVERAGEIFS formula return a #DIV/0! error?
The #DIV/0! error occurs when no cells meet all the specified criteria in your formula. Double-check your date ranges and ensure that your start date and excluded dates haven't accidentally eliminated all the data points in the selected period.
Can I use cell references instead of hardcoding dates in the formula?
Yes, using cell references is the recommended approach. Instead of hardcoding a date string like "<>2023-01-01", you can write "<>"&A1, where cell A1 contains the specific date you want to exclude.




