This example shows how to set up simple formula using the IF function to calculate a tax amount with both fixed and variable components. In the example shown, the formula in C5 is:


in a worksheet with the following named ranges: rate = F4, fixed = F5, limit = F6.

The rules of this problem are as follows:

  1. If amount is less than $1000, tax is amount * 20%.
  2. If amount is greater than or equal to $1000, tax is $200 + (amount over 1000) *20%

Generic formula



The core of this formula is a single IF statement that checks the amount in column B against the base limit:


If TRUE, the formula simply multiplies the amount in B5 by tax rate:


If FALSE, the formula applies the tax rate to the amount over 1000, then adds the fixed amount:

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.