This necessitates a look up and Alan has pointed the way.
The requirement is to relate the content of B2 to a table of values the correlate the cost to the item.
So, say we have a two-column table in the range of X1:Y10, where column-X values are the descriptions and column-Y values are the costs.
B5 formula: = VLOOKUP(B2,X1:Y10,2,FALSE)
This formula means "Look for value of cell B2 in the range of X1:Y10 and return the corresponding value from the second column in the table and B2 must have an exact match.
See the Excel Help on the syntax and arguments of VLOOKUP.
You might also want to visit YouTube - - there are many tutorials/demos on many Excel topics:
Search on Excel 2007 Look Up
As for adding the result to cell M1, this depends on the formula in M1 and your specific requirements.
Bookmarks