Home
Challenges
Calculate Pro-Rated Costs
Analysis
Intermediate

Calculate Pro-Rated Costs

An Excel billing sheet needs partial charges, and you need to calculate how much of a monthly cost applies to each service period.

AuthorExcelClash Team
PublishedApr 02, 2026
Calculate Pro-Rated Costs

The Problem

In this guide, we will explore exactly how to calculate pro-rated costs in Excel. This comes up when a customer uses a service for only part of the month and should not be billed for the full monthly amount.

The hard part is consistency. If you count the used days manually, it is easy to overcharge or undercharge, especially when start and end dates vary from row to row.

In this challenge, each service has a monthly fee plus a start and end date. You need to calculate the prorated bill for each row based on a 30-day month, then finish the summary section with the customer count and the total amount to collect.

How We Solve It

The basic pattern is to divide the monthly fee by 30 to get a daily rate, then multiply that rate by the number of used days.

The challenge treats the start and end dates as inclusive, which is why the formula adds 1 day after subtracting the dates. That small detail matters because it changes the billed amount.

Method 1: Daily Rate Times Days Used

Daily Rate Illustration
Method 1: Turn the monthly fee into a daily rate and multiply it by days used.

This is the clearest version of the prorating formula. First calculate the daily rate, then multiply it by the inclusive day count.

It works well when the month length is fixed by business rule, like the 30-day assumption used in this challenge.

=(B2/30)*(D2-C2+1)

Method 2: Use DATEDIF for the Day Count

DATEDIF Prorate Illustration
Method 2: Use DATEDIF when you want Excel to return the day count explicitly.

DATEDIF can return the difference between the start and end date in days. Since the challenge counts both endpoints, you still add 1 after the function result.

This is useful when you want the day-count step to be easy to recognize inside the formula.

=(B2/30)*(DATEDIF(C2,D2,"d")+1)

Method 3: Workday Billing Variant

NetWorkDays Business Illustration
Method 3: Use NETWORKDAYS only when the billing model is based on workdays instead of calendar days.

Some billing models count only working days. In that case, NETWORKDAYS can replace simple subtraction.

That is not the billing rule used in this challenge, but it is a helpful contrast because it shows how the same setup can support a different business rule.

=(B2/20)*NETWORKDAYS(C2,D2)

Function Explanation

1. Date Subtraction

Subtracting one date from another returns the number of days between them. In this challenge, it is part of the core billing formula.

The important detail is the +1 because the billing period includes both the start date and the end date.

2. DATEDIF

DATEDIF returns a date difference in a chosen unit. Here, the useful unit is days.

It is another valid way to calculate the used period before applying the daily rate.

Learn more this functionDATEDIF

3. SUM and COUNTA

SUM totals the billed amounts, and COUNTA counts how many service rows were processed.

Those two summary functions turn the row calculations into a quick billing overview.

Learn more this functionSUM

In a real billing model, month length might not always be fixed at 30. This challenge keeps it simple, but that assumption is something you would always confirm in a live workbook.

Try Yourself

Calculate the prorated bill for each subscription based on how many days it was active during the month. Use the 30-day rule shown in the sheet, then complete the billing summary so the worksheet shows how many customers were processed and the full amount that should be collected.

1
Objective #1
Cell: E2-E5

In Column E, calculate the Prorated Bill. Formula: (Monthly Fee / 30) * (Days Used). Days Used is (End Date - Start Date + 1). Ensure results are rounded or clean.

2
Objective #2
Cell: B9

In cell B9, count the total number of customers in your list.

3
Objective #3
Cell: B10

In cell B10, identify the absolute SUM of all prorated bills in your database roster.

Tactical Arena
Objectives Met: 0 / 0
Share this challenge
Share this challenge

Let others know about this challenge!

Related Challenges
Cleanup
#38
Identify Duplicate Transactions

An Excel transaction log may contain repeated IDs, and you need to flag possible duplicates before review.

Easy
Analysis
#39
Calculate Running Totals

An Excel transaction list needs a running balance, and you need to keep a cumulative total that updates row by row.

Intermediate
Analysis
#40
Flag High-Value Customers

An Excel sales sheet tracks customer orders, and you need to total each customer spend before labeling high-value accounts.

Intermediate
Cleanup
#1
Remove Duplicate Names

An Excel name list has duplicate entries, and you need to separate first appearances from repeated names before reviewing the data.

Easy
Discussion
0 Feedbacks
ExcelClash

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster—without boring lessons. Just hands-on practice that actually sticks.

Navigation
Back to Challenges
Go to Dashboard
Platform Home
Discover
SUM FunctionsLookup FunctionsConditional FunctionsLogical Functions
Support
About UsContact UsPrivacy PolicyTerms of Service
© 2026 ExcelClash, Inc. All rights reserved.
Objectives Met: 0 / 0