In the example shown the formula in cell E4 is: This formula uses the number of years a salesperson has been with a company to determine which commission rate table to use. In other words, if years is less than 2, table1 is used as for table_array, and, if not, table2 is used as for table_array.

### Alternate syntax

If the lookup tables require different processing rules, then you can wrap two VLOOKUP functions inside of an IF function like so: This allows you to customize the inputs to each VLOOKUP as needed.

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