Isolating core performance metrics is a constant struggle for digital analysts when quiet weekend periods skew overall traffic averages. While standard analytics platforms and basic AVERAGE functions provide a broad overview, they often dilute actionable business-day insights. Filtering for weekdays grants stakeholders direct visibility into high-value B2B engagement. As an educational stipulation, this approach requires your date columns to be formatted as standard serial numbers rather than text. Utilizing concrete criteria within the AVERAGEIFS and WEEKDAY functions solves this elegantly. Below, we detail the precise formula structure to isolate your weekday traffic.
When analyzing website traffic, looking at a simple monthly or weekly average can often paint an inaccurate picture of your site's real performance. For many businesses-especially B2B (Business-to-Business) companies-website traffic experiences a massive dip over the weekend. If you average these quiet Saturday and Sunday figures with your busy Monday-to-Friday traffic, your "average daily traffic" metric will look artificially deflated.
To get a true representation of how your website performs during operational business hours, you need to isolate your weekday traffic. In this guide, we will walk through several Excel formulas and techniques to calculate the average website traffic for weekdays only, ranging from simple helper-column methods to advanced, single-cell dynamic array formulas.
To filter out weekends, Excel needs a way to identify which days of the week your traffic data corresponds to. The tool for this job is the WEEKDAY function.
The syntax for the WEEKDAY function is:
=WEEKDAY(serial_number, [return_type])
When you set the return type to 2, Excel maps the days of the week as follows:
By mapping the week this way, we establish a clean mathematical rule: Any day with a weekday number less than 6 (i.e., 1 through 5) is a weekday. Any day with a value of 6 or 7 is a weekend. This simple logic forms the backbone of all our averaging formulas.
If you are using an older version of Excel (Excel 2019 or earlier) or prefer a step-by-step visual workflow that is easy to audit, the helper column method is your best option.
Imagine you have a simple table with dates in Column A (A2:A31) and Daily Pageviews/Sessions in Column B (B2:B31).
In column C, label the header as "Day Type" or "Weekday Number". In cell C2, enter the following formula:
=WEEKDAY(A2, 2)
Drag this formula down to match your traffic data in Column B. You will see numbers from 1 to 7 populate next to your traffic data.
Now, select an empty cell where you want to display your average weekday traffic and use the AVERAGEIF function. The syntax will look like this:
=AVERAGEIF(C2:C31, "<6", B2:B31)
How this works: Excel checks the range C2:C31. If the value in that range is less than 6 (representing Monday through Friday), it takes the corresponding traffic value from Column B and includes it in the average calculation.
If you are using a modern version of Excel, you can skip helper columns entirely. By combining the AVERAGE and FILTER functions, you can calculate your weekday average in a single cell with a dynamic formula.
Assuming your dates are in A2:A31 and your website traffic values are in B2:B31, enter the following formula:
=AVERAGE(FILTER(B2:B31, WEEKDAY(A2:A31, 2) < 6))
WEEKDAY(A2:A31, 2): This evaluates every date in your date range and returns an array of numbers (1 through 7) representing the days of the week.WEEKDAY(A2:A31, 2) < 6: This acts as our logical condition. It generates an array of TRUE (for weekdays) and FALSE (for weekends) values.FILTER(B2:B31, ...): This filters the traffic data in Column B, keeping only the rows where our logical condition returned TRUE.AVERAGE(...): Finally, Excel takes the remaining filtered weekday traffic figures and calculates their average.This method is highly dynamic. If you append more data to your table, the formula automatically updates without requiring you to drag down helper columns.
If you are working on an older version of Excel but still want to avoid using a helper column, you can use a classic array formula combining AVERAGE and IF.
In your target cell, enter the following formula:
=AVERAGE(IF(WEEKDAY(A2:A31, 2) < 6, B2:B31))
Important Step: If you are using Excel 2019 or earlier, do not just press Enter. You must press Ctrl + Shift + Enter simultaneously. When done correctly, Excel will wrap your formula in curly braces like this: {=AVERAGE(IF(WEEKDAY(A2:A31, 2)<6, B2:B31))}. If you are using Excel 365, you can simply press Enter.
How this works: The IF statement checks the weekday of every cell in your date range. If it's a weekday, it returns the website traffic; if it is not, it returns FALSE. The AVERAGE function then averages the numbers while completely ignoring the boolean FALSE values.
Data analysis is rarely completely clean. Here are a few common issues you might run into when calculating weekday traffic averages in Excel, and how to fix them:
If you have empty rows in your data range, the WEEKDAY function might treat them as day 0 (which Excel interprets as a Saturday in its internal calendar system). This can skew your results. To avoid this, you can add an extra criterion to check that the cell contains data.
Using the modern FILTER method, you can add a condition to ignore empty cells:
=AVERAGE(FILTER(B2:B31, (WEEKDAY(A2:A31, 2) < 6) * (B2:B31 <> "")))
Using the multiplication sign * acts as an "AND" operator in array calculations, ensuring Excel only averages rows that are weekdays AND have non-empty traffic values.
While weekends are the primary disruptor of business traffic patterns, major public holidays (like Christmas, New Year's Day, or Thanksgiving) can also experience weekend-level drops in website traffic. If you want a pure representation of typical weekday business traffic, you may want to exclude these holidays too.
To do this, create a list of your holiday dates in a separate range-let's say E2:E10. You can then use the COUNTIF function inside your filter to exclude those dates:
=AVERAGE(FILTER(B2:B31, (WEEKDAY(A2:A31, 2) < 6) * (COUNTIF(E2:E10, A2:A31) = 0)))
This formula checks if the dates in Column A appear in your holiday list. If the count is 0, it means the date is not a holiday, so it gets included in your weekday average.
| Method | Formula | Excel Compatibility | Pros / Cons |
|---|---|---|---|
| Helper Column | =AVERAGEIF(C2:C31, "<6", B2:B31) |
All Versions | Easy to set up and debug, but adds visual clutter to your worksheet. |
| FILTER Function | =AVERAGE(FILTER(B2:B31, WEEKDAY(A2:A31, 2) < 6)) |
Excel 365 / 2021+ | Clean, single-cell, dynamic solution. Does not require helper rows. |
| Array Formula | =AVERAGE(IF(WEEKDAY(A2:A31, 2) < 6, B2:B31)) |
Excel 2019 and older | No helper column needed, but requires Ctrl+Shift+Enter in older versions. |
Segmenting your website traffic is crucial for making accurate, data-driven decisions. By isolating weekday traffic from weekend patterns, you get a much clearer picture of how your marketing campaigns, lead-generation efforts, and content strategies perform when your core audience is online and active.
Whether you choose the quick helper-column approach or the elegant FILTER method, mastering these formulas will elevate your Excel reporting and help you present highly accurate metrics to your team or clients.
Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.