# LOOKUP

By Haydn Palliser | December 5, 2019

### Overview

This is an extract from our pre-course videos for our renewable energy and infrastructure project finance modeling course.

### Video

LOOKUP | Pivotal180

Video Transcript

The LOOKUP function covered in this lesson is most often used to find something within a specific time frame such as how many eggs were sold in a given year.

The LOOKUP function is constructed as: =LOOKUP(lookup_value, lookup_vector, result_vector). In our example here, we wish to find the number of eggs shown in row 2 in year 4, that’s the input in A5, and we want to show the output in cell B5.

So here we are going to type =LOOKUP, ( look up value of a A5, that’s the year, comma, within the lookup vector, that’s the year in B1 to E1, comma, and the result factor in B2 to E2. The LOOKUP function is going to find the lookup value in year 4 in the lookup vector, which is in E1, and gives the corresponding result in the vector in row 2, which is 510 in cell E2. If I change the lookup value in A5 to 0 though, I get an N/A result. If I change the LOOKUP value to 7, which is beyond the lookup vector, we get 510.

Why?

Well, if I have a LOOKUP value less than the first value in the lookout vector, I get an N/A, I can’t do it.

But if the LOOKUP value is higher than the last value in the lookup vector, it returns the last value.

Finally, the lookup vector must be in ascending or descending order, either numerically or alphabetically.