0

i have a table of productid, product name and price. In Excel Productid i want to give as drop down & on selection of particular id the respective name and price should appear in next column automatically.

Kindly suggest me how to do this.

Thanks

1 Answer 1

0

Sure :)

Firstly, create a drop list using data validation, using the list of ProductIDs as your validation criterion.

In excel 2010 / 2013 this is under the DATA tab in the ribbon.

Secondly, use Vlookup function to both find your price and product name

=VLOOKUP("PRODUCTID","PRODUCTID_NAME_PRICE_LIST","COLUMN_WITH_NAME",FALSE)

=VLOOKUP("PRODUCTID","PRODUCTID_NAME_PRICE_LIST","COLUMN_WITH_PRICE",FALSE)

Example

Alternatively, should you wish to have the name and price appear in the same column, then:

 =VLOOKUP("PRODUCTID","PRODUCTID_NAME_PRICE_LIST","COLUMN_WITH_NAME",FALSE)&" "&VLOOKUP("PRODUCTID","PRODUCTID_NAME_PRICE_LIST","COLUMN_WITH_PRICE",FALSE)
2
  • Thanks alot.... can i get a sample xl for the same what u have shown here, i am facing some problem in Vlookup formula Jul 29, 2014 at 5:47
  • Sure, drop me a mail thekaizenbuddha @ gmail . com (no spaces) and I will revert with the requisite spreadsheet
    – Kai Zen
    Jul 29, 2014 at 7:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .