Excel Formula for Summing Website Traffic Excluding Weekends

📅 Aug 28, 2026 📝 Sarah Miller

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.

Excel Formula for Summing Website Traffic Excluding Weekends

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.

Understanding the Data Structure

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:

  • Column A (Date): Contains the daily dates (e.g., A2:A31 for January).
  • Column B (Traffic/Sessions): Contains the corresponding traffic counts or sessions (e.g., 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

Method 1: The Helper Column & SUMIF (Best for Beginners)

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.

Step 1: Identify Weekdays with the WEEKDAY Function

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:

  • 1 = Monday
  • 2 = Tuesday
  • 3 = Wednesday
  • 4 = Thursday
  • 5 = Friday
  • 6 = Saturday
  • 7 = Sunday

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)

Step 2: Sum the Weekday Traffic using SUMIF

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).


Method 2: The SUMPRODUCT Formula (No Helper Column Required)

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)

How This Formula Works Under the Hood:

  1. WEEKDAY Array Evaluation: 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; ...}.
  2. Logical Condition: The expression < 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; ...}.
  3. Boolean to Numeric Conversion: When we multiply this array of TRUE/FALSE values by the traffic data in Column B (using the * operator), Excel automatically converts TRUE to 1 and FALSE to 0.
  4. Array Multiplication: The array becomes {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.
  5. Summation: Finally, SUMPRODUCT sums the resulting array to yield the total weekday-only website traffic.

Method 3: The Modern Office 365 Dynamic Array Method (FILTER)

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))

Why This Method is Excellent:

  • Readability: The formula reads almost like plain English: "Filter the traffic values where the weekday of the dates is less than 6, then sum them."
  • Error Reduction: It avoids the complex mathematical array multiplication used in SUMPRODUCT, making it easier for other team members to understand and maintain.
  • Auditability: If you want to see the actual filtered list of weekday traffic before summing it, you can simply remove the SUM() wrapper and let the FILTER() function spill the weekday values down a column.

Handling Custom Weekends (International Contexts)

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:

  • Friday/Saturday Weekend: Use return type 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.


Pro-Tip: Filtering Out Holidays

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.

Conclusion

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:

  • Use Method 1 (Helper Column) if you want your workbook logic to be transparent and easy for basic Excel users to follow.
  • Use Method 2 (SUMPRODUCT) if you are using an older version of Excel and want a neat, self-contained formula.
  • Use Method 3 (SUM + FILTER) if you are on Microsoft 365 and want the cleanest, most modern approach.

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.