Lookup help

pedroc

New Member
Joined
Jul 20, 2011
Messages
22
I have column A with a data validation list with three possible products. In column B I want to display the price for each product by looking up from a range on a separate worksheet named Prices, where the three products are listed A1:A3 and the corresponding prices in B1:B3

The Function I used is as follows =Lookup(A2,Prices!$A$1:$B$3)

However this seems to not return the price for the first of my products instead returning the price for the third product whenever the first appears.

Any help at all would be much appreciated

pedroc
(excel novice)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I have column A with a data validation list with three possible products. In column B I want to display the price for each product by looking up from a range on a separate worksheet named Prices, where the three products are listed A1:A3 and the corresponding prices in B1:B3

The Function I used is as follows =Lookup(A2,Prices!$A$1:$B$3)

However this seems to not return the price for the first of my products instead returning the price for the third product whenever the first appears.

Any help at all would be much appreciated

pedroc
(excel novice)

Help of Excel about the function Lookup:

Important: the values in lookup_vector must be placed in ascending order: ..., -2, -1, 0, 1, 2, ..., A-Z, false, true; otherwise, lookup may not return the correct value. Uppercase and lowercase text are equivalent.

Markmzz
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top