Analyzing B2B website traffic can be frustrating when quiet weekend dips skew your weekday performance metrics. While standard funding sources like marketing budgets support these traffic-generation efforts, measuring their true ROI requires isolating business-day data. Utilizing a targeted Excel formula grants analysts complete control over weekly volatility, delivering clean, actionable reports.
However, one key stipulation is ensuring your date column is formatted correctly as serial numbers, not text. For example, combining SUMPRODUCT with WEEKDAY(dates, 2) < 6 seamlessly filters out weekends. Below, we break down the exact formula configuration and step-by-step deployment.
For digital marketers, data analysts, and business owners, website traffic is one of the most critical key performance indicators (KPIs). However, aggregate traffic data can sometimes tell a misleading story. For B2B (business-to-business) companies, traffic often plummets on Saturdays and Sundays because their target audience is not working. Conversely, some B2C (business-to-consumer) sites might experience massive spikes on weekends.
To accurately evaluate your core marketing efforts, run weekday-specific campaigns, or forecast business-hour demand, you often need to isolate your weekday data. Summing website traffic while excluding weekends in Microsoft Excel is a common task, and thankfully, there are several ways to accomplish it depending on your version of Excel and your comfort level with formulas.
In this comprehensive guide, we will explore three distinct methods to sum website traffic while excluding weekends: the beginner-friendly Helper Column method, the classic SUMPRODUCT array method, and the modern Office 365 FILTER method. We will also cover how to handle custom weekend definitions for international businesses.
Before writing our formulas, let us establish a standard data layout. Assume you have exported a monthly traffic report from Google Analytics, Adobe Analytics, or your database into an Excel sheet. Your data is structured as follows:
A2:A31 for January).B2:B31).| Row | A (Date) | B (Traffic) |
|---|---|---|
| 2 | 2023-10-23 (Monday) | 1,200 |
| 3 | 2023-10-24 (Tuesday) | 1,150 |
| ... | ... | ... |
| 7 | 2023-10-28 (Saturday) | 300 |
| 8 | 2023-10-29 (Sunday) | 250 |
If you prefer to keep your spreadsheets highly transparent and easy to audit for others, the helper column approach is your best option. It breaks the logic down into two simple steps: identifying the day of the week, and then summing only the weekdays.
Excel has a built-in function called WEEKDAY that converts a date into a number representing the day of the week. The syntax is:
=WEEKDAY(serial_number, [return_type])
For our purposes, we will use 2 as the return_type. This return type maps the days as follows:
In column C, adjacent to your first row of data (cell C2), enter the following formula and drag it down to the bottom of your dataset:
=WEEKDAY(A2, 2)
Because Saturday and Sunday are represented by the numbers 6 and 7, any number less than 6 (1 through 5) represents a weekday. We can now use Excel's SUMIF function to sum only the values in Column B where the corresponding value in Column C is less than 6.
In your summary cell, enter the following formula:
=SUMIF(C2:C31, "<6", B2:B31)
How it works: The formula scans the range C2:C31 for any values less than 6 (Monday through Friday) and sums the corresponding values in the range B2:B31. It completely ignores rows containing Saturdays (6) and Sundays (7).
If you prefer a clean spreadsheet without cluttering it with extra helper columns, you can combine these steps into a single, elegant formula using SUMPRODUCT. This function is highly versatile and handles array calculations natively without needing special keyboard shortcuts in older versions of Excel.
Enter the following formula in your designated summary cell:
=SUMPRODUCT((WEEKDAY(A2:A31, 2) < 6) * B2:B31)
WEEKDAY(A2:A31, 2) evaluates every date in the range A2:A31 and returns an array of numbers representing the days of the week, like so: {1; 2; 3; 4; 5; 6; 7; 1; 2; ...}.< 6 compares each value in that array. This returns an array of Boolean values (TRUE or FALSE): {TRUE; TRUE; TRUE; TRUE; TRUE; FALSE; FALSE; TRUE; ...}.* operator), Excel automatically converts TRUE to 1 and FALSE to 0.{1; 1; 1; 1; 1; 0; 0; 1; ...} * {1200; 1150; 1100; 1050; 1300; 300; 250; 1250; ...}. This effectively zeroes out the traffic figures for Saturdays and Sundays, leaving only the weekday traffic intact.SUMPRODUCT sums the resulting array to yield the total weekday-only website traffic.For users of modern Excel (Excel 365, Excel 2021, or Excel for the Web), dynamic array formulas offer an incredibly intuitive way to solve this problem. We can use the FILTER function to isolate the weekday traffic data and then wrap it in a standard SUM function.
Enter the following formula in your summary cell:
=SUM(FILTER(B2:B31, WEEKDAY(A2:A31, 2) < 6))
SUMPRODUCT, making it easier for other team members to understand and maintain.SUM() wrapper and let the FILTER() function spill the weekday values down a column.In some parts of the world, the weekend does not fall on Saturday and Sunday. For instance, in many Middle Eastern countries, the weekend is observed on Friday and Saturday. How do we adjust our formula for this?
The beauty of the WEEKDAY function lies in its [return_type] argument. By changing this number, you can define which day starts the week. Here are a couple of useful variations:
11 (where Monday is 1, Friday is 5, Saturday is 6, Sunday is 7). To exclude Friday and Saturday, you can use return types that group your weekend at the end. Alternatively, use the NETWORKDAYS.INTL logic or manually specify the weekend days in your evaluation.If you want absolute control over which days are counted as weekends without relying on complicated return types, you can use an array constant inside the SUMPRODUCT function to explicitly list the weekday numbers you want to include. For example, if you want to include Monday (1), Tuesday (2), Wednesday (3), Thursday (4), and Sunday (7), but exclude Friday and Saturday:
=SUMPRODUCT(ISNUMBER(MATCH(WEEKDAY(A2:A31, 2), {1,2,3,4,7}, 0)) * B2:B31)
This checks if the weekday of each date is present in our array constant {1,2,3,4,7} and sums the traffic accordingly.
While excluding weekends is a massive step forward in cleaning up your B2B website traffic data, holidays (like Christmas, New Year's Day, or Thanksgiving) can still warp your weekday traffic analysis by introducing random "low-traffic" weekdays. To exclude both weekends and a custom list of holidays, you can utilize the NETWORKDAYS logic as a filter condition, or keep a separate "Holidays" table and use COUNTIF to exclude those dates from your sum.
Isolating weekday website traffic allows you to run cleaner historical analyses, make more accurate seasonal forecasts, and accurately measure B2B engagement without the distorting effect of quiet weekends. Depending on your Excel version and layout preferences:
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.