LOOKUP Formula – An ALTernative to IF Formula

LOOKUP formula in Excel works in a similar way as VLOOKUP and HLOOKUP formula. The formula is entered into a cell in the following format.

lookup formula

The formula will take the your input value (e.g. D4) and try to find that value in the 1st set of values



When the value is found in the 1st set, it will take note of its position in the first set and use this position to identify the value that is in the same position in the 2nd set



For the formula to work accurately, you need to organise the data in ascending order.


This is similar to writing the following Nested IF formula


Note: I have reduced the number of conditions to 3 for the IF formula.

If there is no value that is equal to your input value, the formula will return a value that is smaller than your input value. If more than one value in the range are smaller than the input value, it will take the largest value in that range. Its position is used to find the value in the second set that is in the same position. The formula is entered as follows into cell D8 with 35000 (in cell D4) being the input value (take note of the curly brackets and semi colon).

lookup formula not exact


30000 (in 5th position) is identified as the largest value in the following set4000,10000,20000,25000,30000

where the values are all smaller than 35000.

The formula will return the corresponding value (500) which is in the 5th position in the second set of numbers


In this case, the formula has the same effect as Nested IF formula below. The first outcome is #N/A, the same outcome if you input a less than 4000 in our LOOKUP formula above.


Note that the above IF formula will not work in Excel because it has more than 7 conditions. In this case, the LOOKUP formula has to be used.

Master the business uses of excel formulas through our “Sales Marketing Analytics and Report with Excel eCourse“.

Popular Courses

Useful Links

Links I found useful and wanted to share.

Search the website