Formula Generator | Excel

Count Active Clients with Subscriptions in Excel

This guide explains how to use an Excel formula to count clients with active subscriptions for a specified month, utilizing COUNTIFS and EOMONTH functions to filter date ranges effectively.


Empty image or helper icon

Prompt

calculates the number of clients that had an active subscription in a certain month

Answer

Excel Formula for Counting Clients with Active Subscriptions

Problem Statement

The task is to calculate the number of clients that had an active subscription during a specified month. This requires understanding how to filter data based on subscription periods.

Assumptions

  1. You have a dataset with client subscriptions including at least the following columns:

    • Client ID (Unique identifier for clients)
    • Start Date (Date the subscription begins)
    • End Date (Date the subscription ends)
  2. The date for which you want to calculate the active subscriptions is specified in a cell (e.g., G1).

Excel Formula

To count the number of clients with active subscriptions for a given month, use the following formula:

=COUNTIFS(Start_Date_Range, "<=" & EOMONTH(G1, 0), End_Date_Range, ">=" & EOMONTH(G1, -1) + 1)

Explanation of Formula Components

  • COUNTIFS function: This counts the number of rows that meet specific criteria across multiple ranges.
  • Start_Date_Range: Range containing subscription start dates (e.g., A2:A100).
  • End_Date_Range: Range containing subscription end dates (e.g., B2:B100).
  • EOMONTH(G1, 0): Returns the last day of the month for the date specified in G1.
  • "<=" & EOMONTH(G1, 0): Criteria that checks if the subscription start date is on or before the last day of the specified month.
  • ">=" & EOMONTH(G1, -1) + 1: Criteria checks if the subscription end date is on or after the first day of the specified month.

Practical Example

Dataset

Client ID Start Date End Date
1 2023-01-15 2023-04-15
2 2023-02-01 2023-03-01
3 2023-02-15 2023-06-15
4 2023-03-20 2023-05-20
5 2023-03-10 2023-03-31

Specified Month

Assume you want to calculate for March 2023 and G1 contains the date 2023-03-01.

Application of Formula

  1. Assume your data is in cells A2:C6.
  2. Your formula would look like this:
=COUNTIFS(A2:A6, "<=" & EOMONTH(G1, 0), B2:B6, ">=" & EOMONTH(G1, -1) + 1)

Result

Using the formula provided, the count of clients with active subscriptions in March 2023 would result in 4, as clients 1, 3, 4, and 5 have subscriptions active during that month.

Conclusion

This approach effectively calculates the number of clients with active subscriptions for a given month by leveraging the COUNTIFS function combined with EOMONTH for date filtering. For further learning on such advanced techniques, consider courses available on the Enterprise DNA Platform.

Create your Thread using our flexible tools, share it with friends and colleagues.

Your current query will become the main foundation for the thread, which you can expand with other tools presented on our platform. We will help you choose tools so that your thread is structured and logically built.

Description

This guide explains how to use an Excel formula to count clients with active subscriptions for a specified month, utilizing COUNTIFS and EOMONTH functions to filter date ranges effectively.