Formula Errors

Calculate Tiered Charges for Days in Excel

Khadija KhanKhadija Khan Dec 2, 2026 869 views

Question details

Calculate a total charge by applying different daily rates to successive ranges of days.

Calculate Tiered Charges for Days in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user needs to charge the first set of days at one rate, the next set at another rate, and any remaining days at a third rate.
Observed behavior
The desired result is a total that adds the charges from each applicable tier, such as 2,880 for 26 days under a suitable rate schedule.
Before you start

Identify the first day and daily rate for each tier, and enter the number of days as a nonnegative whole number. The rates below are an illustrative schedule that produces 2,880 for 26 days; replace them with your actual rates.

Solution 1Recommended

Use VLOOKUP with a tiered rate table

Use this method when you want to maintain day thresholds, rates, and accumulated charges in a table.

1
Enter the number of days

In Excel, enter 26 in cell B3.

2
Create the rate table

In D3:F5, enter three rows: 1, 100, 0; 11, 110, 1000; and 21, 130, 2100. The columns represent the first day of the tier, its daily rate, and the accumulated charge before that tier.

3
Enter the formula

Select an empty cell and enter =IF(B3=0,0,VLOOKUP(B3,$D$3:$F$5,3,TRUE)+(B3+1-VLOOKUP(B3,$D$3:$F$5,1,TRUE))*VLOOKUP(B3,$D$3:$F$5,2,TRUE)).

4
Check the result

Press Enter. With the example table, 26 days returns 2,880: 1,000 for the first 10 days, 1,100 for the next 10, and 780 for the remaining 6.

Use VLOOKUP with a tiered rate table
Keep thresholds and accumulated charges accurate: Sort the first-day values in ascending order for approximate VLOOKUP to work. If you change a threshold or rate, update the accumulated charge before each affected tier.
Calculate tiered charges in WPS

Calculate Daily Tiered Charges in WPS Spreadsheet

Use WPS Spreadsheet to enter a tiered rate table and calculate the total with a VLOOKUP formula.

  1. 1. Open a spreadsheet: Open WPS Office, select Spreadsheet, and create a blank workbook or open an existing XLSX file.
  2. 2. Enter days and rates: Enter 26 in B3. In D3:F5, enter the example rows 1, 100, 0; 11, 110, 1000; and 21, 130, 2100.
  3. 3. Calculate the total: Select an empty cell and enter =IF(B3=0,0,VLOOKUP(B3,$D$3:$F$5,3,TRUE)+(B3+1-VLOOKUP(B3,$D$3:$F$5,1,TRUE))*VLOOKUP(B3,$D$3:$F$5,2,TRUE)), then press Enter.
  4. 4. Save the workbook: Check that the example returns 2,880, then use File > Save As to save the workbook in XLSX format.
Calculate charges across multiple daily rate tiersEdit thresholds and rates in a worksheet tableOpen and save Microsoft Excel XLSX filesUse familiar spreadsheet formulas and cell references
microsoft office alternative - wps office

Frequently Asked Questions

How does the formula calculate 2,880 for 26 days?

With the illustrative schedule, the first 10 days cost 1,000, the next 10 cost 1,100, and the final 6 cost 780. These charges total 2,880.

Why must the VLOOKUP rate table be sorted?

VLOOKUP with TRUE uses an approximate match and expects the first column to be in ascending order. Sort the whole table by the tier's first-day column so each rate and accumulated charge stays with its threshold.

What should I do if my daily rates change?

Update the rates in the rate table and recalculate the accumulated charge before each affected tier. If you use the MIN and MAX formula instead, replace the rates directly in the formula.

Can the formula handle zero days?

Yes. The VLOOKUP formula uses IF(B3=0,0,...) to return zero without looking for a tier. Enter a nonnegative whole number in B3.