Calculate Tiered Charges for Days in Excel
Question details
Calculate a total charge by applying different daily rates to successive ranges of days.

- 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.
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.
Use VLOOKUP with a tiered rate table
Use this method when you want to maintain day thresholds, rates, and accumulated charges in a table.
In Excel, enter 26 in cell B3.
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.
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)).
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.

Calculate three tiers with MIN and MAX
Use a single formula when the tier boundaries and rates are fixed and you do not need a separate rate table.
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. Open a spreadsheet: Open WPS Office, select Spreadsheet, and create a blank workbook or open an existing XLSX file.
- 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. 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. Save the workbook: Check that the example returns 2,880, then use File > Save As to save the workbook in XLSX format.

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.




