Matching text in a range

I am trying to create a table that will automatically assign prices based on product names in customer orders.

Column A contains the products in the customer order;
Column B needs the price of each product;
Column C contains the full product list;
Column D contains the prices of each product.

So if I enter ‘Apple’ in Column A, the formula in B needs to return the price from Column D that corresponds to Apple in Column C.

Anyone out there who can save me the tedium of manually entering the price each time?!

this is a lookup table

→ Function LOOKUP

In Calc, linked data, How to auto add price of product in one sheet based on another data sheet
etc …

Hallo

in B2:

=VLOOKUP( A2; $C$1:$D$999; 2 ; 0 )
1 Like

That works perfectly, thank you!