where “inc” (G4) and “rates” (B5:D11) are named ranges, and column D is a helper column that calculates total accumulated tax at each bracket.

### Background and context

The US Tax system is “progressive”, which means people with higher taxable income pay a higher federal tax rate. Rates are assessed in brackets defined by an upper and lower threshold. The amount of income that falls into a given bracket is taxed at the corresponding rate for that bracket. As taxable income increases, income is taxed over more tax brackets. Many taxpayers therefore pay several different rates. In the example shown, the tax brackets and rates are for single filers in the United States for the 2019 tax year. The table below shows the manual calculations for a taxable income of $50,000: The total tax is therefore $6,858.50. (displayed as 6,859 in the example shown).

### Setup notes

- This formula depends on VLOOKUP function in “approximate match mode”. When in approximate match mode, VLOOKUP will scan through lookup values in a table (which must be sorted in ascending order) until a higher value is found. Then it will “step back” and return a value from the previous row. In the event of an exact match, VLOOKUP will return results from the matched row.
- In order for VLOOKUP to retrieve the actual cumulative tax amounts, these have been added to the table as a helper column in column D. The formula in D6, copied down, is: At each row, this formula applies the rate from the row above to the income in that bracket.
- For readability, the following named ranges, are defined: “inc” (G4) and “rates” (B5:D11).

Lookup value is “inc” (G4) Lookup table is “rates” (B5:D11) Column number is 3, Cumulative tax Match type is 1 = approximate match

With a taxable income of $50,000, VLOOKUP, in approximate match mode, matches 39,475, and returns 4,543, the total tax up to $39,475. The second VLOOKUP calculates the remaining income to be taxed: calculated like this: (50,000-39,475) = 10,525 Finally, the third VLOOKUP gets the (top) marginal tax rate: This is multiplied by the income calculated in the previous step. The complete formula is solved like this:

### Marginal and effective rates

Cell G6 contains the top marginal rate, calculated with VLOOKUP: The effective tax rate in G7 is total tax divided by taxable income: Note: I ran into this formula on Jeff Lenning’s blog over at Excel University. It’s a great example of how VLOOKUP can be used in approximate match mode, and also how VLOOKUP can be used multiple times in the same formula.

### 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.