Match a price to a product from a dropdown list?
Solved
pcd
-
pilas31 Posted messages 1878 Status Contributor -
pilas31 Posted messages 1878 Status Contributor -
Hello,
I'm a bit desperate...
Despite all the help and tutorials I found online, I'm trying to create an Excel file under 2007.
The question is quite simple: How do I match a price to each of my products in my drop-down list?
Basically, I have a drop-down list with 89 products and I would like the price to automatically appear in another column each time I select a product.
By the way, I'd also like to ask how I can remove a drop-down list function from a column? I had created a drop-down list for the product prices, but I no longer need it since I want the prices to show directly based on the selected product. I can't seem to remove the little arrow of the drop-down list!
Thank you for your help.
PCD
I'm a bit desperate...
Despite all the help and tutorials I found online, I'm trying to create an Excel file under 2007.
The question is quite simple: How do I match a price to each of my products in my drop-down list?
Basically, I have a drop-down list with 89 products and I would like the price to automatically appear in another column each time I select a product.
By the way, I'd also like to ask how I can remove a drop-down list function from a column? I had created a drop-down list for the product prices, but I no longer need it since I want the prices to show directly based on the selected product. I can't seem to remove the little arrow of the drop-down list!
Thank you for your help.
PCD
2 answers
-
Hello,
A little example:
Let's imagine that the price list is in the table from A2:B21 with the product name in column A and the product price next to it in column B.
The drop-down list with the product choice in G1
Here is the formula that gives the price based on the product:
=VLOOKUP(G1,A2:B21,2,FALSE)
For the second topic.
Designate the cell with the drop-down list to remove
Go to the "Data" tab in the top menu
Click on data validation
In the small window that appears, click on the button at the bottom left "Clear All"
See you later
Best regards,-
-
Unfortunately, it doesn't work!
Maybe if I give more information, it will change the formula:
My dropdown list is on Sheet 1
- Product cell: A21-B21-C21-D21-E21: that's where my dropdown list is located (the products are in merged cells)
- Cell where I want the price displayed: G21
My data tables are on Sheet 2:
- Cells A1 to A89 contain my product list
- Cells B1 to B89 contain my corresponding price list
Is it still the same formula since my merged product cell doesn't allow me to just put G1 for example? -
-
-
I did exactly that, the good news is that the formula seems to work because I have a price that displays well, but the problem is that the price is displaying as "€0!!!!