How to Get the Last 7 Business Days in Google Sheets Automatically

Published on

If you’re building reports or dashboards in Google Sheets, you may often need to focus only on the most recent business days, excluding weekends. This is especially useful when you’re tracking performance, generating summaries, or analyzing trends over active business days.

With an array formula, you can dynamically calculate and display the last 7 business days based on today’s date—no manual updates needed.

Use Cases for the Last 7 Working Days:

  • Filtering tables to show only recent workday activity
  • Tracking daily sales or expenses over the most recent business week
  • Generating team productivity or task completion reports
  • Creating rolling dashboards for KPIs that exclude weekends
  • Preparing automated client or internal reports without weekend data

Formula to Find the Last 7 Business Days in a Column

Sample Data:

Example showing the last 7 working days (highlighted).

Example to Finding the Last 7 Working Days (Highlighted)

As per the screenshot example, the current day is 28/09/2022. That’s the value Google Sheets returns if you use =TODAY() in any cell.

The cells highlighted in amber represent the last 7 business days.

In cell F2, enter the following formula and drag it down as needed:

=AND(WORKDAY(C2 - 1, 1) = C2, ISBETWEEN(C2, WORKDAY(TODAY(), -7), TODAY() - 1))
Finding the Last Seven Business Days (Formula Logic)

Finding the Last Seven Business Days (Formula Logic)

Let’s break down the logic:

You want to test whether each date in column C:

  1. Falls within the range of the last 7 business days (excluding today)
  2. Is itself a valid business day

Condition 1:

=WORKDAY(C2 - 1, 1) = C2

This checks whether the date in C2 is a valid business day.

Condition 2:

=ISBETWEEN(C2, WORKDAY(TODAY(), -7), TODAY() - 1)

This checks whether the date falls within the last 7 business days before today.

Combine both conditions using:

=AND(condition_1, condition_2)

Array Formula to Get the Last 7 Business Days in Google Sheets

If you prefer a formula that spills down automatically and marks the last 7 business days, use this array formula:

=ArrayFormula((WORKDAY(C2:C - 1, 1) = C2:C) * ISBETWEEN(C2:C, WORKDAY(TODAY(), -7), TODAY() - 1))

Enter it in cell F2 after clearing any existing formulas in column F.

The logic is the same as above. Since AND() doesn’t work in arrays, we use the multiplication operator * to combine conditions.

Note: This formula returns TRUE (1) or FALSE (0) for each row. TRUE (1) marks the last 7 business days.

Number the Last 7 Business Days from Today (1 to 7)

If you’d rather return numbers 1 to 7 (starting from today and counting backward), use this formula:

=ArrayFormula(IFNA(XMATCH(C2:C, ArrayFormula(WORKDAY(TODAY(), SEQUENCE(7, 1, -1, -1))))))

This generates the last 7 business days and matches each date in column C to its corresponding rank.

How to Exclude Specific Weekends and Holidays

By default, the above formulas treat Saturday and Sunday as weekends. If you need custom weekends (e.g., only Sunday), use the WORKDAY.INTL function:

WORKDAY.INTL(start_date, num_days, [weekend], [holidays])

Refer to the Google Sheets documentation for weekend number options.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Google Sheets: Get the Last Row with Any Data Across Multiple Columns

It’s common to have several empty rows at the bottom of a Google Sheet,...

How to Calculate Digital Root in Google Sheets

The digital root is the single-digit value you get by repeatedly summing the digits...

How to Build an Advanced Book Tracker in Google Sheets: Formulas Explained

If you're tired of forgetting what you've read, which books you rated 5 stars,...

Google Sheets Reading List Tracker Template (Free Download)

Looking for a smarter, more visual way to manage your reading goals? This Google...

More like this

Google Sheets: Get the Last Row with Any Data Across Multiple Columns

It’s common to have several empty rows at the bottom of a Google Sheet,...

How to Calculate Digital Root in Google Sheets

The digital root is the single-digit value you get by repeatedly summing the digits...

How to Build an Advanced Book Tracker in Google Sheets: Formulas Explained

If you're tired of forgetting what you've read, which books you rated 5 stars,...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.